<table><tr><td style="">bruns added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D19677">View Revision</a></tr></table><br /><div><div><p>The UDisksDeviceBackend class serves two functions:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">shared data cache for UDisksDevice instances</li>
<li class="remarkup-list-item">static factory of instances</li>
</ul>
<p>The manager has everything it needs to function as a factory. The UDisksDeviceBackend would become a representation of the individual UDisks Objects, and would store the interfaces and associated properties. The manager does no store interfaces or properties directly, but only objects, i.e. `QMap<QString, UDiskDeviceBackend*> m_cache; m_cache[udi] = new UDisksDeviceBackend(interfaces_and_properties);</p>
<p>The manager would also act as a dispatcher, demarshaling the DBus messages, and then e.g. calling on propertiesChanged <tt style="background: #ebebeb; font-size: 13px;">m_cache[udi]->propertiesChanged(QStringList invalidated, QVariantMap changed)</tt></p>
<p>As the backend is a shared instance I don't think it can be merged with the device.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R245 Solid</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19677">https://phabricator.kde.org/D19677</a></div></div><br /><div><strong>To: </strong>broulik, Frameworks, bruns<br /><strong>Cc: </strong>apol, nicolasfella, kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>