From ab3b10a5018152dedbdb64d0d5a4bd8ec752ccdb Mon Sep 17 00:00:00 2001 From: ulf69 Date: Tue, 17 Aug 2004 00:09:26 +0000 Subject: QCop implementation for KOrganizer to access Ka/pi directly --- (limited to 'kaddressbook/mainembedded.cpp') diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index 7f368eb..850e5b2 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp @@ -3,9 +3,9 @@ #include #else #include -#include -#include -#include +#include +#include +#include #endif #include @@ -13,6 +13,7 @@ #include #include #include "kaddressbookmain.h" +#include "externalapphandler.h" int main( int argc, char **argv ) { @@ -20,17 +21,17 @@ int main( int argc, char **argv ) QPEApplication a( argc, argv ); a.setKeepRunning (); #else - QApplication a( argc, argv ); + QApplication a( argc, argv ); QApplication::setStyle( new QPlatinumStyle ()); #endif - + bool exitHelp = false; if ( argc > 1 ) { QString command = argv[1]; if ( command == "-help" ){ printf("KA/E command line commands:\n"); printf(" no command: Start KA/E in usual way\n"); - printf(" -help: This output\n"); + printf(" -help: This output\n"); printf(" KA/E is exiting now. Bye!\n"); exitHelp = true; } @@ -49,11 +50,11 @@ int main( int argc, char **argv ) KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); QApplication::addLibraryPath ( qApp->applicationDirPath () ); -#endif +#endif KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kaddressbook"))); KAddressBookMain m ; //US MainWindow m; -//US QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&m, SLOT(recieve( const QCString&, const QByteArray& ))); + QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); #ifndef DESKTOP_VERSION a.showMainWidget( &m ); @@ -63,7 +64,7 @@ int main( int argc, char **argv ) m.show(); #endif a.exec(); - + } qDebug("KA: Bye! "); } -- cgit v0.9.0.2