summaryrefslogtreecommitdiff
path: root/core/pim/today/today.cpp
Unidiff
Diffstat (limited to 'core/pim/today/today.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 4368201..69a0f75 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -59,24 +59,25 @@ int NEW_START=1;
59QString AUTOSTART_TIMER; 59QString AUTOSTART_TIMER;
60 60
61/* 61/*
62 * Constructs a Example which is a child of 'parent', with the 62 * Constructs a Example which is a child of 'parent', with the
63 * name 'name' and widget flags set to 'f' 63 * name 'name' and widget flags set to 'f'
64 */ 64 */
65Today::Today( QWidget* parent, const char* name, WFlags fl ) 65Today::Today( QWidget* parent, const char* name, WFlags fl )
66 : TodayBase( parent, name, fl ), AllDateBookEvents(NULL) { 66 : TodayBase( parent, name, fl ), AllDateBookEvents(NULL) {
67 QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) ); 67 QObject::connect( (QObject*)PushButton1, SIGNAL( clicked() ), this, SLOT(startConfig() ) );
68 QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) ); 68 QObject::connect( (QObject*)TodoButton, SIGNAL( clicked() ), this, SLOT(startTodo() ) );
69 QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startDatebook() ) ); 69 QObject::connect( (QObject*)DatesButton, SIGNAL( clicked() ), this, SLOT(startDatebook() ) );
70 QObject::connect( (QObject*)MailButton, SIGNAL( clicked() ), this, SLOT(startMail() ) ); 70 QObject::connect( (QObject*)MailButton, SIGNAL( clicked() ), this, SLOT(startMail() ) );
71 QObject::connect( (QObject*)OwnerField, SIGNAL( clicked() ), this, SLOT(editCard() ) );
71 72
72#if defined(Q_WS_QWS) 73#if defined(Q_WS_QWS)
73#if !defined(QT_NO_COP) 74#if !defined(QT_NO_COP)
74 QCopChannel *todayChannel = new QCopChannel("QPE/Today" , this ); 75 QCopChannel *todayChannel = new QCopChannel("QPE/Today" , this );
75 connect (todayChannel, SIGNAL( received(const QCString &, const QByteArray &)), 76 connect (todayChannel, SIGNAL( received(const QCString &, const QByteArray &)),
76 this, SLOT ( channelReceived(const QCString &, const QByteArray &)) ); 77 this, SLOT ( channelReceived(const QCString &, const QByteArray &)) );
77#endif 78#endif
78#endif 79#endif
79 80
80 81
81 82
82 db = NULL; 83 db = NULL;
@@ -410,24 +411,33 @@ void Today::getTodo() {
410 output = tr("There is <b> 1</b> active task: <br>" ); 411 output = tr("There is <b> 1</b> active task: <br>" );
411 } else { 412 } else {
412 output = tr("There are <b> %1</b> active tasks: <br>").arg(count); 413 output = tr("There are <b> %1</b> active tasks: <br>").arg(count);
413 } 414 }
414 output += tmpout; 415 output += tmpout;
415 } else { 416 } else {
416 output = tr("No active tasks"); 417 output = tr("No active tasks");
417 } 418 }
418 419
419 TodoField->setText(tr(output)); 420 TodoField->setText(tr(output));
420} 421}
421 422
423
424/*
425 * launch addressbook
426 */
427void Today::editCard() {
428 QCopEnvelope e("QPE/System", "execute(QString)");
429 e << QString("addressbook");
430}
431
422/* 432/*
423 * launches datebook 433 * launches datebook
424 */ 434 */
425void Today::startDatebook() { 435void Today::startDatebook() {
426 QCopEnvelope e("QPE/System", "execute(QString)"); 436 QCopEnvelope e("QPE/System", "execute(QString)");
427 e << QString("datebook"); 437 e << QString("datebook");
428} 438}
429 439
430/* 440/*
431 * starts the edit dialog as known from datebook 441 * starts the edit dialog as known from datebook
432 */ 442 */
433 443