Changeset View
Changeset View
Standalone View
Standalone View
kcms/desktoptheme/kcm.h
Show All 19 Lines | 1 | /* | |||
---|---|---|---|---|---|
20 | Boston, MA 02110-1301, USA. | 20 | Boston, MA 02110-1301, USA. | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #ifndef _KCM_DESKTOPTHEME_H | 23 | #ifndef _KCM_DESKTOPTHEME_H | ||
24 | #define _KCM_DESKTOPTHEME_H | 24 | #define _KCM_DESKTOPTHEME_H | ||
25 | 25 | | |||
26 | #include <KQuickAddons/ManagedConfigModule> | 26 | #include <KQuickAddons/ManagedConfigModule> | ||
27 | 27 | | |||
28 | #include <KNewStuff3/KNS3/DownloadDialog> | | |||
29 | | ||||
30 | class QTemporaryFile; | 28 | class QTemporaryFile; | ||
31 | 29 | | |||
32 | namespace Plasma { | 30 | namespace Plasma { | ||
33 | class Theme; | 31 | class Theme; | ||
34 | } | 32 | } | ||
35 | 33 | | |||
36 | namespace KIO | 34 | namespace KIO | ||
37 | { | 35 | { | ||
Show All 23 Lines | 54 | public: | |||
61 | DesktopThemeSettings *desktopThemeSettings() const; | 59 | DesktopThemeSettings *desktopThemeSettings() const; | ||
62 | ThemesModel *desktopThemeModel() const; | 60 | ThemesModel *desktopThemeModel() const; | ||
63 | FilterProxyModel *filteredModel() const; | 61 | FilterProxyModel *filteredModel() const; | ||
64 | 62 | | |||
65 | bool downloadingFile() const; | 63 | bool downloadingFile() const; | ||
66 | 64 | | |||
67 | bool canEditThemes() const; | 65 | bool canEditThemes() const; | ||
68 | 66 | | |||
69 | Q_INVOKABLE void getNewStuff(QQuickItem *ctx); | | |||
70 | Q_INVOKABLE void installThemeFromFile(const QUrl &url); | 67 | Q_INVOKABLE void installThemeFromFile(const QUrl &url); | ||
71 | 68 | | |||
72 | Q_INVOKABLE void applyPlasmaTheme(QQuickItem *item, const QString &themeName); | 69 | Q_INVOKABLE void applyPlasmaTheme(QQuickItem *item, const QString &themeName); | ||
73 | 70 | | |||
74 | Q_INVOKABLE void editTheme(const QString &themeName); | 71 | Q_INVOKABLE void editTheme(const QString &themeName); | ||
75 | 72 | | |||
76 | Q_SIGNALS: | 73 | Q_SIGNALS: | ||
77 | void downloadingFileChanged(); | 74 | void downloadingFileChanged(); | ||
Show All 15 Lines | 84 | private: | |||
93 | 90 | | |||
94 | DesktopThemeSettings *m_settings; | 91 | DesktopThemeSettings *m_settings; | ||
95 | 92 | | |||
96 | ThemesModel *m_model; | 93 | ThemesModel *m_model; | ||
97 | FilterProxyModel *m_filteredModel; | 94 | FilterProxyModel *m_filteredModel; | ||
98 | QHash<QString, Plasma::Theme*> m_themes; | 95 | QHash<QString, Plasma::Theme*> m_themes; | ||
99 | bool m_haveThemeExplorerInstalled; | 96 | bool m_haveThemeExplorerInstalled; | ||
100 | 97 | | |||
101 | QPointer<KNS3::DownloadDialog> m_newStuffDialog; | | |||
102 | | ||||
103 | QScopedPointer<QTemporaryFile> m_tempInstallFile; | 98 | QScopedPointer<QTemporaryFile> m_tempInstallFile; | ||
104 | QPointer<KIO::FileCopyJob> m_tempCopyJob; | 99 | QPointer<KIO::FileCopyJob> m_tempCopyJob; | ||
105 | }; | 100 | }; | ||
106 | 101 | | |||
107 | Q_DECLARE_LOGGING_CATEGORY(KCM_DESKTOP_THEME) | 102 | Q_DECLARE_LOGGING_CATEGORY(KCM_DESKTOP_THEME) | ||
108 | 103 | | |||
109 | #endif // _KCM_DESKTOPTHEME_H | 104 | #endif // _KCM_DESKTOPTHEME_H |