-rw-r--r-- | libkcal/phoneformat.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/libkcal/phoneformat.h b/libkcal/phoneformat.h new file mode 100644 index 0000000..f4cb52c --- a/dev/null +++ b/libkcal/phoneformat.h | |||
@@ -0,0 +1,65 @@ | |||
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 SHARPFORMAT_H | ||
22 | #define SHARPAFORMAT_H | ||
23 | |||
24 | #include <qstring.h> | ||
25 | |||
26 | #include "scheduler.h" | ||
27 | |||
28 | #include "calformat.h" | ||
29 | extern "C" { | ||
30 | #include "gammu.h" | ||
31 | } | ||
32 | |||
33 | namespace KCal { | ||
34 | |||
35 | /** | ||
36 | This class implements the calendar format used by Sharp. | ||
37 | */ | ||
38 | |||
39 | class SharpFormat : public QObject { | ||
40 | public: | ||
41 | /** Create new iCalendar format. */ | ||
42 | SharpFormat(); | ||
43 | virtual ~SharpFormat(); | ||
44 | |||
45 | bool load( Calendar * ,Calendar *); | ||
46 | bool save( Calendar * ); | ||
47 | void setCategoriesList ( QStringList * cat ){ mCategories = cat; } | ||
48 | bool fromString2Cal( Calendar *, Calendar *, GSM_StateMachine*s , const QString & ); | ||
49 | bool fromString( Calendar *, const QString & ); | ||
50 | QString toString( Calendar * ); | ||
51 | static ulong getCsum( const QStringList & ); | ||
52 | |||
53 | private: | ||
54 | QString getEventString( Event* ); | ||
55 | QString getTodoString( Todo* ); | ||
56 | QString dtToString( const QDateTime& dt, bool useTZ = true ); | ||
57 | |||
58 | QStringList *mCategories; | ||
59 | int getNumFromRecord( QString answer,Incidence* inc ) ; | ||
60 | QString getPart( const QString & text, bool &ok, int &start ); | ||
61 | }; | ||
62 | |||
63 | } | ||
64 | |||
65 | #endif | ||