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

kopete/libkopete

  • Kopete
  • IdleTimer
Public Slots | Public Member Functions | Static Public Member Functions | List of all members
Kopete::IdleTimer Class Reference

#include <kopeteidletimer.h>

Inheritance diagram for Kopete::IdleTimer:
Inheritance graph
[legend]

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.

void Kopete::IdleTimer::registerTimeout ( int  idleSeconds,
QObject *  receiver,
const char *  memberActive,
const char *  memberIdle 
)
slot

Register new timeout notification.

Parameters
idleSecondsthe idle notification time period
receiverthe object that receives the timeout notification.
memberActivethe slot that is called when user has changed its state from idle to active.
memberIdlethe slot that is called when user was idle for
idleSecondsseconds.

Definition at line 113 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 121 of file kopeteidletimer.cpp.


The documentation for this class was generated from the following files:
  • kopeteidletimer.h
  • kopeteidletimer.cpp
This file is part of the KDE documentation.
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.

kopete/libkopete

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal