summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-04-19 21:43:29 (UTC)
committer harlekin <harlekin>2002-04-19 21:43:29 (UTC)
commit59aeb3bb66ad382201fe1e2cc3066564240d1cc1 (patch) (unidiff)
treee2d5721765a6dc269d2a58bef5c02ccc11d459e5
parent7ea4abeb652e6787e57a938e1ca028d25fd249ce (diff)
downloadopie-59aeb3bb66ad382201fe1e2cc3066564240d1cc1.zip
opie-59aeb3bb66ad382201fe1e2cc3066564240d1cc1.tar.gz
opie-59aeb3bb66ad382201fe1e2cc3066564240d1cc1.tar.bz2
launch ALSO qtmail by clicking on mail icon
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp3
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() {
430extern QPEApplication *todayApp; 430extern QPEApplication *todayApp;
431 431
432void Today::editEvent(const Event &e) { 432void 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 */
443void Today::startTodo() { 443void 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 */
451void Today::startMail() { 451void 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
457Today::~Today() { 460Today::~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 */
463DateBookEvent::DateBookEvent(const EffectiveEvent &ev, 466DateBookEvent::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