summaryrefslogtreecommitdiffabout
path: root/kmicromail/composemail.h
authorzautrix <zautrix>2004-07-03 16:33:12 (UTC)
committer zautrix <zautrix>2004-07-03 16:33:12 (UTC)
commite3b89230f065c48c84b48c88edb6eb088374c487 (patch) (unidiff)
tree162ea2ef909a6f82ccfcedf45d80d6c821174912 /kmicromail/composemail.h
parent2dd6ac0b2d24c91d35ce674a6c26351352df2b15 (diff)
downloadkdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.zip
kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.gz
kdepimpi-e3b89230f065c48c84b48c88edb6eb088374c487.tar.bz2
Initial revision
Diffstat (limited to 'kmicromail/composemail.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/composemail.h86
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
12class RecMail;
13
14#include <opie2/osmartpointer.h>
15#if 0
16class AddressPicker : public AddressPickerUI
17{
18 //Q_OBJECT
19
20public:
21 AddressPicker( QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 );
22 static QString getNames();
23
24protected:
25 QString selectedNames;
26 void accept();
27
28};
29#endif
30class RecMail;
31
32class ComposeMail : public ComposeMailUI
33{
34 Q_OBJECT
35
36public:
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>&current);
41
42public 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
50protected slots:
51 void accept();
52 void reject();
53
54private 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
67protected:
68 Opie::Core::OSmartPointer<Mail> mMail;
69 Settings *settings;
70 QList<SMTPaccount> smtpAccounts;
71 QString m_replyid;
72 bool warnAttach;
73};
74
75class AttachViewItem : public QListViewItem
76{
77public:
78 AttachViewItem( QListView *parent, Attachment *att );
79 Attachment *getAttachment() { return attachment; }
80
81private:
82 Attachment *attachment;
83
84};
85
86#endif