Changeset View
Changeset View
Standalone View
Standalone View
src/panels/places/placesitemmodel.h
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
138 | bool isGroupHidden(KFilePlacesModel::GroupType type) const; | 138 | bool isGroupHidden(KFilePlacesModel::GroupType type) const; | ||
139 | void setGroupHidden(KFilePlacesModel::GroupType type, bool hidden); | 139 | void setGroupHidden(KFilePlacesModel::GroupType type, bool hidden); | ||
140 | 140 | | |||
141 | signals: | 141 | signals: | ||
142 | void errorMessage(const QString& message); | 142 | void errorMessage(const QString& message); | ||
143 | void storageSetupDone(int index, bool success); | 143 | void storageSetupDone(int index, bool success); | ||
144 | void storageTearDownRequested(const QString& mountPath); | 144 | void storageTearDownRequested(const QString& mountPath); | ||
145 | void storageTearDownExternallyRequested(const QString& mountPath); | 145 | void storageTearDownExternallyRequested(const QString& mountPath); | ||
146 | void blockingAppsReady(const QStringList &apps); | ||||
146 | 147 | | |||
147 | protected: | 148 | protected: | ||
148 | void onItemInserted(int index) override; | 149 | void onItemInserted(int index) override; | ||
149 | void onItemRemoved(int index, KStandardItem* removedItem) override; | 150 | void onItemRemoved(int index, KStandardItem* removedItem) override; | ||
150 | void onItemChanged(int index, const QSet<QByteArray>& changedRoles) override; | 151 | void onItemChanged(int index, const QSet<QByteArray>& changedRoles) override; | ||
151 | 152 | | |||
152 | private slots: | 153 | private slots: | ||
153 | void slotStorageTearDownDone(Solid::ErrorType error, const QVariant& errorData); | 154 | void slotStorageTearDownDone(Solid::ErrorType error, const QVariant& errorData); | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 165 | private: | |||
206 | QString bookmarkId(const KBookmark &bookmark) const; | 207 | QString bookmarkId(const KBookmark &bookmark) const; | ||
207 | void initializeDefaultViewProperties() const; | 208 | void initializeDefaultViewProperties() const; | ||
208 | 209 | | |||
209 | int mapFromSource(const QModelIndex &index) const; | 210 | int mapFromSource(const QModelIndex &index) const; | ||
210 | QModelIndex mapToSource(int row) const; | 211 | QModelIndex mapToSource(int row) const; | ||
211 | 212 | | |||
212 | static void updateItem(PlacesItem *item, const QModelIndex &index); | 213 | static void updateItem(PlacesItem *item, const QModelIndex &index); | ||
213 | 214 | | |||
215 | void queryBlockingApps(const QString &devicePath); | ||||
216 | | ||||
214 | private: | 217 | private: | ||
215 | bool m_hiddenItemsShown; | 218 | bool m_hiddenItemsShown; | ||
216 | 219 | | |||
217 | Solid::StorageAccess *m_deviceToTearDown; | 220 | Solid::StorageAccess *m_deviceToTearDown; | ||
218 | 221 | | |||
219 | QHash<QObject*, int> m_storageSetupInProgress; | 222 | QHash<QObject*, int> m_storageSetupInProgress; | ||
220 | 223 | | |||
221 | KFilePlacesModel *m_sourceModel; | 224 | KFilePlacesModel *m_sourceModel; | ||
222 | 225 | | |||
223 | QVector<QPersistentModelIndex> m_indexMap; | 226 | QVector<QPersistentModelIndex> m_indexMap; | ||
224 | }; | 227 | }; | ||
225 | 228 | | |||
226 | #endif | 229 | #endif | ||
227 | 230 | | |||
228 | 231 | |