Diffstat (limited to 'noncore/net/mail/composemail.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/composemail.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/net/mail/composemail.cpp b/noncore/net/mail/composemail.cpp index 74ccc7b..5bc2883 100644 --- a/noncore/net/mail/composemail.cpp +++ b/noncore/net/mail/composemail.cpp | |||
@@ -10,12 +10,14 @@ | |||
10 | 10 | ||
11 | #include <libmailwrapper/smtpwrapper.h> | 11 | #include <libmailwrapper/smtpwrapper.h> |
12 | #include <libmailwrapper/storemail.h> | 12 | #include <libmailwrapper/storemail.h> |
13 | #include <libmailwrapper/abstractmail.h> | 13 | #include <libmailwrapper/abstractmail.h> |
14 | #include <libmailwrapper/mailtypes.h> | 14 | #include <libmailwrapper/mailtypes.h> |
15 | 15 | ||
16 | using namespace Opie::Core; | ||
17 | using namespace Opie::Ui; | ||
16 | ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags ) | 18 | ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags ) |
17 | : ComposeMailUI( parent, name, modal, flags ) | 19 | : ComposeMailUI( parent, name, modal, flags ) |
18 | { | 20 | { |
19 | settings = s; | 21 | settings = s; |
20 | m_replyid = ""; | 22 | m_replyid = ""; |
21 | 23 | ||
@@ -157,13 +159,13 @@ void ComposeMail::slotAdjustColumns() | |||
157 | 159 | ||
158 | tabWidget->setCurrentPage( currPage ); | 160 | tabWidget->setCurrentPage( currPage ); |
159 | } | 161 | } |
160 | 162 | ||
161 | void ComposeMail::addAttachment() | 163 | void ComposeMail::addAttachment() |
162 | { | 164 | { |
163 | DocLnk lnk = Opie::OFileDialog::getOpenFileName( 1, "/" ); | 165 | DocLnk lnk = OFileDialog::getOpenFileName( 1, "/" ); |
164 | if ( !lnk.name().isEmpty() ) { | 166 | if ( !lnk.name().isEmpty() ) { |
165 | Attachment *att = new Attachment( lnk ); | 167 | Attachment *att = new Attachment( lnk ); |
166 | (void) new AttachViewItem( attList, att ); | 168 | (void) new AttachViewItem( attList, att ); |
167 | } | 169 | } |
168 | } | 170 | } |
169 | 171 | ||
@@ -185,13 +187,13 @@ void ComposeMail::accept() | |||
185 | } | 187 | } |
186 | 188 | ||
187 | #if 0 | 189 | #if 0 |
188 | qDebug( "Sending Mail with " + | 190 | qDebug( "Sending Mail with " + |
189 | smtpAccounts.at( smtpAccountBox->currentItem() )->getAccountName() ); | 191 | smtpAccounts.at( smtpAccountBox->currentItem() )->getAccountName() ); |
190 | #endif | 192 | #endif |
191 | Opie::OSmartPointer<Mail> mail=new Mail; | 193 | Opie::Core::OSmartPointer<Mail> mail=new Mail; |
192 | 194 | ||
193 | SMTPaccount *smtp = smtpAccounts.at( smtpAccountBox->currentItem() ); | 195 | SMTPaccount *smtp = smtpAccounts.at( smtpAccountBox->currentItem() ); |
194 | mail->setMail(fromBox->currentText()); | 196 | mail->setMail(fromBox->currentText()); |
195 | 197 | ||
196 | if ( !toLine->text().isEmpty() ) { | 198 | if ( !toLine->text().isEmpty() ) { |
197 | mail->setTo( toLine->text() ); | 199 | mail->setTo( toLine->text() ); |
@@ -233,13 +235,13 @@ void ComposeMail::reject() | |||
233 | int yesno = QMessageBox::warning(0,tr("Store message"), | 235 | int yesno = QMessageBox::warning(0,tr("Store message"), |
234 | tr("Store message into drafts?"), | 236 | tr("Store message into drafts?"), |
235 | tr("Yes"), | 237 | tr("Yes"), |
236 | tr("No"),QString::null,0,1); | 238 | tr("No"),QString::null,0,1); |
237 | 239 | ||
238 | if (yesno == 0) { | 240 | if (yesno == 0) { |
239 | Opie::OSmartPointer<Mail> mail=new Mail(); | 241 | Opie::Core::OSmartPointer<Mail> mail=new Mail(); |
240 | mail->setMail(fromBox->currentText()); | 242 | mail->setMail(fromBox->currentText()); |
241 | mail->setTo( toLine->text() ); | 243 | mail->setTo( toLine->text() ); |
242 | mail->setName(senderNameEdit->text()); | 244 | mail->setName(senderNameEdit->text()); |
243 | mail->setCC( ccLine->text() ); | 245 | mail->setCC( ccLine->text() ); |
244 | mail->setBCC( bccLine->text() ); | 246 | mail->setBCC( bccLine->text() ); |
245 | mail->setReply( replyLine->text() ); | 247 | mail->setReply( replyLine->text() ); |