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) (side-by-side diff)
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 @@
+#ifndef COMPOSEMAIL_H
+#define COMPOSEMAIL_H
+
+#include <qlineedit.h>
+#include <qlistview.h>
+
+#include "composemailui.h"
+//#include "addresspickerui.h"
+#include <libmailwrapper/settings.h>
+#include <libmailwrapper/mailwrapper.h>
+
+class RecMail;
+
+#include <opie2/osmartpointer.h>
+#if 0
+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();
+
+};
+#endif
+class RecMail;
+
+class ComposeMail : public ComposeMailUI
+{
+ Q_OBJECT
+
+public:
+ ComposeMail( Settings *s, QWidget *parent = 0, const char *name = 0, bool modal = false, WFlags flags = 0 );
+ virtual ~ComposeMail();
+
+ void reEditMail(const Opie::Core::OSmartPointer<RecMail>&current);
+
+public slots:
+ void slotAdjustColumns();
+
+ void setTo( const QString & to );
+ void setSubject( const QString & subject );
+ void setInReplyTo( const QString & messageId );
+ void setMessage( const QString & text );
+
+protected slots:
+ void accept();
+ void reject();
+
+private slots:
+ void fillValues( int current );
+ void pickAddress( QLineEdit *line );
+ void pickAddressTo();
+ void pickAddressCC();
+ void pickAddressBCC();
+ void pickAddressReply();
+ void saveAsDraft();
+ void addAttachment();
+ void removeAttachment();
+ void clearStatus();
+ void setStatus( QString );
+
+protected:
+ Opie::Core::OSmartPointer<Mail> mMail;
+ Settings *settings;
+ QList<SMTPaccount> smtpAccounts;
+ QString m_replyid;
+ bool warnAttach;
+};
+
+class AttachViewItem : public QListViewItem
+{
+public:
+ AttachViewItem( QListView *parent, Attachment *att );
+ Attachment *getAttachment() { return attachment; }
+
+private:
+ Attachment *attachment;
+
+};
+
+#endif