Changeset View
Changeset View
Standalone View
Standalone View
src/panels/places/placesitem.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 80 | private: | |||
---|---|---|---|---|---|
87 | * m_access has been changed and updates the emblem. | 87 | * m_access has been changed and updates the emblem. | ||
88 | */ | 88 | */ | ||
89 | void onAccessibilityChanged(); | 89 | void onAccessibilityChanged(); | ||
90 | 90 | | |||
91 | /** | 91 | /** | ||
92 | * Is invoked if the listing of the trash has been completed. | 92 | * Is invoked if the listing of the trash has been completed. | ||
93 | * Updates the state of the trash-icon to be empty or full. | 93 | * Updates the state of the trash-icon to be empty or full. | ||
94 | */ | 94 | */ | ||
95 | void onTrashDirListerCompleted(); | 95 | void onTrashEmptinessChanged(); | ||
96 | 96 | | |||
97 | /** | 97 | /** | ||
98 | * Applies the data-value from the role to m_bookmark. | 98 | * Applies the data-value from the role to m_bookmark. | ||
99 | */ | 99 | */ | ||
100 | void updateBookmarkForRole(const QByteArray& role); | 100 | void updateBookmarkForRole(const QByteArray& role); | ||
101 | 101 | | |||
102 | static QString generateNewId(); | 102 | static QString generateNewId(); | ||
103 | 103 | | |||
104 | private: | 104 | private: | ||
105 | Solid::Device m_device; | 105 | Solid::Device m_device; | ||
106 | QPointer<Solid::StorageAccess> m_access; | 106 | QPointer<Solid::StorageAccess> m_access; | ||
107 | QPointer<Solid::StorageVolume> m_volume; | 107 | QPointer<Solid::StorageVolume> m_volume; | ||
108 | QPointer<Solid::OpticalDisc> m_disc; | 108 | QPointer<Solid::OpticalDisc> m_disc; | ||
109 | QPointer<Solid::PortableMediaPlayer> m_mtp; | 109 | QPointer<Solid::PortableMediaPlayer> m_mtp; | ||
110 | QPointer<PlacesItemSignalHandler> m_signalHandler; | 110 | QPointer<PlacesItemSignalHandler> m_signalHandler; | ||
111 | QPointer<KDirLister> m_trashDirLister; | 111 | QPointer<KDirLister> m_trashDirLister; | ||
112 | KBookmark m_bookmark; | 112 | KBookmark m_bookmark; | ||
113 | 113 | | |||
114 | friend class PlacesItemSignalHandler; // Calls onAccessibilityChanged() | 114 | friend class PlacesItemSignalHandler; // Calls onAccessibilityChanged() | ||
115 | void onTrashEmptinessChanged(bool isTrashEmpty); | ||||
115 | }; | 116 | }; | ||
116 | 117 | | |||
117 | #endif | 118 | #endif | ||
118 | 119 | | |||
119 | 120 | |