-rw-r--r-- | core/pim/today/today.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index f5ed8d2..1cb4881 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -430,48 +430,51 @@ void Today::startDatebook() { | |||
430 | extern QPEApplication *todayApp; | 430 | extern QPEApplication *todayApp; |
431 | 431 | ||
432 | void Today::editEvent(const Event &e) { | 432 | void Today::editEvent(const Event &e) { |
433 | startDatebook(); | 433 | startDatebook(); |
434 | 434 | ||
435 | while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents(); | 435 | while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents(); |
436 | QCopEnvelope env("QPE/Datebook", "editEvent(int)"); | 436 | QCopEnvelope env("QPE/Datebook", "editEvent(int)"); |
437 | env << e.uid(); | 437 | env << e.uid(); |
438 | } | 438 | } |
439 | 439 | ||
440 | /* | 440 | /* |
441 | * launches todolist | 441 | * launches todolist |
442 | */ | 442 | */ |
443 | void Today::startTodo() { | 443 | void Today::startTodo() { |
444 | QCopEnvelope e("QPE/System", "execute(QString)"); | 444 | QCopEnvelope e("QPE/System", "execute(QString)"); |
445 | e << QString("todolist"); | 445 | e << QString("todolist"); |
446 | } | 446 | } |
447 | 447 | ||
448 | /* | 448 | /* |
449 | * launch opiemail | 449 | * launch opiemail |
450 | */ | 450 | */ |
451 | void Today::startMail() { | 451 | void Today::startMail() { |
452 | QCopEnvelope e("QPE/System", "execute(QString)"); | 452 | QCopEnvelope e("QPE/System", "execute(QString)"); |
453 | e << QString("opiemail"); | 453 | e << QString("opiemail"); |
454 | //Right now start both, maybe decide which to rum via config file .. | ||
455 | QCopEnvelope e("QPE/System", "execute(QString)"); | ||
456 | e << QString("qtmail"); | ||
454 | } | 457 | } |
455 | 458 | ||
456 | 459 | ||
457 | Today::~Today() { | 460 | Today::~Today() { |
458 | } | 461 | } |
459 | 462 | ||
460 | /* | 463 | /* |
461 | * Gets the events for the current day, if it should get all dates | 464 | * Gets the events for the current day, if it should get all dates |
462 | */ | 465 | */ |
463 | DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | 466 | DateBookEvent::DateBookEvent(const EffectiveEvent &ev, |
464 | QWidget* parent = 0, | 467 | QWidget* parent = 0, |
465 | int SHOW_LOCATION = 0, | 468 | int SHOW_LOCATION = 0, |
466 | int SHOW_NOTES = 0, | 469 | int SHOW_NOTES = 0, |
467 | const char* name = 0, | 470 | const char* name = 0, |
468 | WFlags fl = 0) : | 471 | WFlags fl = 0) : |
469 | ClickableLabel(parent,name,fl), event(ev) { | 472 | ClickableLabel(parent,name,fl), event(ev) { |
470 | 473 | ||
471 | QString msg; | 474 | QString msg; |
472 | //QTime time = QTime::currentTime(); | 475 | //QTime time = QTime::currentTime(); |
473 | 476 | ||
474 | Config config( "qpe" ); | 477 | Config config( "qpe" ); |
475 | // if 24 h format | 478 | // if 24 h format |
476 | ampm = config.readBoolEntry( "AMPM", TRUE ); | 479 | ampm = config.readBoolEntry( "AMPM", TRUE ); |
477 | 480 | ||