<table><tr><td style="">marcingu 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/D28745">View Revision</a></tr></table><br /><div><div><p>Ok, so, what I want to do now is to create static method <tt style="background: #ebebeb; font-size: 13px;">findByPath</tt> which is going to return Solid::StorageVolume instance (is there a case in which we can expect something different than StorageVolume?).</p>
<p>Should it be <tt style="background: #ebebeb; font-size: 13px;">StorageVolume Device::findByPath(QString)</tt> or rather <tt style="background: #ebebeb; font-size: 13px;">StorageVolume StorageVolume::findByPath(QString)</tt>?</p>
<p>For implementation itself I want to create structure with mountpoints and StorageVolumes which will be updated if new Device is added/removed and we learn this via Solid notifications.<br />
I am thinking it should either be part of <tt style="background: #ebebeb; font-size: 13px;">DeviceManagerStorage</tt> or separate class similar to DeviceManagerStorage. Not sure which.</p>
<p>I don't know how to get a mountpoint for StorageVolume.</p>
<p>What do you think about it?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R320 KIO Extras</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28745">https://phabricator.kde.org/D28745</a></div></div><br /><div><strong>To: </strong>marcingu, ivan, broulik, Dolphin, ngraham, meven, bruns<br /><strong>Cc: </strong>thiago, bruns, meven, ngraham, kde-frameworks-devel, kfm-devel, waitquietly, azyx, nikolaik, pberestov, iasensio, aprcela, fprice, LeGast00n, cblack, fbampaloukas, alexde, Codezela, feverfew, michaelh, spoorun, navarromorales, firef, andrebarros, emmanuelp, rdieter, mikesomov<br /></div>