Changeset View
Changeset View
Standalone View
Standalone View
kcms/desktoptheme/kcm.h
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | Copyright (c) 2014 Marco Martin <mart@kde.org> | 2 | Copyright (c) 2014 Marco Martin <mart@kde.org> | ||
3 | Copyright (c) 2014 Vishesh Handa <me@vhanda.in> | 3 | Copyright (c) 2014 Vishesh Handa <me@vhanda.in> | ||
4 | Copyright (c) 2016 David Rosca <nowrep@gmail.com> | 4 | Copyright (c) 2016 David Rosca <nowrep@gmail.com> | ||
5 | Copyright (c) 2018 Kai Uwe Broulik <kde@privat.broulik.de> | 5 | Copyright (c) 2018 Kai Uwe Broulik <kde@privat.broulik.de> | ||
6 | Copyright (c) 2019 Kevin Ottens <kevin.ottens@enioka.com> | ||||
6 | 7 | | |||
7 | This library is free software; you can redistribute it and/or | 8 | This library is free software; you can redistribute it and/or | ||
8 | modify it under the terms of the GNU Library General Public | 9 | modify it under the terms of the GNU Library General Public | ||
9 | License version 2 as published by the Free Software Foundation. | 10 | License version 2 as published by the Free Software Foundation. | ||
10 | 11 | | |||
11 | This library is distributed in the hope that it will be useful, | 12 | This library is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 98 | private: | |||
99 | 100 | | |||
100 | void processPendingDeletions(); | 101 | void processPendingDeletions(); | ||
101 | 102 | | |||
102 | void installTheme(const QString &path); | 103 | void installTheme(const QString &path); | ||
103 | 104 | | |||
104 | QStandardItemModel *m_model; | 105 | QStandardItemModel *m_model; | ||
105 | QString m_selectedPlugin; | 106 | QString m_selectedPlugin; | ||
106 | QStringList m_pendingRemoval; | 107 | QStringList m_pendingRemoval; | ||
107 | Plasma::Theme *m_defaultTheme; | | |||
108 | QHash<QString, Plasma::Theme*> m_themes; | 108 | QHash<QString, Plasma::Theme*> m_themes; | ||
109 | bool m_haveThemeExplorerInstalled; | 109 | bool m_haveThemeExplorerInstalled; | ||
110 | 110 | | |||
111 | QPointer<KNS3::DownloadDialog> m_newStuffDialog; | 111 | QPointer<KNS3::DownloadDialog> m_newStuffDialog; | ||
112 | 112 | | |||
113 | QScopedPointer<QTemporaryFile> m_tempInstallFile; | 113 | QScopedPointer<QTemporaryFile> m_tempInstallFile; | ||
114 | QPointer<KIO::FileCopyJob> m_tempCopyJob; | 114 | QPointer<KIO::FileCopyJob> m_tempCopyJob; | ||
115 | }; | 115 | }; | ||
116 | 116 | | |||
117 | Q_DECLARE_LOGGING_CATEGORY(KCM_DESKTOP_THEME) | 117 | Q_DECLARE_LOGGING_CATEGORY(KCM_DESKTOP_THEME) | ||
118 | 118 | | |||
119 | #endif // _KCM_DESKTOPTHEME_H | 119 | #endif // _KCM_DESKTOPTHEME_H |