SVN_SILENT made messages (.desktop file)
[kdepim.git] / korgac / alarmdockwindow.h
blob34fe6c6366f3bd54d68eab001046413e011a4162
1 /*
2 This file is part of the KDE reminder agent.
4 Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
5 Copyright (c) 2008-2009 Allen Winter <winter@kde.org>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License along
18 with this program; if not, write to the Free Software Foundation, Inc.,
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 As a special exception, permission is given to link this program
22 with any edition of Qt, and distribute the resulting executable,
23 without including the source code for Qt in the source distribution.
25 #ifndef KORGAC_ALARMDOCKWINDOW_H
26 #define KORGAC_ALARMDOCKWINDOW_H
28 #include <KStatusNotifierItem>
30 #include <QAction>
31 #include <QIcon>
33 class AlarmDockWindow : public KStatusNotifierItem
35 Q_OBJECT
36 public:
37 AlarmDockWindow();
38 virtual ~AlarmDockWindow();
40 void enableAutostart(bool enabled);
42 public Q_SLOTS:
43 void toggleAlarmsEnabled(bool checked);
44 void toggleAutostart(bool checked);
45 void slotUpdate(int reminders);
47 Q_SIGNALS:
48 void quitSignal();
49 void suspendAllSignal();
50 void dismissAllSignal();
52 protected Q_SLOTS:
53 virtual void activate(const QPoint &pos);
54 void slotQuit();
55 void slotSuspendAll();
56 void slotDismissAll();
58 private:
59 void changeSystrayIcon(bool alarmsEnabled);
61 QIcon mIconDisabled;
62 QString mName;
64 QAction *mAlarmsEnabled;
65 QAction *mAutostart;
66 QAction *mSuspendAll;
67 QAction *mDismissAll;
69 bool mAutostartSet;
72 #endif