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

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
kopeteidletimer.h
Go to the documentation of this file.
1 /*
2  kopeteidletimer.h - Kopete Idle Timer
3 
4  Copyright (c) 2002 by Hendrik vom Lehn <hvl@linux-4-ever.de>
5  Copyright (c) 2003 by Olivier Goffart <ogoffart@kde.org>
6  Copyright (c) 2008 by Roman Jarosz <kedgedev@centrum.cz>
7  Kopete (c) 2002-2008 by the Kopete developers <kopete-devel@kde.org>
8 
9  *************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2 of the License, or (at your option) any later version. *
15  * *
16  *************************************************************************
17 */
18 #ifndef KOPETEIDLETIMER_H
19 #define KOPETEIDLETIMER_H
20 
21 #include <QtCore/QObject>
22 
23 #include "kopete_export.h"
24 
25 namespace Kopete
26 {
27 
33 class KOPETE_EXPORT IdleTimer : public QObject
34 {
35 Q_OBJECT
36 
37 public:
42  static IdleTimer *self();
43 
44  ~IdleTimer();
45 
49  int idleTime();
50 
51 public Q_SLOTS:
59  void registerTimeout( int idleSeconds, QObject * receiver,
60  const char * memberActive, const char * memberIdle );
61 
65  void unregisterTimeout( QObject *receiver );
66 
67 private slots:
68  void updateIdleTime();
69 
70 private:
71  IdleTimer();
72 
73  static IdleTimer *instance;
74 
75  class Private;
76  Private * const d;
77 };
78 
79 }
80 
81 #endif
KOPETE_EXPORT
#define KOPETE_EXPORT
Definition: kopete_export.h:27
Kopete::IdleTimer
IdleTimer handles global idle time and allows to register idle timeout notifications.
Definition: kopeteidletimer.h:33
QObject
kopete_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 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