Changeset View
Changeset View
Standalone View
Standalone View
kded/daemon.cpp
Show All 36 Lines | |||||
37 | #include <KActionCollection> | 37 | #include <KActionCollection> | ||
38 | #include <KPluginFactory> | 38 | #include <KPluginFactory> | ||
39 | #include <KGlobalAccel> | 39 | #include <KGlobalAccel> | ||
40 | 40 | | |||
41 | #include <QTimer> | 41 | #include <QTimer> | ||
42 | #include <QAction> | 42 | #include <QAction> | ||
43 | #include <QShortcut> | 43 | #include <QShortcut> | ||
44 | 44 | | |||
45 | K_PLUGIN_FACTORY_WITH_JSON(KScreenDaemonFactory, | 45 | K_PLUGIN_CLASS_WITH_JSON(KScreenDaemon, "kscreen.json") | ||
46 | "kscreen.json", | | |||
47 | registerPlugin<KScreenDaemon>();) | | |||
48 | 46 | | |||
49 | KScreenDaemon::KScreenDaemon(QObject* parent, const QList< QVariant >& ) | 47 | KScreenDaemon::KScreenDaemon(QObject* parent, const QList< QVariant >& ) | ||
50 | : KDEDModule(parent) | 48 | : KDEDModule(parent) | ||
51 | , m_monitoredConfig(nullptr) | 49 | , m_monitoredConfig(nullptr) | ||
52 | , m_monitoring(false) | 50 | , m_monitoring(false) | ||
53 | , m_changeCompressor(new QTimer(this)) | 51 | , m_changeCompressor(new QTimer(this)) | ||
54 | , m_saveTimer(nullptr) | 52 | , m_saveTimer(nullptr) | ||
55 | , m_lidClosedTimer(new QTimer(this)) | 53 | , m_lidClosedTimer(new QTimer(this)) | ||
▲ Show 20 Lines • Show All 400 Lines • Show Last 20 Lines |