summaryrefslogtreecommitdiff
path: root/core/pim
authorharlekin <harlekin>2002-02-16 13:47:42 (UTC)
committer harlekin <harlekin>2002-02-16 13:47:42 (UTC)
commit992d35bb675392922fe1971cb24d76acd3a63747 (patch) (side-by-side diff)
treef67ae67aebcfcba77b8198a4e5be25b3c2f15eec /core/pim
parentf866bbd2fd77f07cff04a702eb52e59fcc0013b7 (diff)
downloadopie-992d35bb675392922fe1971cb24d76acd3a63747.zip
opie-992d35bb675392922fe1971cb24d76acd3a63747.tar.gz
opie-992d35bb675392922fe1971cb24d76acd3a63747.tar.bz2
QCopEnvelope instead of system()
Diffstat (limited to 'core/pim') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp23
1 files changed, 11 insertions, 12 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
@@ -23,5 +23,2 @@
-#include <qpushbutton.h>
-#include <qlabel.h>
-
#include <qpe/datebookdb.h>
@@ -29,4 +26,5 @@
#include <qpe/config.h>
-
+#include <qpe/qcopenvelope_qws.h>
#include <qpe/qprocess.h>
+
#include <qdir.h>
@@ -37,2 +35,4 @@
#include <qspinbox.h>
+#include <qpushbutton.h>
+#include <qlabel.h>
@@ -191,4 +191,4 @@ void Today::getDates()
/*
- *
- *
+ * Parse in the todolist.xml
+ *
*/
@@ -313,5 +313,5 @@ void Today::getTodo()
void Today::startDatebook()
-{
- //ugly but working
- system("/opt/QtPalmtop/bin/datebook");
+{
+ QCopEnvelope e("QPE/System", "execute(QString)");
+ e << QString("datebook");
}
@@ -323,5 +323,4 @@ 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");
}