diff options
| author | Peter Penz <[email protected]> | 2012-05-11 23:00:26 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-05-11 23:02:14 +0200 |
| commit | 28daa45a44bc172747bad6d948de2a58c8586845 (patch) | |
| tree | 0bee0a91d45dcfe57597a0dba256b393e58431d0 /src/panels/places/placesitem.h | |
| parent | b319c59b8d1e068cf621be852ced9c5396bd77f9 (diff) | |
Places Panel: Implement eject and teardown actions
Further fixes:
- Add/remove item when device has been added/removed
- Update emblem if the accessibility-state has been changed
Diffstat (limited to 'src/panels/places/placesitem.h')
| -rw-r--r-- | src/panels/places/placesitem.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/panels/places/placesitem.h b/src/panels/places/placesitem.h index 5c6988424..878d14a7d 100644 --- a/src/panels/places/placesitem.h +++ b/src/panels/places/placesitem.h @@ -29,6 +29,7 @@ #include <Solid/StorageVolume> class KBookmark; +class PlacesItemStorageAccessListener; /** * @brief Extends KStandardItem by places-specific properties. @@ -46,6 +47,9 @@ public: void setUrl(const KUrl& url); KUrl url() const; + void setUdi(const QString& udi); + QString udi() const; + void setHidden(bool hidden); bool isHidden() const; @@ -54,11 +58,20 @@ public: private: void initializeDevice(const QString& udi); + /** + * Is invoked by m_accessListener if the accessibility + * of the storage access m_access has been changed. + */ + void onAccessibilityChanged(); + private: Solid::Device m_device; QPointer<Solid::StorageAccess> m_access; QPointer<Solid::StorageVolume> m_volume; QPointer<Solid::OpticalDisc> m_disc; + PlacesItemStorageAccessListener* m_accessListener; + + friend class PlacesItemStorageAccessListener; // Calls onAccessibilityChanged() }; #endif |
