Changeset View
Changeset View
Standalone View
Standalone View
src/panels/places/placesitemmodel.h
Context not available. | |||||
102 | QAction* teardownAction(int index) const; | 102 | QAction* teardownAction(int index) const; | ||
---|---|---|---|---|---|
103 | 103 | | |||
104 | void requestEject(int index); | 104 | void requestEject(int index); | ||
105 | void requestTeardown(int index); | 105 | void requestTearDown(int index); | ||
106 | 106 | | |||
107 | bool storageSetupNeeded(int index) const; | 107 | bool storageSetupNeeded(int index) const; | ||
108 | void requestStorageSetup(int index); | 108 | void requestStorageSetup(int index); | ||
Context not available. | |||||
123 | 123 | | |||
124 | virtual void clear() Q_DECL_OVERRIDE; | 124 | virtual void clear() Q_DECL_OVERRIDE; | ||
125 | 125 | | |||
126 | void proceedWithTearDown(); | ||||
127 | | ||||
126 | /** | 128 | /** | ||
127 | * Saves the bookmarks and indicates to other applications that the | 129 | * Saves the bookmarks and indicates to other applications that the | ||
128 | * state of the bookmarks has been changed. Is only called by the | 130 | * state of the bookmarks has been changed. Is only called by the | ||
Context not available. | |||||
133 | signals: | 135 | signals: | ||
134 | void errorMessage(const QString& message); | 136 | void errorMessage(const QString& message); | ||
135 | void storageSetupDone(int index, bool success); | 137 | void storageSetupDone(int index, bool success); | ||
138 | void storageTearDownRequested(const QString & mountPath); | ||||
139 | void storageTearDownExternallyRequested(const QString & mountPath); | ||||
136 | 140 | | |||
137 | protected: | 141 | protected: | ||
138 | virtual void onItemInserted(int index) Q_DECL_OVERRIDE; | 142 | virtual void onItemInserted(int index) Q_DECL_OVERRIDE; | ||
Context not available. | |||||
142 | private slots: | 146 | private slots: | ||
143 | void slotDeviceAdded(const QString& udi); | 147 | void slotDeviceAdded(const QString& udi); | ||
144 | void slotDeviceRemoved(const QString& udi); | 148 | void slotDeviceRemoved(const QString& udi); | ||
145 | void slotStorageTeardownDone(Solid::ErrorType error, const QVariant& errorData); | 149 | void slotStorageTearDownDone(Solid::ErrorType error, const QVariant& errorData); | ||
146 | void slotStorageSetupDone(Solid::ErrorType error, const QVariant& errorData, const QString& udi); | 150 | void slotStorageSetupDone(Solid::ErrorType error, const QVariant& errorData, const QString& udi); | ||
147 | void hideItem(); | 151 | void hideItem(); | ||
148 | 152 | | |||
Context not available. | |||||
281 | // removing an item is not allowed. | 285 | // removing an item is not allowed. | ||
282 | int m_hiddenItemToRemove; | 286 | int m_hiddenItemToRemove; | ||
283 | 287 | | |||
288 | Solid::StorageAccess *m_deviceToTearDown; | ||||
289 | | ||||
284 | QTimer* m_updateBookmarksTimer; | 290 | QTimer* m_updateBookmarksTimer; | ||
285 | 291 | | |||
286 | QHash<QObject*, int> m_storageSetupInProgress; | 292 | QHash<QObject*, int> m_storageSetupInProgress; | ||
Context not available. |