Diffstat (limited to 'noncore/net/mail/smtpwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/smtpwrapper.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/noncore/net/mail/smtpwrapper.h b/noncore/net/mail/smtpwrapper.h deleted file mode 100644 index 05becf2..0000000 --- a/noncore/net/mail/smtpwrapper.h +++ b/dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | #ifndef SMTPwrapper_H | ||
2 | #define SMTPwrapper_H | ||
3 | |||
4 | #include <qpe/applnk.h> | ||
5 | |||
6 | #include <qbitarray.h> | ||
7 | #include <qdatetime.h> | ||
8 | #include <libetpan/clist.h> | ||
9 | |||
10 | #include "settings.h" | ||
11 | |||
12 | class Mail; | ||
13 | class MBOXwrapper; | ||
14 | class RecMail; | ||
15 | class Attachment; | ||
16 | struct mailimf_fields; | ||
17 | struct mailimf_field; | ||
18 | struct mailimf_mailbox; | ||
19 | struct mailmime; | ||
20 | struct mailimf_address_list; | ||
21 | class progressMailSend; | ||
22 | |||
23 | class SMTPwrapper : public QObject | ||
24 | { | ||
25 | Q_OBJECT | ||
26 | |||
27 | public: | ||
28 | SMTPwrapper( Settings *s ); | ||
29 | virtual ~SMTPwrapper(){} | ||
30 | void sendMail(const Mail& mail,SMTPaccount*smtp,bool later=false ); | ||
31 | bool flushOutbox(SMTPaccount*smtp); | ||
32 | |||
33 | static progressMailSend*sendProgress; | ||
34 | |||
35 | signals: | ||
36 | void queuedMails( int ); | ||
37 | |||
38 | protected: | ||
39 | mailimf_mailbox *newMailbox(const QString&name,const QString&mail ); | ||
40 | mailimf_fields *createImfFields(const Mail &mail ); | ||
41 | mailmime *createMimeMail(const Mail&mail ); | ||
42 | |||
43 | mailimf_address_list *parseAddresses(const QString&addr ); | ||
44 | void addFileParts( mailmime *message,const QList<Attachment>&files ); | ||
45 | mailmime *buildTxtPart(const QString&str ); | ||
46 | mailmime *buildFilePart(const QString&filename,const QString&mimetype,const QString&content); | ||
47 | void smtpSend( mailmime *mail,bool later, SMTPaccount *smtp ); | ||
48 | clist *createRcptList( mailimf_fields *fields ); | ||
49 | |||
50 | static void storeMail(char*mail, size_t length, const QString&box); | ||
51 | static QString mailsmtpError( int err ); | ||
52 | static void progress( size_t current, size_t maximum ); | ||
53 | static void addRcpts( clist *list, mailimf_address_list *addr_list ); | ||
54 | static char *getFrom( mailmime *mail ); | ||
55 | static char *getFrom( mailimf_field *ffrom); | ||
56 | static mailimf_field *getField( mailimf_fields *fields, int type ); | ||
57 | int smtpSend(char*from,clist*rcpts,char*data,size_t size, SMTPaccount *smtp ); | ||
58 | |||
59 | void storeMail(mailmime*mail, const QString&box); | ||
60 | Settings *settings; | ||
61 | |||
62 | int sendQueuedMail(MBOXwrapper*wrap,SMTPaccount*smtp,RecMail*which); | ||
63 | |||
64 | int m_queuedMail; | ||
65 | |||
66 | protected slots: | ||
67 | void emitQCop( int queued ); | ||
68 | |||
69 | }; | ||
70 | |||
71 | #endif | ||