summaryrefslogtreecommitdiff
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
parentf866bbd2fd77f07cff04a702eb52e59fcc0013b7 (diff)
downloadopie-992d35bb675392922fe1971cb24d76acd3a63747.zip
opie-992d35bb675392922fe1971cb24d76acd3a63747.tar.gz
opie-992d35bb675392922fe1971cb24d76acd3a63747.tar.bz2
QCopEnvelope instead of system()
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
@@ -18,26 +18,26 @@
***************************************************************************/
#include "today.h"
#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>
#include <stdlib.h>
int MAX_LINES_TASK;
@@ -186,13 +186,13 @@ void Today::getDates()
}
DatesField->setText(msg);
}
}
/*
- *
+ * Parse in the todolist.xml
*
*/
QList<TodoItem> Today::loadTodo(const char *filename)
{
DOM *todo;
ELE *tasks;
@@ -309,24 +309,23 @@ void Today::getTodo()
/*
* lanches datebook
*/
void Today::startDatebook()
{
- //ugly but working
- system("/opt/QtPalmtop/bin/datebook");
+ QCopEnvelope e("QPE/System", "execute(QString)");
+ e << QString("datebook");
}
/*
* lanches todolist
*/
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");
}
/*
* Destroys the object and frees any allocated resources
*/
Today::~Today()