kopete/libkopete
#include <kopeteidletimer.h>
Public Slots | |
void | registerTimeout (int idleSeconds, QObject *receiver, const char *memberActive, const char *memberIdle) |
void | unregisterTimeout (QObject *receiver) |
Public Member Functions | |
~IdleTimer () | |
int | idleTime () |
Static Public Member Functions | |
static IdleTimer * | self () |
Detailed Description
IdleTimer handles global idle time and allows to register idle timeout notifications.
IdleTimer is a singleton, you may uses it with IdleTimer::self()
Definition at line 33 of file kopeteidletimer.h.
Constructor & Destructor Documentation
Kopete::IdleTimer::~IdleTimer | ( | ) |
Definition at line 82 of file kopeteidletimer.cpp.
Member Function Documentation
int Kopete::IdleTimer::idleTime | ( | ) |
Time in seconds the user has been idle.
Definition at line 91 of file kopeteidletimer.cpp.
|
slot |
Register new timeout notification.
- Parameters
-
idleSeconds the idle notification time period receiver the object that receives the timeout notification. memberActive the slot that is called when user has changed its state from idle to active. memberIdle the slot that is called when user was idle for idleSeconds seconds.
Definition at line 113 of file kopeteidletimer.cpp.
|
static |
Get the only instance of IdleTimer.
- Returns
- IdleTimer single instance
Definition at line 74 of file kopeteidletimer.cpp.
|
slot |
removes all registered timeout notifications for this object
Definition at line 121 of file kopeteidletimer.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.