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