summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-04-24 21:01:23 (UTC)
committer harlekin <harlekin>2002-04-24 21:01:23 (UTC)
commitb15d6ac87e3579992234d4903a34f367d6fa58b4 (patch) (unidiff)
tree3160d16b2db8f62089a2e1ce0382735914aa405e
parentfeaa245515b0746f6f70f590411c38e0a54c88ee (diff)
downloadopie-b15d6ac87e3579992234d4903a34f367d6fa58b4.zip
opie-b15d6ac87e3579992234d4903a34f367d6fa58b4.tar.gz
opie-b15d6ac87e3579992234d4903a34f367d6fa58b4.tar.bz2
fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp34
1 files changed, 19 insertions, 15 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 87a7970..0ab7a2a 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -41,8 +41,9 @@
41//#include <qfileinfo.h> 41//#include <qfileinfo.h>
42#include <qlayout.h> 42#include <qlayout.h>
43#include <qtl.h> 43#include <qtl.h>
44 44
45
45//#include <iostream.h> 46//#include <iostream.h>
46#include <unistd.h> 47#include <unistd.h>
47#include <stdlib.h> 48#include <stdlib.h>
48 49
@@ -126,22 +127,23 @@ void Today::setOwnerField(QString &message) {
126 * Autostart, uses the new (opie only) autostart method in the launcher code. 127 * Autostart, uses the new (opie only) autostart method in the launcher code.
127 * If registered against that today ist started on each resume. 128 * If registered against that today ist started on each resume.
128 */ 129 */
129void Today::autoStart() { 130void Today::autoStart() {
130 // Config cfg("today"); 131 Config cfg("today");
131 //cfg.setGroup("Autostart"); 132 cfg.setGroup("Autostart");
132 //AUTOSTART = cfg.readNumEntry("autostart",1); 133 int AUTOSTART = cfg.readNumEntry("autostart",1);
133 134 qDebug(QString("%1").arg(AUTOSTART));
134 if (AUTOSTART) { 135 if (AUTOSTART) {
135 QCopEnvelope e("QPE/System", "autoStart(QString, QString, QString)"); 136 QCopEnvelope e("QPE/System", "autoStart(QString, QString, QString)");
136 e << QString("add"); 137 e << QString("add");
137 e << QString("today"); 138 e << QString("today");
138 e << AUTOSTART_TIMER; 139 e << AUTOSTART_TIMER;
139 } else { 140 } else {
140 QCopEnvelope e("QPE/System", "autoStart(QString, QString)"); 141 qDebug("Nun in else bei autostart");
141 e << QString("remove"); 142 QCopEnvelope e("QPE/System", "autoStart(QString, QString)");
142 e << QString("today"); 143 e << QString("remove");
143 } 144 e << QString("today");
145 }
144} 146}
145 147
146/* 148/*
147 * Repaint method. Reread all fields. 149 * Repaint method. Reread all fields.
@@ -260,8 +262,9 @@ void Today::startConfig() {
260 int onlylater = conf->CheckBox3->isChecked(); 262 int onlylater = conf->CheckBox3->isChecked();
261 int autostart = conf->CheckBoxAuto->isChecked(); 263 int autostart = conf->CheckBoxAuto->isChecked();
262 int autostartdelay = conf->SpinBoxTime->value(); 264 int autostartdelay = conf->SpinBoxTime->value();
263 265
266
264 cfg.writeEntry("maxlinestask",maxlinestask); 267 cfg.writeEntry("maxlinestask",maxlinestask);
265 cfg.writeEntry("maxcharclip", maxcharclip); 268 cfg.writeEntry("maxcharclip", maxcharclip);
266 cfg.writeEntry("maxlinesmeet",maxmeet); 269 cfg.writeEntry("maxlinesmeet",maxmeet);
267 cfg.writeEntry("showlocation",location); 270 cfg.writeEntry("showlocation",location);
@@ -274,8 +277,9 @@ void Today::startConfig() {
274 // sync it to "disk" 277 // sync it to "disk"
275 cfg.write(); 278 cfg.write();
276 NEW_START=1; 279 NEW_START=1;
277 draw(); 280 draw();
281 AUTOSTART=autostart;
278 autoStart(); 282 autoStart();
279} 283}
280 284
281 285
@@ -452,9 +456,9 @@ void Today::startMail() {
452 QCopEnvelope e("QPE/System", "execute(QString)"); 456 QCopEnvelope e("QPE/System", "execute(QString)");
453 e << QString("opiemail"); 457 e << QString("opiemail");
454//Right now start both, maybe decide which to rum via config file .. 458//Right now start both, maybe decide which to rum via config file ..
455 QCopEnvelope f("QPE/System", "execute(QString)"); 459 QCopEnvelope f("QPE/System", "execute(QString)");
456 e << QString("qtmail"); 460 f << QString("qtmail");
457} 461}
458 462
459 463
460Today::~Today() { 464Today::~Today() {