summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp16
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 @@
#include <qapp.h>
#include <qfileinfo.h>
#include <qlabel.h>
+#include <qmap.h>
#include <qwmatrix.h>
#include <qtextbrowser.h>
#include <qtextstream.h>
@@ -51,6 +52,8 @@
#include "klocale.h"
#include "kconfig.h"
#include "simplealarmclient.h"
+#include "externalapphandler.h"
+
using namespace KCal;
#ifndef _WIN32_
#include <unistd.h>
@@ -197,6 +200,9 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) :
qApp->processEvents();
mView->dialogManager()->showSyncOptions();
}
+
+ //US listen for result adressed from Ka/Pi
+ connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & )));
}
MainWindow::~MainWindow()
{
@@ -248,6 +254,16 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
//QString datamess;
//qDebug("message ");
qDebug("KO: QCOP message received: %s ", cmsg.data() );
+
+ if ( cmsg == "-writeFile" ) {
+ // I made from the "-writeFile" an "-writeAlarm"
+ mView->viewManager()->showWhatsNextView();
+ mCalendar->checkAlarmForIncidence( 0, true);
+ showMaximized();
+ raise();
+ return;
+ }
+
if ( cmsg == "-writeFile" ) {
// I made from the "-writeFile" an "-writeAlarm"
mView->viewManager()->showWhatsNextView();