• 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
  • private
kopeteidleplatform_win.cpp
Go to the documentation of this file.
1 /*
2  kopeteidleplatform_win.cpp - Kopete Idle Platform
3 
4  Copyright (C) 2003 by Justin Karneges <justin@affinix.com> (from KVIrc source code)
5  Copyright (c) 2008 by Roman Jarosz <kedgedev@centrum.cz>
6  Kopete (c) 2008 by the Kopete developers <kopete-devel@kde.org>
7 
8  *************************************************************************
9  * *
10  * This library is free software; you can redistribute it and/or *
11  * modify it under the terms of the GNU Lesser General Public *
12  * License as published by the Free Software Foundation; either *
13  * version 2 of the License, or (at your option) any later version. *
14  * *
15  *************************************************************************
16 */
17 
18 #include "kopeteidleplatform_p.h"
19 
20 #define _WIN32_WINNT 0x0501
21 #include <windows.h>
22 
23 Kopete::IdlePlatform::IdlePlatform()
24  : d(0)
25 {
26 }
27 
28 Kopete::IdlePlatform::~IdlePlatform()
29 {
30  delete d;
31 }
32 
33 bool Kopete::IdlePlatform::init()
34 {
35  return true;
36 }
37 
38 int Kopete::IdlePlatform::secondsIdle()
39 {
40  LASTINPUTINFO li;
41  li.cbSize = sizeof(LASTINPUTINFO);
42  BOOL ok = GetLastInputInfo( &li );
43  if ( !ok )
44  return 0;
45 
46  return (GetTickCount() - li.dwTime) / 1000;
47 }
Kopete::IdlePlatform::~IdlePlatform
~IdlePlatform()
Definition: kopeteidleplatform_dummy.cpp:23
Kopete::IdlePlatform::IdlePlatform
IdlePlatform()
Definition: kopeteidleplatform_dummy.cpp:19
Kopete::IdlePlatform::secondsIdle
int secondsIdle()
Definition: kopeteidleplatform_dummy.cpp:33
Kopete::IdlePlatform::init
bool init()
Definition: kopeteidleplatform_dummy.cpp:28
kopeteidleplatform_p.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