KIdleTime
8#include "kabstractidletimepoller_p.h"
18class Poller :
public KAbstractIdleTimePoller
21 Q_PLUGIN_METADATA(IID KAbstractIdleTimePoller_iid FILE
"wayland.json")
22 Q_INTERFACES(KAbstractIdleTimePoller)
25 explicit Poller(QObject *parent =
nullptr);
28 bool isAvailable()
override;
29 bool setUpPoller()
override {
32 void unloadPoller()
override {}
35 void addTimeout(
int nextTimeout)
override;
36 void removeTimeout(
int nextTimeout)
override;
37 QList<int> timeouts()
const override;
38 int forcePollRequest()
override;
39 void catchIdleEvent()
override;
40 void stopCatchingIdleEvents()
override;
41 void simulateUserActivity()
override;
45 IdleTimeout* createTimeout(
int timeout);
47 QScopedPointer<IdleManagerKwin> m_idleManagerKwin;
48 QScopedPointer<IdleManagerExt> m_idleManagerExt;
49 QHash<int, QSharedPointer<IdleTimeout>> m_timeouts;
50 QScopedPointer<IdleTimeout> m_catchResumeTimeout;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:46:32 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.