Diffstat (limited to 'noncore/unsupported/mailit/mailitwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/mailitwindow.cpp | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/noncore/unsupported/mailit/mailitwindow.cpp b/noncore/unsupported/mailit/mailitwindow.cpp index 2bf1dcb..ef5fc09 100644 --- a/noncore/unsupported/mailit/mailitwindow.cpp +++ b/noncore/unsupported/mailit/mailitwindow.cpp | |||
@@ -44,14 +44,17 @@ MailItWindow::MailItWindow(QWidget *parent, const char *name, WFlags fl) | |||
44 | connect(writeMail, SIGNAL(sendMailRequested(const Email &)), this, | 44 | connect(writeMail, SIGNAL(sendMailRequested(const Email &)), this, |
45 | SLOT(showEmailClient()) ); | 45 | SLOT(showEmailClient()) ); |
46 | connect(writeMail, SIGNAL(sendMailRequested(const Email &)), emailClient, | 46 | connect(writeMail, SIGNAL(sendMailRequested(const Email &)), emailClient, |
47 | SLOT(enqueMail(const Email &)) ); | 47 | SLOT(enqueMail(const Email &)) ); |
48 | 48 | ||
49 | connect(readMail, SIGNAL(cancelView()), this, SLOT(showEmailClient()) ); | 49 | connect(readMail, SIGNAL(cancelView()), this, SLOT(showEmailClient()) ); |
50 | connect(readMail, SIGNAL(replyRequested(Email &)), this, | 50 | connect(readMail, SIGNAL(replyRequested(Email &, bool&)), this, |
51 | SLOT(composeReply(Email &)) ); | 51 | SLOT(composeReply(Email &, bool&)) ); |
52 | connect(readMail, SIGNAL(forwardRequested(Email &)), this, | ||
53 | SLOT(composeForward(Email &)) ); | ||
54 | |||
52 | connect(readMail, SIGNAL(removeItem(EmailListItem *, bool &)), emailClient, | 55 | connect(readMail, SIGNAL(removeItem(EmailListItem *, bool &)), emailClient, |
53 | SLOT(deleteMail(EmailListItem *, bool &)) ); | 56 | SLOT(deleteMail(EmailListItem *, bool &)) ); |
54 | connect(readMail, SIGNAL(viewingMail(Email *)), emailClient, | 57 | connect(readMail, SIGNAL(viewingMail(Email *)), emailClient, |
55 | SLOT(moveMailFront(Email *)) ); | 58 | SLOT(moveMailFront(Email *)) ); |
56 | 59 | ||
57 | connect(emailClient, SIGNAL(newCaption(const QString &)), | 60 | connect(emailClient, SIGNAL(newCaption(const QString &)), |
@@ -80,18 +83,25 @@ void MailItWindow::compose() | |||
80 | readMail->hide(); | 83 | readMail->hide(); |
81 | views->raiseWidget(writeMail); | 84 | views->raiseWidget(writeMail); |
82 | writeMail->setAddressList(emailClient->getAdrListRef()); | 85 | writeMail->setAddressList(emailClient->getAdrListRef()); |
83 | setCaption( tr( "Write mail" ) ); | 86 | setCaption( tr( "Write mail" ) ); |
84 | } | 87 | } |
85 | 88 | ||
86 | void MailItWindow::composeReply(Email &mail) | 89 | void MailItWindow::composeReply(Email &mail, bool& replyAll) |
90 | { | ||
91 | compose(); | ||
92 | writeMail->reply(mail,replyAll) ; | ||
93 | } | ||
94 | |||
95 | void MailItWindow::composeForward(Email &mail) | ||
87 | { | 96 | { |
88 | compose(); | 97 | compose(); |
89 | writeMail->reply(mail); | 98 | writeMail->forward(mail) ; |
90 | } | 99 | } |
91 | 100 | ||
101 | |||
92 | void MailItWindow::showEmailClient() | 102 | void MailItWindow::showEmailClient() |
93 | { | 103 | { |
94 | viewingMail = FALSE; | 104 | viewingMail = FALSE; |
95 | writeMail->hide(); | 105 | writeMail->hide(); |
96 | readMail->hide(); | 106 | readMail->hide(); |
97 | views->raiseWidget(emailClient); | 107 | views->raiseWidget(emailClient); |
@@ -128,6 +138,28 @@ void MailItWindow::setDocument(const QString &_address) | |||
128 | address = address.mid(6); | 138 | address = address.mid(6); |
129 | 139 | ||
130 | compose(); | 140 | compose(); |
131 | writeMail->setRecipient(address); | 141 | writeMail->setRecipient(address); |
132 | } | 142 | } |
133 | 143 | ||
144 | /*void MailItWindow::reply(Email& mail) | ||
145 | { | ||
146 | qDebug("####EmailClient: 0 reached"); | ||
147 | composeReply(mail,(bool&)FALSE); | ||
148 | } | ||
149 | |||
150 | void MailItWindow::replyAll(Email& mail) | ||
151 | { | ||
152 | qDebug("####EmailClient: 1 reached"); | ||
153 | composeReply(mail,(bool&)TRUE); | ||
154 | } | ||
155 | |||
156 | void MailItWindow::forward(Email& mail) | ||
157 | { | ||
158 | qDebug("####EmailClient: 2 reached"); | ||
159 | } | ||
160 | |||
161 | void MailItWindow::remove(Email&) | ||
162 | { | ||
163 | qDebug("####EmailClient: 3 reached"); | ||
164 | //emit removeItem(eli,(bool&)TRUE); | ||
165 | } */ \ No newline at end of file | ||