author | harlekin <harlekin> | 2003-12-08 13:37:32 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-08 13:37:32 (UTC) |
commit | 3b37149813d940535b12ba3b1edd938c41804a1b (patch) (side-by-side diff) | |
tree | 0e35a3b28fb147514f22a6a6cb5aaf246e4c5670 /noncore/net/mail/opiemail.cpp | |
parent | 3d49fc2f7bba9c9e8856e5f4f7ec6c15ef84c252 (diff) | |
download | opie-3b37149813d940535b12ba3b1edd938c41804a1b.zip opie-3b37149813d940535b12ba3b1edd938c41804a1b.tar.gz opie-3b37149813d940535b12ba3b1edd938c41804a1b.tar.bz2 |
beginning of the new mailer
Diffstat (limited to 'noncore/net/mail/opiemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/opiemail.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp new file mode 100644 index 0000000..93f3bb7 --- a/dev/null +++ b/noncore/net/mail/opiemail.cpp @@ -0,0 +1,50 @@ +#include "opiemail.h" +#include "editaccounts.h" +#include "composemail.h" + +OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) + : MainWindow( parent, name, flags ) +{ + settings = new Settings(); + + folderView->populate( settings->getAccounts() ); + + connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); + connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); + connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); + connect( editSettings, SIGNAL( activated() ), SLOT( slotEditSettings() ) ); + connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); +} + +void OpieMail::slotComposeMail() +{ + qDebug( "Compose Mail" ); + ComposeMail compose( settings, this, 0 , true ); + compose.showMaximized(); + compose.slotAdjustColumns(); + compose.exec(); +} + +void OpieMail::slotSendQueued() +{ + qDebug( "Send Queued" ); +} + +void OpieMail::slotSearchMails() +{ + qDebug( "Search Mails" ); +} + +void OpieMail::slotEditSettings() +{ + qDebug( "Edit Settings" ); +} + +void OpieMail::slotEditAccounts() +{ + qDebug( "Edit Accounts" ); + EditAccounts eaDialog( settings, this, 0, true ); + eaDialog.showMaximized(); + eaDialog.slotAdjustColumns(); + eaDialog.exec(); +} |