author | zautrix <zautrix> | 2004-08-07 18:12:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-07 18:12:24 (UTC) |
commit | 379de927b800832de45e18c88399ba0bf42ec97e (patch) (unidiff) | |
tree | c9d52f13e1addbfd31850ba68c0014bb0e8e844e | |
parent | 2219ddf2cb8022a24101e45ca439e65e95743388 (diff) | |
download | kdepimpi-379de927b800832de45e18c88399ba0bf42ec97e.zip kdepimpi-379de927b800832de45e18c88399ba0bf42ec97e.tar.gz kdepimpi-379de927b800832de45e18c88399ba0bf42ec97e.tar.bz2 |
now building again
-rw-r--r-- | kaddressbook/kaddressbookE.pro | 5 | ||||
-rw-r--r-- | kmicromail/kmicromailE.pro | 4 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 2 | ||||
-rw-r--r-- | korganizer/korganizerE.pro | 7 | ||||
-rw-r--r-- | libkcal/phoneformat.cpp | 79 | ||||
-rw-r--r-- | libkcal/phoneformat.h | 14 |
6 files changed, 66 insertions, 45 deletions
diff --git a/kaddressbook/kaddressbookE.pro b/kaddressbook/kaddressbookE.pro index 41f293d..86166d8 100644 --- a/kaddressbook/kaddressbookE.pro +++ b/kaddressbook/kaddressbookE.pro | |||
@@ -25,2 +25,7 @@ LIBS += -lqpe | |||
25 | LIBS += -ljpeg | 25 | LIBS += -ljpeg |
26 | |||
27 | LIBS += -lmicrogammu | ||
28 | LIBS += -lbluetooth | ||
29 | LIBS += -lsdp | ||
30 | |||
26 | LIBS += $(QTOPIALIB) | 31 | LIBS += $(QTOPIALIB) |
diff --git a/kmicromail/kmicromailE.pro b/kmicromail/kmicromailE.pro index 8d13796..9cedb21 100644 --- a/kmicromail/kmicromailE.pro +++ b/kmicromail/kmicromailE.pro | |||
@@ -58,2 +58,6 @@ LIBS += $(QTOPIALIB) | |||
58 | #LIBS += -luuid | 58 | #LIBS += -luuid |
59 | |||
60 | LIBS += -lmicrogammu | ||
61 | LIBS += -lbluetooth | ||
62 | LIBS += -lsdp | ||
59 | # | 63 | # |
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index a7f7010..b307649 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -1190,3 +1190,3 @@ void CalendarView::syncExternal( int mode ) | |||
1190 | bool syncOK = false; | 1190 | bool syncOK = false; |
1191 | boo loadSuccess = false; | 1191 | bool loadSuccess = false; |
1192 | PhoneFormat* phoneFormat = 0; | 1192 | PhoneFormat* phoneFormat = 0; |
diff --git a/korganizer/korganizerE.pro b/korganizer/korganizerE.pro index 727764a..b39de35 100644 --- a/korganizer/korganizerE.pro +++ b/korganizer/korganizerE.pro | |||
@@ -19,2 +19,9 @@ LIBS += -lmicrokabc | |||
19 | #LIBS += -lmicrokabcwrap | 19 | #LIBS += -lmicrokabcwrap |
20 | |||
21 | #LIBS += $(QPEDIR)/lib/gammu | ||
22 | LIBS += -lmicrogammu | ||
23 | LIBS += -lbluetooth | ||
24 | LIBS += -lsdp | ||
25 | |||
26 | |||
20 | LIBS += -lqpe | 27 | LIBS += -lqpe |
diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp index f78730d..fa18683 100644 --- a/libkcal/phoneformat.cpp +++ b/libkcal/phoneformat.cpp | |||
@@ -61,6 +61,6 @@ using namespace KCal; | |||
61 | 61 | ||
62 | class SharpParser : public QObject | 62 | class PhoneParser : public QObject |
63 | { | 63 | { |
64 | public: | 64 | public: |
65 | SharpParser( Calendar *calendar ) : mCalendar( calendar ) { | 65 | PhoneParser( Calendar *calendar ) : mCalendar( calendar ) { |
66 | oldCategories = 0; | 66 | oldCategories = 0; |
@@ -82,3 +82,3 @@ class SharpParser : public QObject | |||
82 | return false; | 82 | return false; |
83 | ulong cSum = SharpFormat::getCsum(attList ); | 83 | ulong cSum = PhoneFormat::getCsum(attList ); |
84 | 84 | ||
@@ -86,3 +86,3 @@ class SharpParser : public QObject | |||
86 | Event *event; | 86 | Event *event; |
87 | event = existingCalendar->event( attList[0].toInt() ); | 87 | event = existingCalendar->event( attList[0] ); |
88 | if ( event ) | 88 | if ( event ) |
@@ -91,5 +91,5 @@ class SharpParser : public QObject | |||
91 | event = new Event; | 91 | event = new Event; |
92 | event->setZaurusId( attList[0].toInt() ); | 92 | // event->setZaurusId( attList[0].toInt() ); |
93 | event->setZaurusUid( cSum ); | 93 | //event->setZaurusUid( cSum ); |
94 | event->setZaurusStat( -2 ); | 94 | //event->setZaurusStat( -2 ); |
95 | 95 | ||
@@ -190,3 +190,3 @@ class SharpParser : public QObject | |||
190 | 190 | ||
191 | todo = existingCalendar->todo( attList[0].toInt() ); | 191 | todo = existingCalendar->todo( attList[0] ); |
192 | if (todo ) | 192 | if (todo ) |
@@ -202,5 +202,5 @@ class SharpParser : public QObject | |||
202 | 202 | ||
203 | todo->setZaurusId( attList[0].toInt() ); | 203 | //todo->setZaurusId( attList[0] ); |
204 | todo->setZaurusUid( cSum ); | 204 | //todo->setZaurusUid( cSum ); |
205 | todo->setZaurusStat( -2 ); | 205 | //todo->setZaurusStat( -2 ); |
206 | 206 | ||
@@ -325,5 +325,5 @@ class SharpParser : public QObject | |||
325 | 325 | ||
326 | QMap<QString,QString> SharpParser::mCategoriesMap; | 326 | QMap<QString,QString> PhoneParser::mCategoriesMap; |
327 | 327 | ||
328 | SharpFormat::SharpFormat() | 328 | PhoneFormat::PhoneFormat() |
329 | { | 329 | { |
@@ -332,6 +332,6 @@ SharpFormat::SharpFormat() | |||
332 | 332 | ||
333 | SharpFormat::~SharpFormat() | 333 | PhoneFormat::~PhoneFormat() |
334 | { | 334 | { |
335 | } | 335 | } |
336 | ulong SharpFormat::getCsum( const QStringList & attList) | 336 | ulong PhoneFormat::getCsum( const QStringList & attList) |
337 | { | 337 | { |
@@ -361,3 +361,3 @@ ulong SharpFormat::getCsum( const QStringList & attList) | |||
361 | #define DEBUGMODE false | 361 | #define DEBUGMODE false |
362 | bool SharpFormat::load( Calendar *calendar, Calendar *existngCal ) | 362 | bool PhoneFormat::load( Calendar *calendar, Calendar *existngCal ) |
363 | { | 363 | { |
@@ -490,3 +490,3 @@ static char *cp; | |||
490 | } | 490 | } |
491 | int SharpFormat::getNumFromRecord( QString answer, Incidence* inc ) | 491 | int PhoneFormat::getNumFromRecord( QString answer, Incidence* inc ) |
492 | { | 492 | { |
@@ -531,5 +531,5 @@ int SharpFormat::getNumFromRecord( QString answer, Incidence* inc ) | |||
531 | retval = newnum; | 531 | retval = newnum; |
532 | inc->setZaurusId( newnum ); | 532 | //inc->setZaurusId( newnum ); |
533 | inc->setZaurusUid( getCsum( templist ) ); | 533 | //inc->setZaurusUid( getCsum( templist ) ); |
534 | inc->setZaurusStat( -4 ); | 534 | //inc->setZaurusStat( -4 ); |
535 | } | 535 | } |
@@ -540,3 +540,3 @@ int SharpFormat::getNumFromRecord( QString answer, Incidence* inc ) | |||
540 | } | 540 | } |
541 | bool SharpFormat::save( Calendar *calendar) | 541 | bool PhoneFormat::save( Calendar *calendar) |
542 | { | 542 | { |
@@ -572,3 +572,3 @@ bool SharpFormat::save( Calendar *calendar) | |||
572 | //qDebug("i %d ", ++i); | 572 | //qDebug("i %d ", ++i); |
573 | if ( ev->zaurusStat() != -2 ) { | 573 | if ( true /*ev->zaurusStat() != -2*/ ) { |
574 | status.setText ( message + QString::number ( ++procCount ) ); | 574 | status.setText ( message + QString::number ( ++procCount ) ); |
@@ -576,3 +576,3 @@ bool SharpFormat::save( Calendar *calendar) | |||
576 | QString eString = getEventString( ev ); | 576 | QString eString = getEventString( ev ); |
577 | if ( ev->zaurusStat() == -3 ) { // delete | 577 | if (/* ev->zaurusStat() == -3 */ true) { // delete |
578 | // deleting empty strings does not work. | 578 | // deleting empty strings does not work. |
@@ -585,3 +585,3 @@ bool SharpFormat::save( Calendar *calendar) | |||
585 | } | 585 | } |
586 | else if ( ev->zaurusId() == -1 ) { // add new | 586 | else if ( /*ev->zaurusId() == -1*/true ) { // add new |
587 | command = "(echo \"" + ePrefix + eString + "\" ) | db2file datebook -w -g -c " + codec+ " > "+ fileName; | 587 | command = "(echo \"" + ePrefix + eString + "\" ) | db2file datebook -w -g -c " + codec+ " > "+ fileName; |
@@ -658,3 +658,3 @@ bool SharpFormat::save( Calendar *calendar) | |||
658 | while ( to ) { | 658 | while ( to ) { |
659 | if ( to->zaurusStat() != -2 ) { | 659 | if ( true /*to->zaurusStat() != -2 */) { |
660 | status.setText ( message + QString::number ( ++procCount ) ); | 660 | status.setText ( message + QString::number ( ++procCount ) ); |
@@ -662,3 +662,3 @@ bool SharpFormat::save( Calendar *calendar) | |||
662 | QString eString = getTodoString( to ); | 662 | QString eString = getTodoString( to ); |
663 | if ( to->zaurusStat() == -3 ) { // delete | 663 | if ( /*to->zaurusStat() == -3*/true ) { // delete |
664 | // deleting empty strings does not work. | 664 | // deleting empty strings does not work. |
@@ -671,3 +671,3 @@ bool SharpFormat::save( Calendar *calendar) | |||
671 | } | 671 | } |
672 | else if ( to->zaurusId() == -1 ) { // add new | 672 | else if ( true /*to->zaurusId() == -1*/ ) { // add new |
673 | command = "(echo \"" + tPrefix + eString + "\" ) | db2file todo -w -g -c " + codec+ " > "+ fileName; | 673 | command = "(echo \"" + tPrefix + eString + "\" ) | db2file todo -w -g -c " + codec+ " > "+ fileName; |
@@ -736,3 +736,3 @@ bool SharpFormat::save( Calendar *calendar) | |||
736 | } | 736 | } |
737 | QString SharpFormat::dtToString( const QDateTime& dti, bool useTZ ) | 737 | QString PhoneFormat::dtToString( const QDateTime& dti, bool useTZ ) |
738 | { | 738 | { |
@@ -758,4 +758,5 @@ QString SharpFormat::dtToString( const QDateTime& dti, bool useTZ ) | |||
758 | } | 758 | } |
759 | QString SharpFormat::getEventString( Event* event ) | 759 | QString PhoneFormat::getEventString( Event* event ) |
760 | { | 760 | { |
761 | #if 0 | ||
761 | QStringList list; | 762 | QStringList list; |
@@ -919,7 +920,9 @@ QString SharpFormat::getEventString( Event* event ) | |||
919 | return list.join(","); | 920 | return list.join(","); |
920 | 921 | #endif | |
922 | return QString(); | ||
921 | 923 | ||
922 | } | 924 | } |
923 | QString SharpFormat::getTodoString( Todo* todo ) | 925 | QString PhoneFormat::getTodoString( Todo* todo ) |
924 | { | 926 | { |
927 | #if 0 | ||
925 | QStringList list; | 928 | QStringList list; |
@@ -971,4 +974,6 @@ QString SharpFormat::getTodoString( Todo* todo ) | |||
971 | return list.join(","); | 974 | return list.join(","); |
975 | #endif | ||
976 | return QString(); | ||
972 | } | 977 | } |
973 | QString SharpFormat::getPart( const QString & text, bool &ok, int &start ) | 978 | QString PhoneFormat::getPart( const QString & text, bool &ok, int &start ) |
974 | { | 979 | { |
@@ -1030,3 +1035,3 @@ QString SharpFormat::getPart( const QString & text, bool &ok, int &start ) | |||
1030 | } | 1035 | } |
1031 | bool SharpFormat::fromString( Calendar *calendar, const QString & text) | 1036 | bool PhoneFormat::fromString( Calendar *calendar, const QString & text) |
1032 | { | 1037 | { |
@@ -1034,3 +1039,3 @@ bool SharpFormat::fromString( Calendar *calendar, const QString & text) | |||
1034 | } | 1039 | } |
1035 | bool SharpFormat::fromString2Cal( Calendar *calendar,Calendar *existingCalendar, GSM_StateMachine*s, const QString & type) | 1040 | bool PhoneFormat::fromString2Cal( Calendar *calendar,Calendar *existingCalendar, GSM_StateMachine*s, const QString & type) |
1036 | { | 1041 | { |
@@ -1044,3 +1049,3 @@ bool SharpFormat::fromString2Cal( Calendar *calendar,Calendar *existingCalendar, | |||
1044 | bool gshutdown = false; | 1049 | bool gshutdown = false; |
1045 | SharpParser handler( calendar ); | 1050 | PhoneParser handler( calendar ); |
1046 | //handler.setCategoriesList( mCategories ); | 1051 | //handler.setCategoriesList( mCategories ); |
@@ -1332,3 +1337,3 @@ typedef struct { | |||
1332 | start = end; | 1337 | start = end; |
1333 | SharpParser handler( calendar ); | 1338 | PhoneParser handler( calendar ); |
1334 | handler.setCategoriesList( mCategories ); | 1339 | handler.setCategoriesList( mCategories ); |
@@ -1355,3 +1360,3 @@ typedef struct { | |||
1355 | 1360 | ||
1356 | QString SharpFormat::toString( Calendar * ) | 1361 | QString PhoneFormat::toString( Calendar * ) |
1357 | { | 1362 | { |
diff --git a/libkcal/phoneformat.h b/libkcal/phoneformat.h index f4cb52c..4ddf6f0 100644 --- a/libkcal/phoneformat.h +++ b/libkcal/phoneformat.h | |||
@@ -20,4 +20,4 @@ | |||
20 | */ | 20 | */ |
21 | #ifndef SHARPFORMAT_H | 21 | #ifndef PHONEFORMAT_H |
22 | #define SHARPAFORMAT_H | 22 | #define PHONEFORMAT_H |
23 | 23 | ||
@@ -29,3 +29,3 @@ | |||
29 | extern "C" { | 29 | extern "C" { |
30 | #include "gammu.h" | 30 | #include "../gammu/emb/common/gammu.h" |
31 | } | 31 | } |
@@ -35,10 +35,10 @@ namespace KCal { | |||
35 | /** | 35 | /** |
36 | This class implements the calendar format used by Sharp. | 36 | This class implements the calendar format used by Phone. |
37 | */ | 37 | */ |
38 | 38 | ||
39 | class SharpFormat : public QObject { | 39 | class PhoneFormat : public QObject { |
40 | public: | 40 | public: |
41 | /** Create new iCalendar format. */ | 41 | /** Create new iCalendar format. */ |
42 | SharpFormat(); | 42 | PhoneFormat(); |
43 | virtual ~SharpFormat(); | 43 | virtual ~PhoneFormat(); |
44 | 44 | ||