diff options
| author | Peter Penz <[email protected]> | 2012-06-07 22:59:16 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-06-07 23:00:57 +0200 |
| commit | c214b3751fe6a09a298d5904b62628caeff3bc56 (patch) | |
| tree | 7dd2da1602101be36ac001325fc64d1d0574739f /src/panels/places/placesitemmodel.h | |
| parent | c0533e1aaacf5b5301d3e5dfb9ff7285719f32d1 (diff) | |
Setup storage device if needed
BUG: 301071
FIXED-IN: 4.9.0
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 89a111730..b0f66d652 100644 --- a/src/panels/places/placesitemmodel.h +++ b/src/panels/places/placesitemmodel.h @@ -114,6 +114,9 @@ public: void requestEject(int index); void requestTeardown(int index); + bool storageSetupNeeded(int index) const; + void requestStorageSetup(int index); + /** @reimp */ virtual QMimeData* createMimeData(const QSet<int>& indexes) const; @@ -129,6 +132,7 @@ public: signals: void errorMessage(const QString& message); + void storageSetupDone(int index, bool success); protected: virtual void onItemInserted(int index); @@ -139,6 +143,7 @@ private slots: void slotDeviceAdded(const QString& udi); void slotDeviceRemoved(const QString& udi); void slotStorageTeardownDone(Solid::ErrorType error, const QVariant& errorData); + void slotStorageSetupDone(Solid::ErrorType error, const QVariant& errorData, const QString& udi); void hideItem(); /** @@ -169,7 +174,8 @@ private: * current application (e.g. bookmarks from other applications * will be ignored). */ - bool acceptBookmark(const KBookmark& bookmark) const; + bool acceptBookmark(const KBookmark& bookmark, + const QSet<QString>& availableDevices) const; /** * Creates a PlacesItem for a system-bookmark: @@ -290,6 +296,8 @@ private: QTimer* m_saveBookmarksTimer; QTimer* m_updateBookmarksTimer; + + QHash<QObject*, int> m_storageSetupInProgress; }; #endif |
