summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/mainwindow.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/unsupported/mail2/mainwindow.cpp b/noncore/unsupported/mail2/mainwindow.cpp
index a596653..0d09ec8 100644
--- a/noncore/unsupported/mail2/mainwindow.cpp
+++ b/noncore/unsupported/mail2/mainwindow.cpp
@@ -1,14 +1,16 @@
1#include <qmessagebox.h> 1#include <qmessagebox.h>
2#include <qaction.h> 2#include <qaction.h>
3#include <qapplication.h>
4
3#include <qpe/qcopenvelope_qws.h> 5#include <qpe/qcopenvelope_qws.h>
4 6
5#include "mailstatusbar.h" 7#include "mailstatusbar.h"
6#include "folderwidget.h" 8#include "folderwidget.h"
7#include "mainwindow.h" 9#include "mainwindow.h"
8#include "configdiag.h" 10#include "configdiag.h"
9#include "configfile.h" 11#include "configfile.h"
10#include "searchdiag.h" 12#include "searchdiag.h"
11#include "mailtable.h" 13#include "mailtable.h"
12#include "composer.h" 14#include "composer.h"
13#include "viewmail.h" 15#include "viewmail.h"
14#include "mailfactory.h" 16#include "mailfactory.h"
@@ -28,27 +30,29 @@ MainWindow::MainWindow(QWidget *parent, const char *name, WFlags fl)
28 connect(mailView, SIGNAL(resetProgress()), status, SLOT(resetProgress())); 30 connect(mailView, SIGNAL(resetProgress()), status, SLOT(resetProgress()));
29 connect(mailView, SIGNAL(stopEnabled(bool)), status, SLOT(setStopEnabled(bool))); 31 connect(mailView, SIGNAL(stopEnabled(bool)), status, SLOT(setStopEnabled(bool)));
30 32
31 connect(status, SIGNAL(stop()), mailView, SLOT(stop())); 33 connect(status, SIGNAL(stop()), mailView, SLOT(stop()));
32 34
33 connect(compose, SIGNAL(activated()), SLOT(slotComposeNoParams())); 35 connect(compose, SIGNAL(activated()), SLOT(slotComposeNoParams()));
34 connect(sendQueue, SIGNAL(activated()), SLOT(slotSendQueued())); 36 connect(sendQueue, SIGNAL(activated()), SLOT(slotSendQueued()));
35 connect(findmails, SIGNAL(activated()), SLOT(slotSearch())); 37 connect(findmails, SIGNAL(activated()), SLOT(slotSearch()));
36 connect(configure, SIGNAL(activated()), SLOT(slotConfigure())); 38 connect(configure, SIGNAL(activated()), SLOT(slotConfigure()));
37 39
38 // Added by Stefan Eilers to allow starting by addressbook.. 40 // Added by Stefan Eilers to allow starting by addressbook..
39#if !defined(QT_NO_COP) 41#if !defined(QT_NO_COP)
40 QCopChannel *addressChannel = new QCopChannel("QPE/Application/mail" , this ); 42 // QCopChannel *addressChannel = new QCopChannel("QPE/Application/mail" , this );
41 connect (addressChannel, SIGNAL( received(const QCString &, const QByteArray &)), 43 // connect (addressChannel, SIGNAL( received(const QCString &, const QByteArray &)),
42 this, SLOT ( appMessage(const QCString &, const QByteArray &) ) ); 44 // this, SLOT ( appMessage(const QCString &, const QByteArray &) ) );
45 connect( qApp, SIGNAL( appMessage( const QCString&, const QByteArray& ) ),
46 this, SLOT( appMessage( const QCString&, const QByteArray& ) ) );
43#endif 47#endif
44} 48}
45 49
46// Added by Stefan Eilers to allow starting by addressbook.. 50// Added by Stefan Eilers to allow starting by addressbook..
47void MainWindow::appMessage(const QCString &msg, const QByteArray &data) 51void MainWindow::appMessage(const QCString &msg, const QByteArray &data)
48{ 52{
49 if (msg == "writeMail(QString,QString)") { 53 if (msg == "writeMail(QString,QString)") {
50 QDataStream stream(data,IO_ReadOnly); 54 QDataStream stream(data,IO_ReadOnly);
51 QString name, email; 55 QString name, email;
52 stream >> name >> email; 56 stream >> name >> email;
53 57
54 qWarning("opie-mail:: Should send mail to %s with address %s", name.latin1(), email.latin1() ); 58 qWarning("opie-mail:: Should send mail to %s with address %s", name.latin1(), email.latin1() );