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