summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/today.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 381ae6b..00a8842 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -21,20 +21,20 @@
#include "minidom.h"
#include "TodoItem.h"
-#include <qpushbutton.h>
-#include <qlabel.h>
-
#include <qpe/datebookdb.h>
#include <qpe/timestring.h>
#include <qpe/config.h>
-
+#include <qpe/qcopenvelope_qws.h>
#include <qpe/qprocess.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 <iostream.h>
//#include <unistd.h>
@@ -189,7 +189,7 @@ void Today::getDates()
}
/*
- *
+ * Parse in the todolist.xml
*
*/
QList<TodoItem> Today::loadTodo(const char *filename)
@@ -312,8 +312,8 @@ void Today::getTodo()
*/
void Today::startDatebook()
{
- //ugly but working
- system("/opt/QtPalmtop/bin/datebook");
+ QCopEnvelope e("QPE/System", "execute(QString)");
+ e << QString("datebook");
}
/*
@@ -321,9 +321,8 @@ void Today::startDatebook()
*/
void Today::startTodo()
{
- // QProcess *datelanch = new QProcess( this, "datebook");
- //datelanch->start();
- system("/opt/QtPalmtop/bin/todolist");
+ QCopEnvelope e("QPE/System", "execute(QString)");
+ e << QString("todolist");
}
/*