From b51c65d86224ee7d77e672fcfba5ea92d55eed0e Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 08 Aug 2004 20:55:19 +0000 Subject: cleanup --- (limited to 'libkcal/phoneformat.cpp') diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp index 1a9ccbc..7e1c9cd 100644 --- a/libkcal/phoneformat.cpp +++ b/libkcal/phoneformat.cpp @@ -46,20 +46,6 @@ using namespace KCal; -//CARDID,CATEGORY,DSRP,PLCE,MEM1,TIM1,TIM2,ADAY,ARON,ARMN,ARSD,RTYP,RFRQ,RPOS,RDYS,REND,REDT,ALSD,ALED,MDAY -// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 - -//ARSD silentalarm = 0 -// 11 RTYP 225 no /0 dialy/ 1 weekly/ 3 month by date/ 2 month by day(pos)/ yearly -// 12 RFRQ -// 13 RPOS pos = 4. monday in month -// 14 RDYS days: 1 mon/ 2 tue .. 64 sun -// 15 REND 0 = no end/ 1 = end -// 16 REDT rec end dt -//ALSD -//ALED -//MDAY - class PhoneParser : public QObject { public: @@ -173,7 +159,6 @@ public: } } QString alarmString = ""; - // strange 0 semms to mean: alarm enabled if ( alarm ) { Alarm *alarm; if ( todo->alarms().count() > 0 ) @@ -663,7 +648,6 @@ bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal ,QString profi GSM_ReadConfig(NULL, &s.Config[0], 0); s.ConfigNum = 1; GSM_Config *cfg = &s.Config[0]; - di.coding = "utf8"; if ( ! connection.isEmpty() ) { cfg->Connection = strdup(connection.latin1()); cfg->DefaultConnection = false; @@ -684,10 +668,9 @@ bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal ,QString profi } int error=GSM_InitConnection(&s,3); - qDebug(" init %d %d", error, ERR_NONE); + qDebug("GSM Init %d (no error is %d)", error, ERR_NONE); if ( error != ERR_NONE ) return false; - // fromString2Cal( calendar, existngCal, &s, "Event" ); GSM_Phone_Functions *Phone; GSM_CalendarEntry note; bool start = true; @@ -695,7 +678,8 @@ bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal ,QString profi bool gshutdown = false; PhoneParser handler( calendar, profileName ); int ccc = 0; - while (!gshutdown && ccc++ < 3) { + qDebug("Debug: only 10 calender items are downloaded "); + while (!gshutdown && ccc++ < 10) { qDebug("readEvent %d ", ccc); error=Phone->GetNextCalendar(&s,¬e,start); @@ -711,7 +695,7 @@ bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal ,QString profi error = Phone->GetNextToDo(&s, &ToDo, start); if (error == ERR_EMPTY) break; start = false; - qDebug("readTodo %d ", ++ccc); + qDebug("ReadTodo %d ", ++ccc); handler.readTodo( existingCal, &ToDo, &s); } -- cgit v0.9.0.2