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/placesitemmodel.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/placesitemmodel.h')
| -rw-r--r-- | src/panels/places/placesitemmodel.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/panels/places/placesitemmodel.h b/src/panels/places/placesitemmodel.h index a50375a69..ae111a58d 100644 --- a/src/panels/places/placesitemmodel.h +++ b/src/panels/places/placesitemmodel.h @@ -29,6 +29,7 @@ #include <QList> #include <QSet> #include <Solid/Predicate> +#include <Solid/StorageAccess> class KBookmarkManager; class PlacesItem; @@ -92,7 +93,13 @@ public: QString groupName(const KUrl& url) const; QAction* ejectAction(int index) const; - QAction* tearDownAction(int index) const; + QAction* teardownAction(int index) const; + + void requestEject(int index); + void requestTeardown(int index); + +signals: + void errorMessage(const QString& message); protected: virtual void onItemInserted(int index); @@ -101,6 +108,7 @@ protected: private slots: void slotDeviceAdded(const QString& udi); void slotDeviceRemoved(const QString& udi); + void slotStorageTeardownDone(Solid::ErrorType error, const QVariant& errorData); private: void loadBookmarks(); |
