Changeset View
Changeset View
Standalone View
Standalone View
kcms/desktoptheme/kcm.h
Show All 34 Lines | |||||
35 | 35 | | |||
36 | namespace KIO | 36 | namespace KIO | ||
37 | { | 37 | { | ||
38 | class FileCopyJob; | 38 | class FileCopyJob; | ||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | class QQuickItem; | 41 | class QQuickItem; | ||
42 | class QStandardItemModel; | 42 | class QStandardItemModel; | ||
43 | class DesktopThemeSettings; | ||||
43 | 44 | | |||
44 | class KCMDesktopTheme : public KQuickAddons::ConfigModule | 45 | class KCMDesktopTheme : public KQuickAddons::ConfigModule | ||
45 | { | 46 | { | ||
46 | Q_OBJECT | 47 | Q_OBJECT | ||
47 | Q_PROPERTY(QStandardItemModel *desktopThemeModel READ desktopThemeModel CONSTANT) | 48 | Q_PROPERTY(QStandardItemModel *desktopThemeModel READ desktopThemeModel CONSTANT) | ||
48 | Q_PROPERTY(QString selectedPlugin READ selectedPlugin WRITE setSelectedPlugin NOTIFY selectedPluginChanged) | 49 | Q_PROPERTY(QString selectedPlugin READ selectedPlugin WRITE setSelectedPlugin NOTIFY selectedPluginChanged) | ||
49 | Q_PROPERTY(int selectedPluginIndex READ selectedPluginIndex NOTIFY selectedPluginIndexChanged) | 50 | Q_PROPERTY(int selectedPluginIndex READ selectedPluginIndex NOTIFY selectedPluginIndexChanged) | ||
50 | Q_PROPERTY(bool downloadingFile READ downloadingFile NOTIFY downloadingFileChanged) | 51 | Q_PROPERTY(bool downloadingFile READ downloadingFile NOTIFY downloadingFileChanged) | ||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
97 | 98 | | |||
98 | private: | 99 | private: | ||
99 | void updateNeedsSave(); | 100 | void updateNeedsSave(); | ||
100 | 101 | | |||
101 | void processPendingDeletions(); | 102 | void processPendingDeletions(); | ||
102 | 103 | | |||
103 | void installTheme(const QString &path); | 104 | void installTheme(const QString &path); | ||
104 | 105 | | |||
106 | DesktopThemeSettings *m_settings; | ||||
107 | | ||||
105 | QStandardItemModel *m_model; | 108 | QStandardItemModel *m_model; | ||
106 | QString m_selectedPlugin; | 109 | QString m_selectedPlugin; | ||
107 | QStringList m_pendingRemoval; | 110 | QStringList m_pendingRemoval; | ||
108 | QHash<QString, Plasma::Theme*> m_themes; | 111 | QHash<QString, Plasma::Theme*> m_themes; | ||
109 | bool m_haveThemeExplorerInstalled; | 112 | bool m_haveThemeExplorerInstalled; | ||
110 | 113 | | |||
111 | QPointer<KNS3::DownloadDialog> m_newStuffDialog; | 114 | QPointer<KNS3::DownloadDialog> m_newStuffDialog; | ||
112 | 115 | | |||
113 | QScopedPointer<QTemporaryFile> m_tempInstallFile; | 116 | QScopedPointer<QTemporaryFile> m_tempInstallFile; | ||
114 | QPointer<KIO::FileCopyJob> m_tempCopyJob; | 117 | QPointer<KIO::FileCopyJob> m_tempCopyJob; | ||
115 | }; | 118 | }; | ||
116 | 119 | | |||
117 | Q_DECLARE_LOGGING_CATEGORY(KCM_DESKTOP_THEME) | 120 | Q_DECLARE_LOGGING_CATEGORY(KCM_DESKTOP_THEME) | ||
118 | 121 | | |||
119 | #endif // _KCM_DESKTOPTHEME_H | 122 | #endif // _KCM_DESKTOPTHEME_H |