Fix akonadimodel.cpp:1: warning: unterminated character constant
[kdepim.git] / ktimetracker / tray.h
blob77138ff3198b36d58f4f3e1f3285dbfc1ca6a219
1 /*
2 * Copyright (C) 2003 by Scott Monachello <smonach@cox.net>
3 * 2007 the ktimetracker developers
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.
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.
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.
23 #ifndef TRAY_ICON_H
24 #define TRAY_ICON_H
26 #include <QList>
27 #include <QVector>
29 #include <KStatusNotifierItem>
31 #include "task.h"
32 #include "ktimetrackerpart.h"
34 class QTimer;
35 class MainWindow;
37 class TrayIcon : public KStatusNotifierItem
39 Q_OBJECT
41 public:
42 TrayIcon(MainWindow * parent);
43 TrayIcon(ktimetrackerpart *);
44 TrayIcon();
45 ~TrayIcon();
47 private:
48 int _activeIcon;
49 static QVector<QPixmap*> *icons;
50 QTimer *_taskActiveTimer;
52 public Q_SLOTS:
53 void startClock();
54 void stopClock();
55 void resetClock();
56 void updateToolTip( QList<Task*> activeTasks);
57 void initToolTip();
59 protected Q_SLOTS:
60 void advanceClock();
62 // experiment
64 void insertTitle(QString title);
66 private:
67 KMenu *trayPopupMenu;
68 QPopupMenu *trayPopupMenu2;
72 #endif // TRAY_ICON_H