Changeset View
Changeset View
Standalone View
Standalone View
kded/configeditor.h
- This file was copied to kded/themepreviewer.h.
Show All 17 Lines | |||||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | #pragma once | 20 | #pragma once | ||
21 | 21 | | |||
22 | #include <unistd.h> | 22 | #include <unistd.h> | ||
23 | #include <QString> | 23 | #include <QString> | ||
24 | 24 | | |||
25 | class QFile; | 25 | class QFile; | ||
26 | class QString; | ||||
26 | 27 | | |||
27 | namespace ConfigEditor | 28 | namespace ConfigEditor | ||
28 | { | 29 | { | ||
29 | void setGtk2ConfigValue(const QString ¶mName, const QString ¶mValue); | 30 | void setGtk2ConfigValue(const QString ¶mName, const QString ¶mValue); | ||
30 | void setGtk3ConfigValueDconf(const QString ¶mName, const QString ¶mValue, const QString &category = QStringLiteral("org.gnome.desktop.interface")); | 31 | void setGtk3ConfigValueDconf(const QString ¶mName, const QString ¶mValue, const QString &category = QStringLiteral("org.gnome.desktop.interface")); | ||
31 | void setGtk3ConfigValueSettingsIni(const QString ¶mName, const QString ¶mValue); | 32 | void setGtk3ConfigValueSettingsIni(const QString ¶mName, const QString ¶mValue); | ||
32 | void setGtk3ConfigValueXSettingsd(const QString ¶mName, const QString ¶mValue); | 33 | void setGtk3ConfigValueXSettingsd(const QString ¶mName, const QString ¶mValue); | ||
34 | | ||||
35 | QString gtk2ConfigValue(const QString& paramName); | ||||
36 | QString gtk3ConfigValueSettingsIni(const QString& paramName); | ||||
37 | | ||||
38 | void removeLegacyGtk2Strings(); | ||||
39 | | ||||
40 | | ||||
41 | void replaceValueInGtkrcContents(QString >krcContents, const QString ¶mName, const QString ¶mValue); | ||||
42 | void replaceValueInXSettingsdContents(QString &xSettingsdContents, const QString ¶mName, const QString ¶mValue); | ||||
43 | | ||||
44 | QString readFileContents(QFile >krc); | ||||
45 | | ||||
46 | void reloadGtk2Apps(); | ||||
47 | void reloadXSettingsd(); | ||||
48 | | ||||
49 | pid_t pidOfXSettingsd(); | ||||
33 | }; | 50 | }; |