author | harlekin <harlekin> | 2002-02-16 13:47:42 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-02-16 13:47:42 (UTC) |
commit | 992d35bb675392922fe1971cb24d76acd3a63747 (patch) (unidiff) | |
tree | f67ae67aebcfcba77b8198a4e5be25b3c2f15eec | |
parent | f866bbd2fd77f07cff04a702eb52e59fcc0013b7 (diff) | |
download | opie-992d35bb675392922fe1971cb24d76acd3a63747.zip opie-992d35bb675392922fe1971cb24d76acd3a63747.tar.gz opie-992d35bb675392922fe1971cb24d76acd3a63747.tar.bz2 |
QCopEnvelope instead of system()
-rw-r--r-- | core/pim/today/today.cpp | 23 |
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 | |||
@@ -21,20 +21,20 @@ | |||
21 | #include "minidom.h" | 21 | #include "minidom.h" |
22 | #include "TodoItem.h" | 22 | #include "TodoItem.h" |
23 | 23 | ||
24 | #include <qpushbutton.h> | ||
25 | #include <qlabel.h> | ||
26 | |||
27 | #include <qpe/datebookdb.h> | 24 | #include <qpe/datebookdb.h> |
28 | #include <qpe/timestring.h> | 25 | #include <qpe/timestring.h> |
29 | #include <qpe/config.h> | 26 | #include <qpe/config.h> |
30 | 27 | #include <qpe/qcopenvelope_qws.h> | |
31 | #include <qpe/qprocess.h> | 28 | #include <qpe/qprocess.h> |
29 | |||
32 | #include <qdir.h> | 30 | #include <qdir.h> |
33 | #include <qfile.h> | 31 | #include <qfile.h> |
34 | #include <qdatetime.h> | 32 | #include <qdatetime.h> |
35 | #include <qtextstream.h> | 33 | #include <qtextstream.h> |
36 | #include <qcheckbox.h> | 34 | #include <qcheckbox.h> |
37 | #include <qspinbox.h> | 35 | #include <qspinbox.h> |
36 | #include <qpushbutton.h> | ||
37 | #include <qlabel.h> | ||
38 | 38 | ||
39 | //#include <iostream.h> | 39 | //#include <iostream.h> |
40 | //#include <unistd.h> | 40 | //#include <unistd.h> |
@@ -189,8 +189,8 @@ void Today::getDates() | |||
189 | } | 189 | } |
190 | 190 | ||
191 | /* | 191 | /* |
192 | * | 192 | * Parse in the todolist.xml |
193 | * | 193 | * |
194 | */ | 194 | */ |
195 | QList<TodoItem> Today::loadTodo(const char *filename) | 195 | QList<TodoItem> Today::loadTodo(const char *filename) |
196 | { | 196 | { |
@@ -311,9 +311,9 @@ void Today::getTodo() | |||
311 | * lanches datebook | 311 | * lanches datebook |
312 | */ | 312 | */ |
313 | void Today::startDatebook() | 313 | void Today::startDatebook() |
314 | { | 314 | { |
315 | //ugly but working | 315 | QCopEnvelope e("QPE/System", "execute(QString)"); |
316 | system("/opt/QtPalmtop/bin/datebook"); | 316 | e << QString("datebook"); |
317 | } | 317 | } |
318 | 318 | ||
319 | /* | 319 | /* |
@@ -321,9 +321,8 @@ void Today::startDatebook() | |||
321 | */ | 321 | */ |
322 | void Today::startTodo() | 322 | void Today::startTodo() |
323 | { | 323 | { |
324 | // QProcess *datelanch = new QProcess( this, "datebook"); | 324 | QCopEnvelope e("QPE/System", "execute(QString)"); |
325 | //datelanch->start(); | 325 | e << QString("todolist"); |
326 | system("/opt/QtPalmtop/bin/todolist"); | ||
327 | } | 326 | } |
328 | 327 | ||
329 | /* | 328 | /* |