-rw-r--r-- | libkcal/qtopiaformat.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/libkcal/qtopiaformat.h b/libkcal/qtopiaformat.h new file mode 100644 index 0000000..2c69a4e --- a/dev/null +++ b/libkcal/qtopiaformat.h | |||
@@ -0,0 +1,53 @@ | |||
1 | /* | ||
2 | This file is part of libkcal. | ||
3 | |||
4 | Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> | ||
5 | |||
6 | This library is free software; you can redistribute it and/or | ||
7 | modify it under the terms of the GNU Library General Public | ||
8 | License as published by the Free Software Foundation; either | ||
9 | version 2 of the License, or (at your option) any later version. | ||
10 | |||
11 | This library is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | Library General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU Library General Public License | ||
17 | along with this library; see the file COPYING.LIB. If not, write to | ||
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
19 | Boston, MA 02111-1307, USA. | ||
20 | */ | ||
21 | #ifndef QTOPIAFORMAT_H | ||
22 | #define QTOPIAFORMAT_H | ||
23 | |||
24 | #include <qstring.h> | ||
25 | |||
26 | #include "scheduler.h" | ||
27 | |||
28 | #include "calformat.h" | ||
29 | |||
30 | namespace KCal { | ||
31 | |||
32 | /** | ||
33 | This class implements the calendar format used by Qtopia. | ||
34 | */ | ||
35 | class QtopiaFormat : public CalFormat { | ||
36 | public: | ||
37 | /** Create new iCalendar format. */ | ||
38 | QtopiaFormat(); | ||
39 | virtual ~QtopiaFormat(); | ||
40 | |||
41 | bool load( Calendar *, const QString &fileName ); | ||
42 | bool save( Calendar *, const QString &fileName ); | ||
43 | void setCategoriesList ( QStringList * cat ){ mCategories = cat; } | ||
44 | bool fromString( Calendar *, const QString & ); | ||
45 | QString toString( Calendar * ); | ||
46 | |||
47 | private: | ||
48 | QStringList *mCategories; | ||
49 | }; | ||
50 | |||
51 | } | ||
52 | |||
53 | #endif | ||