-rw-r--r-- | korganizer/alarmclient.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/korganizer/alarmclient.h b/korganizer/alarmclient.h new file mode 100644 index 0000000..dac4776 --- a/dev/null +++ b/korganizer/alarmclient.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | This file is part of the KOrganizer interfaces. | ||
3 | Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org> | ||
4 | |||
5 | This library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Library General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2 of the License, or (at your option) any later version. | ||
9 | |||
10 | This library 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 GNU | ||
13 | Library General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Library General Public License | ||
16 | along with this library; see the file COPYING.LIB. If not, write to | ||
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
18 | Boston, MA 02111-1307, USA. | ||
19 | */ | ||
20 | #ifndef ALARMCLIENT_H | ||
21 | #define ALARMCLIENT_H | ||
22 | |||
23 | #include <qstring.h> | ||
24 | #include <qstringlist.h> | ||
25 | |||
26 | /** | ||
27 | This class provides the abstract interface for communicating with the alarm | ||
28 | daemon. It has to be implemented by subclasses for specific daemons. The | ||
29 | default implementation does nothing. | ||
30 | */ | ||
31 | class AlarmClient | ||
32 | { | ||
33 | public: | ||
34 | /** | ||
35 | Start alarm daemon. | ||
36 | */ | ||
37 | virtual void startDaemon() = 0; | ||
38 | |||
39 | /** | ||
40 | Set the list of monitored calendars. Deletes previous settings. | ||
41 | */ | ||
42 | virtual bool setCalendars( const QStringList & ) = 0; | ||
43 | |||
44 | /** | ||
45 | Add calendar for monitoring by alarm daemon. | ||
46 | */ | ||
47 | virtual bool addCalendar( const QString & ) = 0; | ||
48 | |||
49 | /** | ||
50 | Remove calendar from monitoring by alarm daemon. | ||
51 | */ | ||
52 | virtual bool removeCalendar( const QString & ) = 0; | ||
53 | |||
54 | /** | ||
55 | Reload calendar at URL. | ||
56 | */ | ||
57 | virtual bool reloadCalendar( const QString & ) = 0; | ||
58 | }; | ||
59 | |||
60 | #endif | ||