summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/composer.h
blob: 0b2a54cb8b264ec4cef38751ff09eed108fb6163 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef COMPOSER_H
#define COMPOSER_H

#include <qlistview.h>
#include <qpe/applnk.h>

#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<Account> accountsLoaded;

private:
	bool _sendQueued;
 	int _toSend, _sendCount, _sendError;
	bool _inLoop;
	QString _inReplyTo;

};

#endif