From 992d35bb675392922fe1971cb24d76acd3a63747 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 16 Feb 2002 13:47:42 +0000 Subject: QCopEnvelope instead of system() --- (limited to 'core/pim') 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 -#include - #include #include #include - +#include #include + #include #include #include #include #include #include +#include +#include //#include //#include @@ -189,8 +189,8 @@ void Today::getDates() } /* - * - * + * Parse in the todolist.xml + * */ QList Today::loadTodo(const char *filename) { @@ -311,9 +311,9 @@ 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"); } /* @@ -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"); } /* -- cgit v0.9.0.2