author | zautrix <zautrix> | 2004-08-08 09:33:57 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-08 09:33:57 (UTC) |
commit | 71eba6589af91448b84bfd409439115972203e9e (patch) (side-by-side diff) | |
tree | bb904ef144f9ae4ca2da5f95faceb68bc02d113e /libkcal | |
parent | ad825350a6967b6e0273c0a5916693853b70d242 (diff) | |
download | kdepimpi-71eba6589af91448b84bfd409439115972203e9e.zip kdepimpi-71eba6589af91448b84bfd409439115972203e9e.tar.gz kdepimpi-71eba6589af91448b84bfd409439115972203e9e.tar.bz2 |
small fix
-rw-r--r-- | libkcal/phoneformat.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp index c97b43d..238b0ef 100644 --- a/libkcal/phoneformat.cpp +++ b/libkcal/phoneformat.cpp @@ -180,32 +180,33 @@ public: todo->addAlarm( alarm ); } alarm->setType( Alarm::Audio ); alarm->setEnabled( true ); int alarmOffset = alarmDt.secsTo( todo->dtStart() ); alarm->setStartOffset( alarmOffset ); alarmString = QString::number( alarmOffset ); } // csum ***************************************** QStringList attList; uint cSum; if ( todo->hasDueDate() ) attList << dtToString ( todo->dtDue() ); attList << QString::number( id ); attList << todo->summary(); attList << completedString; + attList << QString::number( todo->priority() ); attList << alarmString; attList << todo->categoriesStr(); attList << todo->secrecyStr(); cSum = PhoneFormat::getCsum(attList ); todo->setCsum( mProfileName, QString::number( cSum )); mCalendar->addTodo( todo); return true; } bool readEvent( Calendar *existingCalendar, GSM_CalendarEntry* Note) { int id = Note->Location; Event *event; event = existingCalendar->event( mProfileName ,QString::number( id ) ); if ( event ) @@ -661,33 +662,33 @@ bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal ,QString profi GSM_CalendarEntry note; bool refresh = true; Phone=s.Phone.Functions; bool gshutdown = false; PhoneParser handler( calendar, profileName ); int ccc = 0; while (!gshutdown && ccc++ < 10 ) { qDebug("readEvent %d ", ccc); error=Phone->GetNextCalendar(&s,¬e,refresh); if (error == ERR_EMPTY) break; handler.readEvent( existingCal, ¬e ); } bool start = true; GSM_ToDoEntry ToDo; - int ccc = 0; + ccc = 0; while (!gshutdown) { error = Phone->GetNextToDo(&s, &ToDo, start); if (error == ERR_EMPTY) break; start = false; qDebug("readTodo %d ", ++ccc); handler.readTodo( existingCal, &ToDo, &s); } error=GSM_TerminateConnection(&s); return true; } bool PhoneFormat::save( Calendar *calendar) { |