summaryrefslogtreecommitdiff
path: root/core/pim/today/today.cpp
authorhakan <hakan>2002-03-29 16:34:24 (UTC)
committer hakan <hakan>2002-03-29 16:34:24 (UTC)
commitdee656e9bf63cc44f906375d5b24cd953a945a8f (patch) (side-by-side diff)
tree5277eb78d25bd3b55dd3196dc8eff926d0e3ba4d /core/pim/today/today.cpp
parent3a1684894efb2106f957469b94350abf754a404e (diff)
downloadopie-dee656e9bf63cc44f906375d5b24cd953a945a8f.zip
opie-dee656e9bf63cc44f906375d5b24cd953a945a8f.tar.gz
opie-dee656e9bf63cc44f906375d5b24cd953a945a8f.tar.bz2
Clicking an event will now bring it up in the datebook dateentry editor
Diffstat (limited to 'core/pim/today/today.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/today.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index aef0a9b..66a4152 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -5,48 +5,49 @@
*
* begin : Sun 10 17:20:00 CEST 2002
* copyright : (c) 2002 by Maximilian Reiß
* email : max.reiss@gmx.de
*
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "today.h"
#include <qpe/timestring.h>
#include <qpe/config.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/qprocess.h>
#include <qpe/resource.h>
#include <qpe/contact.h>
#include <qpe/global.h>
+#include <qpe/qpeapplication.h>
#include <qdir.h>
#include <qfile.h>
#include <qdatetime.h>
#include <qtextstream.h>
#include <qcheckbox.h>
#include <qspinbox.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qtimer.h>
#include <qpixmap.h>
#include <qfileinfo.h>
#include <qlayout.h>
#include <qtl.h>
//#include <iostream.h>
#include <unistd.h>
#include <stdlib.h>
int MAX_LINES_TASK;
int MAX_CHAR_CLIP;
int MAX_LINES_MEET;
int SHOW_LOCATION;
int SHOW_NOTES;
@@ -385,57 +386,57 @@ void Today::getTodo() {
if( count == 1 ) {
output = tr("There is <b> 1</b> active task: <br>" );
} else {
output = tr("There are <b> %1</b> active tasks: <br>").arg(count);
}
output += tmpout;
} else {
output = tr("No active tasks");
}
TodoField->setText(tr(output));
}
/*
* launches datebook
*/
void Today::startDatebook() {
QCopEnvelope e("QPE/System", "execute(QString)");
e << QString("datebook");
}
/*
* starts the edit dialog as known from datebook
*/
+
+extern QPEApplication *todayApp;
+
void Today::editEvent(const Event &e) {
startDatebook();
- //Dissabled for now as uid's not working properly
- /*
- while(!QCopChannel::isRegistered("QPE/Datebook")) sleep(1);
+ while(!QCopChannel::isRegistered("QPE/Datebook")) todayApp->processEvents();
QCopEnvelope env("QPE/Datebook", "editEvent(int)");
env << e.uid();
- */
}
/*
* launches todolist
*/
void Today::startTodo() {
QCopEnvelope e("QPE/System", "execute(QString)");
e << QString("todolist");
}
/*
* launch opiemail
*/
void Today::startMail() {
QCopEnvelope e("QPE/System", "execute(QString)");
e << QString("opiemail");
}
Today::~Today() {
}