Changeset View
Changeset View
Standalone View
Standalone View
decorations/decorationbridge.h
Show All 18 Lines | |||||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_DECORATION_BRIDGE_H | 20 | #ifndef KWIN_DECORATION_BRIDGE_H | ||
21 | #define KWIN_DECORATION_BRIDGE_H | 21 | #define KWIN_DECORATION_BRIDGE_H | ||
22 | 22 | | |||
23 | #include <kwinglobals.h> | 23 | #include <kwinglobals.h> | ||
24 | 24 | | |||
25 | #include <KDecoration2/Private/DecorationBridge> | 25 | #include <KDecoration2/Private/DecorationBridge> | ||
26 | 26 | | |||
27 | #include <KSharedConfig> | ||||
28 | | ||||
27 | #include <QObject> | 29 | #include <QObject> | ||
28 | #include <QSharedPointer> | 30 | #include <QSharedPointer> | ||
29 | 31 | | |||
30 | class KPluginFactory; | 32 | class KPluginFactory; | ||
31 | 33 | | |||
32 | namespace KDecoration2 | 34 | namespace KDecoration2 | ||
33 | { | 35 | { | ||
34 | class DecorationSettings; | 36 | class DecorationSettings; | ||
Show All 28 Lines | 50 | public: | |||
63 | 65 | | |||
64 | const QSharedPointer<KDecoration2::DecorationSettings> &settings() const { | 66 | const QSharedPointer<KDecoration2::DecorationSettings> &settings() const { | ||
65 | return m_settings; | 67 | return m_settings; | ||
66 | } | 68 | } | ||
67 | 69 | | |||
68 | QString supportInformation() const; | 70 | QString supportInformation() const; | ||
69 | 71 | | |||
70 | private: | 72 | private: | ||
73 | QString readPlugin(); | ||||
71 | void loadMetaData(const QJsonObject &object); | 74 | void loadMetaData(const QJsonObject &object); | ||
72 | void findTheme(const QVariantMap &map); | 75 | void findTheme(const QVariantMap &map); | ||
73 | void initPlugin(); | 76 | void initPlugin(); | ||
74 | QString readTheme() const; | 77 | QString readTheme() const; | ||
75 | KPluginFactory *m_factory; | 78 | KPluginFactory *m_factory; | ||
79 | KSharedConfig::Ptr m_lnfConfig; | ||||
76 | bool m_blur; | 80 | bool m_blur; | ||
77 | QString m_plugin; | 81 | QString m_plugin; | ||
78 | QString m_defaultTheme; | 82 | QString m_defaultTheme; | ||
79 | QString m_theme; | 83 | QString m_theme; | ||
80 | QSharedPointer<KDecoration2::DecorationSettings> m_settings; | 84 | QSharedPointer<KDecoration2::DecorationSettings> m_settings; | ||
81 | bool m_noPlugin; | 85 | bool m_noPlugin; | ||
82 | KWIN_SINGLETON(DecorationBridge) | 86 | KWIN_SINGLETON(DecorationBridge) | ||
83 | }; | 87 | }; | ||
84 | } // Decoration | 88 | } // Decoration | ||
85 | } // KWin | 89 | } // KWin | ||
86 | 90 | | |||
87 | #endif | 91 | #endif |