author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kmicromail/composemail.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | kmicromail/composemail.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kmicromail/composemail.h b/kmicromail/composemail.h index 966ac3e..9aef4e1 100644 --- a/kmicromail/composemail.h +++ b/kmicromail/composemail.h | |||
@@ -1,94 +1,94 @@ | |||
1 | #ifndef COMPOSEMAIL_H | 1 | #ifndef COMPOSEMAIL_H |
2 | #define COMPOSEMAIL_H | 2 | #define COMPOSEMAIL_H |
3 | 3 | ||
4 | #include <qlineedit.h> | 4 | #include <qlineedit.h> |
5 | #include <qlistview.h> | 5 | #include <q3listview.h> |
6 | 6 | ||
7 | #include "composemailui.h" | 7 | #include "composemailui.h" |
8 | //#include "addresspickerui.h" | 8 | //#include "addresspickerui.h" |
9 | #include <libmailwrapper/settings.h> | 9 | #include <libmailwrapper/settings.h> |
10 | #include <libmailwrapper/mailwrapper.h> | 10 | #include <libmailwrapper/mailwrapper.h> |
11 | 11 | ||
12 | class RecMail; | 12 | class RecMail; |
13 | 13 | ||
14 | #include <opie2/osmartpointer.h> | 14 | #include <opie2/osmartpointer.h> |
15 | #if 0 | 15 | #if 0 |
16 | class AddressPicker : public AddressPickerUI | 16 | class AddressPicker : public AddressPickerUI |
17 | { | 17 | { |
18 | //Q_OBJECT | 18 | //Q_OBJECT |
19 | 19 | ||
20 | public: | 20 | public: |
21 | AddressPicker( QWidget *parent = 0, const char *name = 0, bool modal = false ); | 21 | AddressPicker( QWidget *parent = 0, const char *name = 0, bool modal = false ); |
22 | static QString getNames(); | 22 | static QString getNames(); |
23 | 23 | ||
24 | protected: | 24 | protected: |
25 | QString selectedNames; | 25 | QString selectedNames; |
26 | void accept(); | 26 | void accept(); |
27 | 27 | ||
28 | }; | 28 | }; |
29 | #endif | 29 | #endif |
30 | class RecMail; | 30 | class RecMail; |
31 | 31 | ||
32 | class ComposeMail : public ComposeMailUI | 32 | class ComposeMail : public ComposeMailUI |
33 | { | 33 | { |
34 | Q_OBJECT | 34 | Q_OBJECT |
35 | 35 | ||
36 | public: | 36 | public: |
37 | 37 | ||
38 | ComposeMail( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = false ); | 38 | ComposeMail( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = false ); |
39 | virtual ~ComposeMail(); | 39 | virtual ~ComposeMail(); |
40 | 40 | ||
41 | void reEditMail(const Opie::Core::OSmartPointer<RecMail>¤t); | 41 | void reEditMail(const Opie::Core::OSmartPointer<RecMail>¤t); |
42 | 42 | ||
43 | public slots: | 43 | public slots: |
44 | void slotAdjustColumns(); | 44 | void slotAdjustColumns(); |
45 | 45 | ||
46 | void setTo( const QString & to ); | 46 | void setTo( const QString & to ); |
47 | void setSubject( const QString & subject ); | 47 | void setSubject( const QString & subject ); |
48 | void setInReplyTo( const QString & messageId ); | 48 | void setInReplyTo( const QString & messageId ); |
49 | void setMessage( const QString & text ); | 49 | void setMessage( const QString & text ); |
50 | void insertAttendees(const QString&, const QStringList& namelist, const QStringList& emaillist, const QStringList& uidlist); | 50 | void insertAttendees(const QString&, const QStringList& namelist, const QStringList& emaillist, const QStringList& uidlist); |
51 | void setCharset(const QString&); | 51 | void setCharset(const QString&); |
52 | 52 | ||
53 | 53 | ||
54 | protected slots: | 54 | protected slots: |
55 | void accept(); | 55 | void accept(); |
56 | void reject(); | 56 | void reject(); |
57 | 57 | ||
58 | private slots: | 58 | private slots: |
59 | void fillValues( int current ); | 59 | void fillValues( int current ); |
60 | void fillSettings(); | 60 | void fillSettings(); |
61 | void pickAddress(); | 61 | void pickAddress(); |
62 | void pickAddressTo(); | 62 | void pickAddressTo(); |
63 | void pickAddressCC(); | 63 | void pickAddressCC(); |
64 | void pickAddressBCC(); | 64 | void pickAddressBCC(); |
65 | void pickAddressReply(); | 65 | void pickAddressReply(); |
66 | void saveAsDraft(); | 66 | void saveAsDraft(); |
67 | void addAttachment(); | 67 | void addAttachment(); |
68 | void removeAttachment(); | 68 | void removeAttachment(); |
69 | void clearStatus(); | 69 | void clearStatus(); |
70 | void setStatus( QString ); | 70 | void setStatus( QString ); |
71 | void saveSig(); | 71 | void saveSig(); |
72 | 72 | ||
73 | protected: | 73 | protected: |
74 | QLineEdit* mPickLineEdit; | 74 | QLineEdit* mPickLineEdit; |
75 | Opie::Core::OSmartPointer<Mail> mMail; | 75 | Opie::Core::OSmartPointer<Mail> mMail; |
76 | Settings *settings; | 76 | Settings *settings; |
77 | QList<SMTPaccount> smtpAccounts; | 77 | QList<SMTPaccount> smtpAccounts; |
78 | QString m_replyid; | 78 | QString m_replyid; |
79 | QString mEncoding; | 79 | QString mEncoding; |
80 | bool warnAttach; | 80 | bool warnAttach; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | class AttachViewItem : public QListViewItem | 83 | class AttachViewItem : public Q3ListViewItem |
84 | { | 84 | { |
85 | public: | 85 | public: |
86 | AttachViewItem( QListView *parent, Attachment *att ); | 86 | AttachViewItem( Q3ListView *parent, Attachment *att ); |
87 | Attachment *getAttachment() { return attachment; } | 87 | Attachment *getAttachment() { return attachment; } |
88 | 88 | ||
89 | private: | 89 | private: |
90 | Attachment *attachment; | 90 | Attachment *attachment; |
91 | 91 | ||
92 | }; | 92 | }; |
93 | 93 | ||
94 | #endif | 94 | #endif |