• 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
tray.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003 by Scott Monachello <smonach@cox.net>
3  * 2007 the ktimetracker developers
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the
17  * Free Software Foundation, Inc.
18  * 51 Franklin Street, Fifth Floor
19  * Boston, MA 02110-1301 USA.
20  *
21  */
22 
23 #ifndef TRAY_ICON_H
24 #define TRAY_ICON_H
25 
26 #include <QList>
27 #include <QVector>
28 
29 #include <KStatusNotifierItem>
30 
31 #include "task.h"
32 #include "ktimetrackerpart.h"
33 
34 class QTimer;
35 class MainWindow;
36 
37 class TrayIcon : public KStatusNotifierItem
38 {
39  Q_OBJECT
40 
41  public:
42  explicit TrayIcon(MainWindow * parent);
43  explicit TrayIcon(ktimetrackerpart *);
44  TrayIcon();
45  ~TrayIcon();
46 
47  private:
48  int _activeIcon;
49  static QVector<QPixmap*> *icons;
50  QTimer *_taskActiveTimer;
51 
52  public Q_SLOTS:
53  void startClock();
54  void stopClock();
55  void resetClock();
56  void updateToolTip( QList<Task*> activeTasks);
57  void initToolTip();
58 
59  protected Q_SLOTS:
60  void advanceClock();
61 
62  // experiment
63  /*
64  void insertTitle(QString title);
65 
66  private:
67  KMenu *trayPopupMenu;
68  QPopupMenu *trayPopupMenu2;
69  */
70 };
71 
72 #endif // TRAY_ICON_H
TrayIcon::stopClock
void stopClock()
Definition: tray.cpp:112
TrayIcon::advanceClock
void advanceClock()
Definition: tray.cpp:122
TrayIcon::initToolTip
void initToolTip()
Definition: tray.cpp:134
TrayIcon::startClock
void startClock()
Definition: tray.cpp:101
ktimetrackerpart.h
TrayIcon
Definition: tray.h:37
TrayIcon::resetClock
void resetClock()
Definition: tray.cpp:128
TrayIcon::updateToolTip
void updateToolTip(QList< Task * > activeTasks)
Definition: tray.cpp:139
task.h
KStatusNotifierItem
ktimetrackerpart
This is a "Part".
Definition: ktimetrackerpart.h:41
MainWindow
Main window to tie the application together.
Definition: mainwindow.h:43
TrayIcon::~TrayIcon
~TrayIcon()
Definition: tray.cpp:97
TrayIcon::TrayIcon
TrayIcon()
Definition: tray.cpp:89
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