Changeset View
Changeset View
Standalone View
Standalone View
kcm/kcm.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | |||||
63 | Q_SIGNALS: | 63 | Q_SIGNALS: | ||
64 | void wallpaperConfigurationChanged(); | 64 | void wallpaperConfigurationChanged(); | ||
65 | void currentWallpaperChanged(); | 65 | void currentWallpaperChanged(); | ||
66 | 66 | | |||
67 | private Q_SLOTS: | 67 | private Q_SLOTS: | ||
68 | void updateState(); | 68 | void updateState(); | ||
69 | 69 | | |||
70 | private: | 70 | private: | ||
71 | void loadWallpapers(); | | |||
72 | void selectWallpaper(const QString &pluginId); | 71 | void selectWallpaper(const QString &pluginId); | ||
73 | void loadWallpaperConfig(); | 72 | void loadWallpaperConfig(); | ||
74 | void loadLnfConfig(); | 73 | void loadLnfConfig(); | ||
75 | KPackage::Package m_package; | 74 | KPackage::Package m_package; | ||
76 | KScreenSaverSettings *m_settings; | 75 | KScreenSaverSettings *m_settings; | ||
77 | ScreenLockerKcmForm *m_ui; | 76 | ScreenLockerKcmForm *m_ui; | ||
78 | ScreenLocker::WallpaperIntegration *m_wallpaperIntegration = nullptr; | 77 | ScreenLocker::WallpaperIntegration *m_wallpaperIntegration = nullptr; | ||
79 | KCoreConfigSkeleton *m_wallpaperSettings = nullptr; | 78 | KCoreConfigSkeleton *m_wallpaperSettings = nullptr; | ||
Show All 9 Lines | 85 | { | |||
89 | Q_PROPERTY(KDeclarative::ConfigPropertyMap *lnfConfiguration READ lnfConfiguration CONSTANT) | 88 | Q_PROPERTY(KDeclarative::ConfigPropertyMap *lnfConfiguration READ lnfConfiguration CONSTANT) | ||
90 | 89 | | |||
91 | Q_PROPERTY(QString currentWallpaper READ currentWallpaper NOTIFY currentWallpaperChanged) | 90 | Q_PROPERTY(QString currentWallpaper READ currentWallpaper NOTIFY currentWallpaperChanged) | ||
92 | public: | 91 | public: | ||
93 | ScreenLockerProxy(ScreenLockerKcm *parent) : | 92 | ScreenLockerProxy(ScreenLockerKcm *parent) : | ||
94 | QObject(parent), | 93 | QObject(parent), | ||
95 | q(parent) | 94 | q(parent) | ||
96 | { | 95 | { | ||
96 | connect(q, &ScreenLockerKcm::wallpaperConfigurationChanged, this, &ScreenLockerProxy::wallpaperConfigurationChanged); | ||||
97 | connect(q, &ScreenLockerKcm::currentWallpaperChanged, this, &ScreenLockerProxy::currentWallpaperChanged); | ||||
97 | } | 98 | } | ||
98 | 99 | | |||
99 | KDeclarative::ConfigPropertyMap *wallpaperConfiguration() const { | 100 | KDeclarative::ConfigPropertyMap *wallpaperConfiguration() const { | ||
100 | return q->wallpaperConfiguration(); | 101 | return q->wallpaperConfiguration(); | ||
101 | } | 102 | } | ||
102 | KDeclarative::ConfigPropertyMap *lnfConfiguration() const { | 103 | KDeclarative::ConfigPropertyMap *lnfConfiguration() const { | ||
103 | return q->lnfConfiguration(); | 104 | return q->lnfConfiguration(); | ||
104 | } | 105 | } | ||
Show All 12 Lines |