Diffstat (limited to 'noncore/net/mail/composemail.h') (more/less context) (ignore 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 @@ | |||
1 | #ifndef COMPOSEMAIL_H | ||
2 | #define COMPOSEMAIL_H | ||
3 | |||
4 | #include <qlineedit.h> | ||
5 | #include <qlistview.h> | ||
6 | |||
7 | #include "composemailui.h" | ||
8 | #include "addresspickerui.h" | ||
9 | #include "settings.h" | ||
10 | #include "mailwrapper.h" | ||
11 | |||
12 | |||
13 | class AddressPicker : public AddressPickerUI | ||
14 | { | ||
15 | Q_OBJECT | ||
16 | |||
17 | public: | ||
18 | AddressPicker( QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); | ||
19 | static QString getNames(); | ||
20 | |||
21 | protected: | ||
22 | QString selectedNames; | ||
23 | void accept(); | ||
24 | |||
25 | }; | ||
26 | |||
27 | |||
28 | class ComposeMail : public ComposeMailUI | ||
29 | { | ||
30 | Q_OBJECT | ||
31 | |||
32 | public: | ||
33 | ComposeMail( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); | ||
34 | |||
35 | public slots: | ||
36 | void slotAdjustColumns(); | ||
37 | |||
38 | protected slots: | ||
39 | void accept(); | ||
40 | |||
41 | private slots: | ||
42 | void fillValues( int current ); | ||
43 | void pickAddress( QLineEdit *line ); | ||
44 | void pickAddressTo(); | ||
45 | void pickAddressCC(); | ||
46 | void pickAddressBCC(); | ||
47 | void pickAddressReply(); | ||
48 | void addAttachment(); | ||
49 | void removeAttachment(); | ||
50 | |||
51 | private: | ||
52 | Settings *settings; | ||
53 | QList<SMTPaccount> smtpAccounts; | ||
54 | |||
55 | }; | ||
56 | |||
57 | class AttachViewItem : public QListViewItem | ||
58 | { | ||
59 | public: | ||
60 | AttachViewItem( QListView *parent, Attachment *att ); | ||
61 | Attachment *getAttachment() { return attachment; } | ||
62 | |||
63 | private: | ||
64 | Attachment *attachment; | ||
65 | |||
66 | }; | ||
67 | |||
68 | #endif | ||