• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/libkopete

Kopete::IdleTimer

Kopete::IdleTimer Class Reference

#include <kopeteidletimer.h>

Inheritance diagram for Kopete::IdleTimer:

Inheritance graph
[legend]

List of all members.


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 (  ) 

Time in seconds the user has been idle.

Definition at line 90 of file kopeteidletimer.cpp.

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:
  • kopeteidletimer.h
  • kopeteidletimer.cpp

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal