summaryrefslogtreecommitdiffabout
path: root/kmicromail/main.cpp
Unidiff
Diffstat (limited to 'kmicromail/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp
index 5362f08..8947ff8 100644
--- a/kmicromail/main.cpp
+++ b/kmicromail/main.cpp
@@ -1,62 +1,63 @@
1// CHANGED 2004-08-06 Lutz Rogowski 1// CHANGED 2004-08-06 Lutz Rogowski
2 2
3 3
4#ifndef DESKTOP_VERSION 4#ifndef DESKTOP_VERSION
5#include <qpe/qpeapplication.h> 5#include <qpe/qpeapplication.h>
6#include <libkdepim/externalapphandler.h> 6#include <libkdepim/externalapphandler.h>
7#include <stdlib.h> 7#include <stdlib.h>
8#else 8#else
9#include <qapplication.h> 9#include <qapplication.h>
10#include <qstring.h> 10#include <qstring.h>
11#include <qwindowsstyle.h> 11#include <qwindowsstyle.h>
12#include <qplatinumstyle.h> 12#include <qplatinumstyle.h>
13#include <qsgistyle.h> 13#include <qsgistyle.h>
14#endif 14#endif
15#include "opiemail.h" 15#include "opiemail.h"
16#include <qdir.h> 16#include <qdir.h>
17#include <kstandarddirs.h> 17#include <kstandarddirs.h>
18#include <kglobal.h> 18#include <kglobal.h>
19#include <stdio.h> 19#include <stdio.h>
20#include "mainwindow.h" 20#include "mainwindow.h"
21#include "koprefs.h" 21#include "koprefs.h"
22 22void dumpMissing();
23//using namespace Opie::Core; 23//using namespace Opie::Core;
24int main( int argc, char **argv ) { 24int main( int argc, char **argv ) {
25 25
26#ifndef DESKTOP_VERSION 26#ifndef DESKTOP_VERSION
27 QPEApplication a( argc, argv ); 27 QPEApplication a( argc, argv );
28 a.setKeepRunning (); 28 a.setKeepRunning ();
29#else 29#else
30 QApplication a( argc, argv ); 30 QApplication a( argc, argv );
31 QApplication::setStyle( new QPlatinumStyle ()); 31 QApplication::setStyle( new QPlatinumStyle ());
32#endif 32#endif
33 a.setFont( KOPrefs::instance()->mAppFont ); 33 a.setFont( KOPrefs::instance()->mAppFont );
34 KGlobal::setAppName( "kopiemail" ); 34 KGlobal::setAppName( "kopiemail" );
35 QString fileName ; 35 QString fileName ;
36#ifndef DESKTOP_VERSION 36#ifndef DESKTOP_VERSION
37 fileName = getenv("QPEDIR"); 37 fileName = getenv("QPEDIR");
38 if ( QApplication::desktop()->width() > 320 ) 38 if ( QApplication::desktop()->width() > 320 )
39 KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kopiemail/icons22/"); 39 KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kopiemail/icons22/");
40 else 40 else
41 KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kopiemail/"); 41 KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kopiemail/");
42#else 42#else
43 fileName = qApp->applicationDirPath () + "/kdepim/kopiemail/"; 43 fileName = qApp->applicationDirPath () + "/kdepim/kopiemail/";
44 KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); 44 KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName));
45#endif 45#endif
46 KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kopiemail"))); 46 KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kopiemail")));
47 OpieMail mw; 47 OpieMail mw;
48#ifndef DESKTOP_VERSION 48#ifndef DESKTOP_VERSION
49 //qDebug("CONNECT "); 49 //qDebug("CONNECT ");
50 QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& ))); 50 QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& )));
51 // QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); 51 // QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & )));
52 a.showMainWidget(&mw ); 52 a.showMainWidget(&mw );
53#else 53#else
54 a.setMainWidget(&mw ); 54 a.setMainWidget(&mw );
55 mw.show(); 55 mw.show();
56 //m.resize( 800, 600 ); 56 //m.resize( 800, 600 );
57 QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); 57 QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
58#endif 58#endif
59 int rv = a.exec(); 59 int rv = a.exec();
60 dumpMissing();
60 return rv; 61 return rv;
61 62
62} 63}