author | harlekin <harlekin> | 2002-04-19 21:43:29 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-04-19 21:43:29 (UTC) |
commit | 59aeb3bb66ad382201fe1e2cc3066564240d1cc1 (patch) (unidiff) | |
tree | e2d5721765a6dc269d2a58bef5c02ccc11d459e5 | |
parent | 7ea4abeb652e6787e57a938e1ca028d25fd249ce (diff) | |
download | opie-59aeb3bb66ad382201fe1e2cc3066564240d1cc1.zip opie-59aeb3bb66ad382201fe1e2cc3066564240d1cc1.tar.gz opie-59aeb3bb66ad382201fe1e2cc3066564240d1cc1.tar.bz2 |
launch ALSO qtmail by clicking on mail icon
-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 | |||
@@ -422,64 +422,67 @@ void Today::startDatebook() { | |||
422 | QCopEnvelope e("QPE/System", "execute(QString)"); | 422 | QCopEnvelope e("QPE/System", "execute(QString)"); |
423 | e << QString("datebook"); | 423 | e << QString("datebook"); |
424 | } | 424 | } |
425 | 425 | ||
426 | /* | 426 | /* |
427 | * starts the edit dialog as known from datebook | 427 | * starts the edit dialog as known from datebook |
428 | */ | 428 | */ |
429 | 429 | ||
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 | ||
478 | 481 | ||
479 | if (!ONLY_LATER) { | 482 | if (!ONLY_LATER) { |
480 | msg += "<B>" + (ev).description() + "</B>"; | 483 | msg += "<B>" + (ev).description() + "</B>"; |
481 | if ( (ev).event().hasAlarm() ) { | 484 | if ( (ev).event().hasAlarm() ) { |
482 | msg += " <b>[with alarm]</b>"; | 485 | msg += " <b>[with alarm]</b>"; |
483 | } | 486 | } |
484 | // include location or not | 487 | // include location or not |
485 | if (SHOW_LOCATION == 1) { | 488 | if (SHOW_LOCATION == 1) { |