-rw-r--r-- | kmicromail/opiemail.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index 9a1a750..164988c 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp | |||
@@ -1,58 +1,60 @@ | |||
1 | // CHANGED 2004-09-31 Lutz Rogowski | 1 | // CHANGED 2004-09-31 Lutz Rogowski |
2 | // CHANGED 2004-08-06 Lutz Rogowski | 2 | // CHANGED 2004-08-06 Lutz Rogowski |
3 | 3 | ||
4 | #include "settingsdialog.h" | 4 | #include "settingsdialog.h" |
5 | #include "opiemail.h" | 5 | #include "opiemail.h" |
6 | #include "editaccounts.h" | 6 | #include "editaccounts.h" |
7 | #include "composemail.h" | 7 | #include "composemail.h" |
8 | #include "mailistviewitem.h" | 8 | #include "mailistviewitem.h" |
9 | #include "viewmail.h" | 9 | #include "viewmail.h" |
10 | #include "selectstore.h" | 10 | #include "selectstore.h" |
11 | #include "selectsmtp.h" | 11 | #include "selectsmtp.h" |
12 | #include "accountitem.h" | 12 | #include "accountitem.h" |
13 | #include "koprefsdialog.h" | 13 | #include "koprefsdialog.h" |
14 | 14 | ||
15 | #include <qmessagebox.h> | 15 | #include <qmessagebox.h> |
16 | #include <qtimer.h> | 16 | #include <qtimer.h> |
17 | #include <libkdepim/externalapphandler.h> | 17 | #include <libkdepim/externalapphandler.h> |
18 | #include <libkdepim/kpimglobalprefs.h> | ||
18 | 19 | ||
19 | #include <qpe/qpeapplication.h> | 20 | #include <qpe/qpeapplication.h> |
20 | #include <libmailwrapper/smtpwrapper.h> | 21 | #include <libmailwrapper/smtpwrapper.h> |
21 | #include <libmailwrapper/mailtypes.h> | 22 | #include <libmailwrapper/mailtypes.h> |
22 | #include <libmailwrapper/abstractmail.h> | 23 | #include <libmailwrapper/abstractmail.h> |
23 | /* OPIE */ | 24 | /* OPIE */ |
24 | //#include <qpe/resource.h> | 25 | //#include <qpe/resource.h> |
25 | //#include <qpe/qpeapplication.h> | 26 | //#include <qpe/qpeapplication.h> |
26 | 27 | ||
27 | /* QT */ | 28 | /* QT */ |
28 | 29 | ||
29 | //using namespace Opie::Core; | 30 | //using namespace Opie::Core; |
30 | 31 | ||
31 | OpieMail::OpieMail( QWidget *parent, const char *name ) | 32 | OpieMail::OpieMail( QWidget *parent, const char *name ) |
32 | : MainWindow( parent, name) //, WStyle_ContextHelp ) | 33 | : MainWindow( parent, name) //, WStyle_ContextHelp ) |
33 | { | 34 | { |
34 | settings = new Settings(); | 35 | settings = new Settings(); |
36 | KPimGlobalPrefs::instance()->setGlobalConfig(); | ||
35 | 37 | ||
36 | folderView->populate( settings->getAccounts() ); | 38 | folderView->populate( settings->getAccounts() ); |
37 | 39 | ||
38 | } | 40 | } |
39 | 41 | ||
40 | OpieMail::~OpieMail() | 42 | OpieMail::~OpieMail() |
41 | { | 43 | { |
42 | if (settings) delete settings; | 44 | if (settings) delete settings; |
43 | } | 45 | } |
44 | 46 | ||
45 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) | 47 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) |
46 | { | 48 | { |
47 | 49 | ||
48 | } | 50 | } |
49 | #include <stdlib.h> | 51 | #include <stdlib.h> |
50 | void OpieMail::message(const QCString &msg, const QByteArray &data) | 52 | void OpieMail::message(const QCString &msg, const QByteArray &data) |
51 | { | 53 | { |
52 | // copied from old mail2 | 54 | // copied from old mail2 |
53 | static int ii = 0; | 55 | static int ii = 0; |
54 | //qDebug("QCOP CALL ############################# %d ", ii); | 56 | //qDebug("QCOP CALL ############################# %d ", ii); |
55 | //QString mess ( msg ); | 57 | //QString mess ( msg ); |
56 | //qDebug("Message = %s ",mess.latin1()); | 58 | //qDebug("Message = %s ",mess.latin1()); |
57 | ++ii; | 59 | ++ii; |
58 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); | 60 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); |