author | ulf69 <ulf69> | 2004-08-17 00:13:25 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-17 00:13:25 (UTC) |
commit | f3875aba68f175e8da32462f64b12fc46bc31102 (patch) (unidiff) | |
tree | c17a6e839a27ddfdc80699739e9934327a4a8610 /korganizer | |
parent | ab3b10a5018152dedbdb64d0d5a4bd8ec752ccdb (diff) | |
download | kdepimpi-f3875aba68f175e8da32462f64b12fc46bc31102.zip kdepimpi-f3875aba68f175e8da32462f64b12fc46bc31102.tar.gz kdepimpi-f3875aba68f175e8da32462f64b12fc46bc31102.tar.bz2 |
added listener for reults of Ka/Pi
-rw-r--r-- | korganizer/mainwindow.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 6c0aa9b..4b00062 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <qapp.h> | 11 | #include <qapp.h> |
12 | #include <qfileinfo.h> | 12 | #include <qfileinfo.h> |
13 | #include <qlabel.h> | 13 | #include <qlabel.h> |
14 | #include <qmap.h> | ||
14 | #include <qwmatrix.h> | 15 | #include <qwmatrix.h> |
15 | #include <qtextbrowser.h> | 16 | #include <qtextbrowser.h> |
16 | #include <qtextstream.h> | 17 | #include <qtextstream.h> |
@@ -51,6 +52,8 @@ | |||
51 | #include "klocale.h" | 52 | #include "klocale.h" |
52 | #include "kconfig.h" | 53 | #include "kconfig.h" |
53 | #include "simplealarmclient.h" | 54 | #include "simplealarmclient.h" |
55 | #include "externalapphandler.h" | ||
56 | |||
54 | using namespace KCal; | 57 | using namespace KCal; |
55 | #ifndef _WIN32_ | 58 | #ifndef _WIN32_ |
56 | #include <unistd.h> | 59 | #include <unistd.h> |
@@ -197,6 +200,9 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : | |||
197 | qApp->processEvents(); | 200 | qApp->processEvents(); |
198 | mView->dialogManager()->showSyncOptions(); | 201 | mView->dialogManager()->showSyncOptions(); |
199 | } | 202 | } |
203 | |||
204 | //US listen for result adressed from Ka/Pi | ||
205 | connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); | ||
200 | } | 206 | } |
201 | MainWindow::~MainWindow() | 207 | MainWindow::~MainWindow() |
202 | { | 208 | { |
@@ -248,6 +254,16 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) | |||
248 | //QString datamess; | 254 | //QString datamess; |
249 | //qDebug("message "); | 255 | //qDebug("message "); |
250 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); | 256 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); |
257 | |||
258 | if ( cmsg == "-writeFile" ) { | ||
259 | // I made from the "-writeFile" an "-writeAlarm" | ||
260 | mView->viewManager()->showWhatsNextView(); | ||
261 | mCalendar->checkAlarmForIncidence( 0, true); | ||
262 | showMaximized(); | ||
263 | raise(); | ||
264 | return; | ||
265 | } | ||
266 | |||
251 | if ( cmsg == "-writeFile" ) { | 267 | if ( cmsg == "-writeFile" ) { |
252 | // I made from the "-writeFile" an "-writeAlarm" | 268 | // I made from the "-writeFile" an "-writeAlarm" |
253 | mView->viewManager()->showWhatsNextView(); | 269 | mView->viewManager()->showWhatsNextView(); |