-rw-r--r-- | kmicromail/composemail.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/kmicromail/composemail.h b/kmicromail/composemail.h new file mode 100644 index 0000000..876b597 --- a/dev/null +++ b/kmicromail/composemail.h | |||
@@ -0,0 +1,86 @@ | |||
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 <libmailwrapper/settings.h> | ||
10 | #include <libmailwrapper/mailwrapper.h> | ||
11 | |||
12 | class RecMail; | ||
13 | |||
14 | #include <opie2/osmartpointer.h> | ||
15 | #if 0 | ||
16 | class AddressPicker : public AddressPickerUI | ||
17 | { | ||
18 | //Q_OBJECT | ||
19 | |||
20 | public: | ||
21 | AddressPicker( QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); | ||
22 | static QString getNames(); | ||
23 | |||
24 | protected: | ||
25 | QString selectedNames; | ||
26 | void accept(); | ||
27 | |||
28 | }; | ||
29 | #endif | ||
30 | class RecMail; | ||
31 | |||
32 | class ComposeMail : public ComposeMailUI | ||
33 | { | ||
34 | Q_OBJECT | ||
35 | |||
36 | public: | ||
37 | ComposeMail( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 ); | ||
38 | virtual ~ComposeMail(); | ||
39 | |||
40 | void reEditMail(const Opie::Core::OSmartPointer<RecMail>¤t); | ||
41 | |||
42 | public slots: | ||
43 | void slotAdjustColumns(); | ||
44 | |||
45 | void setTo( const QString & to ); | ||
46 | void setSubject( const QString & subject ); | ||
47 | void setInReplyTo( const QString & messageId ); | ||
48 | void setMessage( const QString & text ); | ||
49 | |||
50 | protected slots: | ||
51 | void accept(); | ||
52 | void reject(); | ||
53 | |||
54 | private slots: | ||
55 | void fillValues( int current ); | ||
56 | void pickAddress( QLineEdit *line ); | ||
57 | void pickAddressTo(); | ||
58 | void pickAddressCC(); | ||
59 | void pickAddressBCC(); | ||
60 | void pickAddressReply(); | ||
61 | void saveAsDraft(); | ||
62 | void addAttachment(); | ||
63 | void removeAttachment(); | ||
64 | void clearStatus(); | ||
65 | void setStatus( QString ); | ||
66 | |||
67 | protected: | ||
68 | Opie::Core::OSmartPointer<Mail> mMail; | ||
69 | Settings *settings; | ||
70 | QList<SMTPaccount> smtpAccounts; | ||
71 | QString m_replyid; | ||
72 | bool warnAttach; | ||
73 | }; | ||
74 | |||
75 | class AttachViewItem : public QListViewItem | ||
76 | { | ||
77 | public: | ||
78 | AttachViewItem( QListView *parent, Attachment *att ); | ||
79 | Attachment *getAttachment() { return attachment; } | ||
80 | |||
81 | private: | ||
82 | Attachment *attachment; | ||
83 | |||
84 | }; | ||
85 | |||
86 | #endif | ||