00001 #ifndef COMPOSER_H 00002 #define COMPOSER_H 00003 00004 #include <qlistview.h> 00005 #include <qpe/applnk.h> 00006 00007 #include "mailfactory.h" 00008 #include "composerbase.h" 00009 #include "configfile.h" 00010 00011 class AttachViewItem : public QListViewItem 00012 { 00013 public: 00014 AttachViewItem(QListView *parent, Attachment &attachment); 00015 00016 Attachment attachment() { return _attachment; } 00017 00018 private: 00019 Attachment _attachment; 00020 00021 }; 00022 00023 class Composer : public ComposerBase 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 Composer(QWidget *parent = 0, const char *name = 0, WFlags fl = Qt::WType_Modal, bool sendQueue = false); 00029 ~Composer(); 00030 00031 void hide(); 00032 void exec(); 00033 00034 void setSendMail(SendMail &sendMail); 00035 00036 public slots: 00037 void slotSendQueued(); 00038 00039 protected slots: 00040 void slotPopupHandler(int itemid); 00041 void slotSendMail(); 00042 void slotQueueMail(); 00043 void slotSendError(const QString &); 00044 void slotSendFinished(); 00045 void slotSendQueuedError(const QString &); 00046 void slotSendQueuedFinished(); 00047 void slotResizing(); 00048 void slotFillStuff(); 00049 void slotFromChanged(int id); 00050 void slotOpenAddressPicker(); 00051 void slotAddAttach(); 00052 void slotDelAttach(); 00053 00054 protected: 00055 QValueList<Account> accountsLoaded; 00056 00057 private: 00058 bool _sendQueued; 00059 int _toSend, _sendCount, _sendError; 00060 bool _inLoop; 00061 QString _inReplyTo; 00062 00063 }; 00064 00065 #endif
1.4.2