kopete/libkopete
Kopete::IdleTimer Class Reference
#include <kopeteidletimer.h>
Inheritance diagram for Kopete::IdleTimer:

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.
Public Slots | |
| void | registerTimeout (int idleSeconds, QObject *receiver, const char *memberActive, const char *memberIdle) |
| void | unregisterTimeout (QObject *receiver) |
Public Member Functions | |
| int | idleTime () |
| ~IdleTimer () | |
Static Public Member Functions | |
| static IdleTimer * | self () |
Constructor & Destructor Documentation
| Kopete::IdleTimer::~IdleTimer | ( | ) |
Definition at line 82 of file kopeteidletimer.cpp.
Member Function Documentation
| int Kopete::IdleTimer::idleTime | ( | ) |
| void Kopete::IdleTimer::registerTimeout | ( | int | idleSeconds, | |
| QObject * | receiver, | |||
| const char * | memberActive, | |||
| const char * | memberIdle | |||
| ) | [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 112 of file kopeteidletimer.cpp.
| Kopete::IdleTimer * Kopete::IdleTimer::self | ( | ) | [static] |
Get the only instance of IdleTimer.
- Returns:
- IdleTimer single instance
Definition at line 74 of file kopeteidletimer.cpp.
| void Kopete::IdleTimer::unregisterTimeout | ( | QObject * | receiver | ) | [slot] |
removes all registered timeout notifications for this object
Definition at line 120 of file kopeteidletimer.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference