summaryrefslogtreecommitdiff
path: root/noncore/net/mail/opiemail.cpp
Unidiff
Diffstat (limited to 'noncore/net/mail/opiemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/opiemail.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp
index abf93dc..6bfc824 100644
--- a/noncore/net/mail/opiemail.cpp
+++ b/noncore/net/mail/opiemail.cpp
@@ -1,46 +1,42 @@
1 1
2#include "settingsdialog.h" 2#include "settingsdialog.h"
3#include "opiemail.h" 3#include "opiemail.h"
4#include "editaccounts.h" 4#include "editaccounts.h"
5#include "composemail.h" 5#include "composemail.h"
6#include "mailistviewitem.h" 6#include "mailistviewitem.h"
7#include "viewmail.h" 7#include "viewmail.h"
8#include "selectstore.h" 8#include "selectstore.h"
9#include "selectsmtp.h" 9#include "selectsmtp.h"
10 10
11/* OPIE */ 11/* OPIE */
12#include <libmailwrapper/smtpwrapper.h> 12#include <libmailwrapper/smtpwrapper.h>
13#include <libmailwrapper/mailtypes.h> 13#include <libmailwrapper/mailtypes.h>
14#include <libmailwrapper/abstractmail.h> 14#include <libmailwrapper/abstractmail.h>
15#include <qpe/qcopenvelope_qws.h>
16#include <qpe/resource.h> 15#include <qpe/resource.h>
17#include <qpe/qpeapplication.h> 16#include <qpe/qpeapplication.h>
18 17
19/* QT */ 18/* QT */
20#include <qmessagebox.h>
21#include <qaction.h>
22#include <qapplication.h>
23 19
24OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) 20OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags )
25 : MainWindow( parent, name, WStyle_ContextHelp ) 21 : MainWindow( parent, name, WStyle_ContextHelp )
26{ 22{
27 settings = new Settings(); 23 settings = new Settings();
28 24
29 folderView->populate( settings->getAccounts() ); 25 folderView->populate( settings->getAccounts() );
30} 26}
31 27
32OpieMail::~OpieMail() 28OpieMail::~OpieMail()
33{ 29{
34 if (settings) delete settings; 30 if (settings) delete settings;
35} 31}
36 32
37void OpieMail::appMessage(const QCString &msg, const QByteArray &data) 33void OpieMail::appMessage(const QCString &msg, const QByteArray &data)
38{ 34{
39 // copied from old mail2 35 // copied from old mail2
40 if (msg == "writeMail(QString,QString)") 36 if (msg == "writeMail(QString,QString)")
41 { 37 {
42 QDataStream stream(data,IO_ReadOnly); 38 QDataStream stream(data,IO_ReadOnly);
43 QString name, email; 39 QString name, email;
44 stream >> name >> email; 40 stream >> name >> email;
45 // removing the whitespaces at beginning and end is needed! 41 // removing the whitespaces at beginning and end is needed!
46 slotwriteMail(name.stripWhiteSpace(),email.stripWhiteSpace()); 42 slotwriteMail(name.stripWhiteSpace(),email.stripWhiteSpace());