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

ktimetracker

  • sources
  • kde-4.12
  • kdepim
  • ktimetracker
ktimetrackerutility.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007 by Thorsten Staerk <dev@staerk.de>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the
16  * Free Software Foundation, Inc.
17  * 51 Franklin Street, Fifth Floor
18  * Boston, MA 02110-1301 USA.
19  *
20  */
21 
22 #ifndef KTIMETRACKERUTILITY_H
23 #define KTIMETRACKERUTILITY_H
24 
25 #include <KDebug>
26 #include <KWindowSystem>
27 #include <QString>
28 
39 QString formatTime( double minutes, bool decimal = false );
40 
44 QString getFocusWindow();
45 
51 int desktopcount();
52 
53 const int secsPerMinute=60;
54 
55 enum KTIMETRACKER_Errors
56 {
57  KTIMETRACKER_ERR_GENERIC_SAVE_FAILED = 1,
58  KTIMETRACKER_ERR_COULD_NOT_MODIFY_RESOURCE,
59  KTIMETRACKER_ERR_MEMORY_EXHAUSTED,
60  KTIMETRACKER_ERR_UID_NOT_FOUND,
61  KTIMETRACKER_ERR_INVALID_DATE,
62  KTIMETRACKER_ERR_INVALID_TIME,
63  KTIMETRACKER_ERR_INVALID_DURATION,
64 
65  KTIMETRACKER_MAX_ERROR_NO = KTIMETRACKER_ERR_INVALID_DURATION
66 };
67 
68 #endif
desktopcount
int desktopcount()
Get the number of virtual desktops Delivers 4 for four virtual desktops, 1 for one virtual desktop...
Definition: ktimetrackerutility.cpp:52
KTIMETRACKER_ERR_INVALID_DURATION
Definition: ktimetrackerutility.h:63
getFocusWindow
QString getFocusWindow()
Get the name of the window that has the focus.
Definition: ktimetrackerutility.cpp:32
secsPerMinute
const int secsPerMinute
Definition: ktimetrackerutility.h:53
KTIMETRACKER_Errors
KTIMETRACKER_Errors
Definition: ktimetrackerutility.h:55
KTIMETRACKER_ERR_COULD_NOT_MODIFY_RESOURCE
Definition: ktimetrackerutility.h:58
KTIMETRACKER_ERR_INVALID_TIME
Definition: ktimetrackerutility.h:62
KTIMETRACKER_ERR_MEMORY_EXHAUSTED
Definition: ktimetrackerutility.h:59
KTIMETRACKER_ERR_INVALID_DATE
Definition: ktimetrackerutility.h:61
KTIMETRACKER_ERR_GENERIC_SAVE_FAILED
Definition: ktimetrackerutility.h:57
formatTime
QString formatTime(double minutes, bool decimal=false)
Format time for output.
Definition: ktimetrackerutility.cpp:37
KTIMETRACKER_MAX_ERROR_NO
Definition: ktimetrackerutility.h:65
KTIMETRACKER_ERR_UID_NOT_FOUND
Definition: ktimetrackerutility.h:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ktimetracker

Skip menu "ktimetracker"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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