author | zautrix <zautrix> | 2004-08-08 09:33:57 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-08 09:33:57 (UTC) |
commit | 71eba6589af91448b84bfd409439115972203e9e (patch) (unidiff) | |
tree | bb904ef144f9ae4ca2da5f95faceb68bc02d113e | |
parent | ad825350a6967b6e0273c0a5916693853b70d242 (diff) | |
download | kdepimpi-71eba6589af91448b84bfd409439115972203e9e.zip kdepimpi-71eba6589af91448b84bfd409439115972203e9e.tar.gz kdepimpi-71eba6589af91448b84bfd409439115972203e9e.tar.bz2 |
small fix
-rw-r--r-- | libkcal/phoneformat.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp index c97b43d..238b0ef 100644 --- a/libkcal/phoneformat.cpp +++ b/libkcal/phoneformat.cpp | |||
@@ -186,19 +186,20 @@ public: | |||
186 | alarmString = QString::number( alarmOffset ); | 186 | alarmString = QString::number( alarmOffset ); |
187 | } | 187 | } |
188 | // csum ***************************************** | 188 | // csum ***************************************** |
189 | QStringList attList; | 189 | QStringList attList; |
190 | uint cSum; | 190 | uint cSum; |
191 | if ( todo->hasDueDate() ) | 191 | if ( todo->hasDueDate() ) |
192 | attList << dtToString ( todo->dtDue() ); | 192 | attList << dtToString ( todo->dtDue() ); |
193 | attList << QString::number( id ); | 193 | attList << QString::number( id ); |
194 | attList << todo->summary(); | 194 | attList << todo->summary(); |
195 | attList << completedString; | 195 | attList << completedString; |
196 | attList << alarmString; | 196 | attList << QString::number( todo->priority() ); |
197 | attList << alarmString; | ||
197 | attList << todo->categoriesStr(); | 198 | attList << todo->categoriesStr(); |
198 | attList << todo->secrecyStr(); | 199 | attList << todo->secrecyStr(); |
199 | cSum = PhoneFormat::getCsum(attList ); | 200 | cSum = PhoneFormat::getCsum(attList ); |
200 | todo->setCsum( mProfileName, QString::number( cSum )); | 201 | todo->setCsum( mProfileName, QString::number( cSum )); |
201 | mCalendar->addTodo( todo); | 202 | mCalendar->addTodo( todo); |
202 | 203 | ||
203 | return true; | 204 | return true; |
204 | } | 205 | } |
@@ -669,17 +670,17 @@ bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal ,QString profi | |||
669 | qDebug("readEvent %d ", ccc); | 670 | qDebug("readEvent %d ", ccc); |
670 | error=Phone->GetNextCalendar(&s,¬e,refresh); | 671 | error=Phone->GetNextCalendar(&s,¬e,refresh); |
671 | if (error == ERR_EMPTY) break; | 672 | if (error == ERR_EMPTY) break; |
672 | handler.readEvent( existingCal, ¬e ); | 673 | handler.readEvent( existingCal, ¬e ); |
673 | } | 674 | } |
674 | 675 | ||
675 | bool start = true; | 676 | bool start = true; |
676 | GSM_ToDoEntry ToDo; | 677 | GSM_ToDoEntry ToDo; |
677 | int ccc = 0; | 678 | ccc = 0; |
678 | while (!gshutdown) { | 679 | while (!gshutdown) { |
679 | error = Phone->GetNextToDo(&s, &ToDo, start); | 680 | error = Phone->GetNextToDo(&s, &ToDo, start); |
680 | if (error == ERR_EMPTY) break; | 681 | if (error == ERR_EMPTY) break; |
681 | start = false; | 682 | start = false; |
682 | qDebug("readTodo %d ", ++ccc); | 683 | qDebug("readTodo %d ", ++ccc); |
683 | handler.readTodo( existingCal, &ToDo, &s); | 684 | handler.readTodo( existingCal, &ToDo, &s); |
684 | 685 | ||
685 | } | 686 | } |