author | zautrix <zautrix> | 2004-10-05 11:37:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-05 11:37:46 (UTC) |
commit | 4c877944b4e7bb7f74b4c8db07a99fd8133e8b86 (patch) (unidiff) | |
tree | bd3ecaaa9618eb6774ccc05fa79d546296fe54ba | |
parent | f002814959b88dc7786bbb4299ab6252a6fa8e0d (diff) | |
download | kdepimpi-4c877944b4e7bb7f74b4c8db07a99fd8133e8b86.zip kdepimpi-4c877944b4e7bb7f74b4c8db07a99fd8133e8b86.tar.gz kdepimpi-4c877944b4e7bb7f74b4c8db07a99fd8133e8b86.tar.bz2 |
added missing ;
-rw-r--r-- | libkcal/phoneformat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libkcal/phoneformat.cpp b/libkcal/phoneformat.cpp index 16c5880..29c1ae6 100644 --- a/libkcal/phoneformat.cpp +++ b/libkcal/phoneformat.cpp | |||
@@ -371,25 +371,25 @@ ulong PhoneFormat::getCsum( const QStringList & attList) | |||
371 | 371 | ||
372 | return cSum; | 372 | return cSum; |
373 | 373 | ||
374 | } | 374 | } |
375 | //extern "C" GSM_Error GSM_InitConnection(GSM_StateMachine *s, int ReplyNum); | 375 | //extern "C" GSM_Error GSM_InitConnection(GSM_StateMachine *s, int ReplyNum); |
376 | #include <stdlib.h> | 376 | #include <stdlib.h> |
377 | #define DEBUGMODE false | 377 | #define DEBUGMODE false |
378 | bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal) | 378 | bool PhoneFormat::load( Calendar *calendar, Calendar *existingCal) |
379 | { | 379 | { |
380 | 380 | ||
381 | QString fileName; | 381 | QString fileName; |
382 | #ifdef _WIN32_ | 382 | #ifdef _WIN32_ |
383 | fileName = locateLocal("tmp", "tempfile.vcs") | 383 | fileName = locateLocal("tmp", "tempfile.vcs"); |
384 | #else | 384 | #else |
385 | fileName = "/tmp/kdepimtemp.vcs"; | 385 | fileName = "/tmp/kdepimtemp.vcs"; |
386 | #endif | 386 | #endif |
387 | #ifdef DESKTOP_VERSION | 387 | #ifdef DESKTOP_VERSION |
388 | QString command ="./kammu --backup " + fileName + " -yes" ; | 388 | QString command ="./kammu --backup " + fileName + " -yes" ; |
389 | #else | 389 | #else |
390 | QString command ="kammu --backup " + fileName + " -yes" ; | 390 | QString command ="kammu --backup " + fileName + " -yes" ; |
391 | #endif | 391 | #endif |
392 | int ret = system ( command.latin1() ); | 392 | int ret = system ( command.latin1() ); |
393 | if ( ret != 0 ) { | 393 | if ( ret != 0 ) { |
394 | qDebug("Error::command returned %d", ret); | 394 | qDebug("Error::command returned %d", ret); |
395 | return false; | 395 | return false; |
@@ -575,25 +575,25 @@ bool PhoneFormat::save( Calendar *calendar) | |||
575 | int w = status.sizeHint().width()+20 ; | 575 | int w = status.sizeHint().width()+20 ; |
576 | if ( w < 200 ) w = 230; | 576 | if ( w < 200 ) w = 230; |
577 | int h = status.sizeHint().height()+20 ; | 577 | int h = status.sizeHint().height()+20 ; |
578 | int dw = QApplication::desktop()->width(); | 578 | int dw = QApplication::desktop()->width(); |
579 | int dh = QApplication::desktop()->height(); | 579 | int dh = QApplication::desktop()->height(); |
580 | status.setCaption(i18n("Writing to phone...") ); | 580 | status.setCaption(i18n("Writing to phone...") ); |
581 | status.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 581 | status.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
582 | status.show(); | 582 | status.show(); |
583 | status.raise(); | 583 | status.raise(); |
584 | qApp->processEvents(); | 584 | qApp->processEvents(); |
585 | QString message; | 585 | QString message; |
586 | #ifdef _WIN32_ | 586 | #ifdef _WIN32_ |
587 | QString fileName = locateLocal("tmp", "tempfile.vcs") | 587 | QString fileName = locateLocal("tmp", "tempfile.vcs"); |
588 | #else | 588 | #else |
589 | QString fileName = "/tmp/kdepimtemp.vcs"; | 589 | QString fileName = "/tmp/kdepimtemp.vcs"; |
590 | #endif | 590 | #endif |
591 | 591 | ||
592 | // 1 remove events which should be deleted | 592 | // 1 remove events which should be deleted |
593 | QPtrList<Event> er = calendar->rawEvents(); | 593 | QPtrList<Event> er = calendar->rawEvents(); |
594 | Event* ev = er.first(); | 594 | Event* ev = er.first(); |
595 | while ( ev ) { | 595 | while ( ev ) { |
596 | if ( ev->tempSyncStat() == SYNC_TEMPSTATE_DELETE ) { | 596 | if ( ev->tempSyncStat() == SYNC_TEMPSTATE_DELETE ) { |
597 | calendar->deleteEvent( ev ); | 597 | calendar->deleteEvent( ev ); |
598 | } else { | 598 | } else { |
599 | 599 | ||