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/composemail.h | |
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/composemail.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/composemail.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/noncore/net/mail/composemail.h b/noncore/net/mail/composemail.h new file mode 100644 index 0000000..c7ae22a --- a/dev/null +++ b/noncore/net/mail/composemail.h @@ -0,0 +1,68 @@ +#ifndef COMPOSEMAIL_H +#define COMPOSEMAIL_H + +#include <qlineedit.h> +#include <qlistview.h> + +#include "composemailui.h" +#include "addresspickerui.h" +#include "settings.h" +#include "mailwrapper.h" + + +class AddressPicker : public AddressPickerUI +{ + Q_OBJECT + +public: + AddressPicker( QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); + static QString getNames(); + +protected: + QString selectedNames; + void accept(); + +}; + + +class ComposeMail : public ComposeMailUI +{ + Q_OBJECT + +public: + ComposeMail( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); + +public slots: + void slotAdjustColumns(); + +protected slots: + void accept(); + +private slots: + void fillValues( int current ); + void pickAddress( QLineEdit *line ); + void pickAddressTo(); + void pickAddressCC(); + void pickAddressBCC(); + void pickAddressReply(); + void addAttachment(); + void removeAttachment(); + +private: + Settings *settings; + QList<SMTPaccount> smtpAccounts; + +}; + +class AttachViewItem : public QListViewItem +{ +public: + AttachViewItem( QListView *parent, Attachment *att ); + Attachment *getAttachment() { return attachment; } + +private: + Attachment *attachment; + +}; + +#endif |