#ifndef COMPOSER_H #define COMPOSER_H #include #include #include "mailfactory.h" #include "composerbase.h" #include "configfile.h" class AttachViewItem : public QListViewItem { public: AttachViewItem(QListView *parent, Attachment &attachment); Attachment attachment() { return _attachment; } private: Attachment _attachment; }; class Composer : public ComposerBase { Q_OBJECT public: Composer(QWidget *parent = 0, const char *name = 0, WFlags fl = Qt::WType_Modal, bool sendQueue = false); ~Composer(); void hide(); void exec(); void setSendMail(SendMail &sendMail); public slots: void slotSendQueued(); protected slots: void slotPopupHandler(int itemid); void slotSendMail(); void slotQueueMail(); void slotSendError(const QString &); void slotSendFinished(); void slotSendQueuedError(const QString &); void slotSendQueuedFinished(); void slotResizing(); void slotFillStuff(); void slotFromChanged(int id); void slotOpenAddressPicker(); void slotAddAttach(); void slotDelAttach(); protected: QValueList accountsLoaded; private: bool _sendQueued; int _toSend, _sendCount, _sendError; bool _inLoop; QString _inReplyTo; }; #endif