Diffstat (limited to 'noncore/net/mail/libmailwrapper/smtpwrapper.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/smtpwrapper.h | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/noncore/net/mail/libmailwrapper/smtpwrapper.h b/noncore/net/mail/libmailwrapper/smtpwrapper.h index 7f6aac1..1796df7 100644 --- a/noncore/net/mail/libmailwrapper/smtpwrapper.h +++ b/noncore/net/mail/libmailwrapper/smtpwrapper.h | |||
@@ -10,19 +10,10 @@ | |||
10 | 10 | ||
11 | #include "settings.h" | 11 | #include "settings.h" |
12 | #include "generatemail.h" | ||
12 | 13 | ||
13 | class Mail; | ||
14 | class AbstractMail; | ||
15 | class RecMail; | ||
16 | class Attachment; | ||
17 | struct mailimf_fields; | ||
18 | struct mailimf_field; | ||
19 | struct mailimf_mailbox; | ||
20 | struct mailmime; | ||
21 | struct mailimf_address_list; | ||
22 | class progressMailSend; | ||
23 | struct mailsmtp; | ||
24 | class SMTPaccount; | 14 | class SMTPaccount; |
15 | class AbstractMail; | ||
25 | 16 | ||
26 | class SMTPwrapper : public QObject | 17 | class SMTPwrapper : public Generatemail |
27 | { | 18 | { |
28 | Q_OBJECT | 19 | Q_OBJECT |
@@ -47,22 +38,10 @@ protected: | |||
47 | int start_smtp_tls(); | 38 | int start_smtp_tls(); |
48 | 39 | ||
49 | mailimf_mailbox *newMailbox(const QString&name,const QString&mail ); | ||
50 | mailimf_fields *createImfFields(const Mail &mail ); | ||
51 | mailmime *createMimeMail(const Mail&mail ); | ||
52 | 40 | ||
53 | mailimf_address_list *parseAddresses(const QString&addr ); | ||
54 | void addFileParts( mailmime *message,const QList<Attachment>&files ); | ||
55 | mailmime *buildTxtPart(const QString&str ); | ||
56 | mailmime *buildFilePart(const QString&filename,const QString&mimetype,const QString&content); | ||
57 | void smtpSend( mailmime *mail,bool later); | 41 | void smtpSend( mailmime *mail,bool later); |
58 | clist *createRcptList( mailimf_fields *fields ); | ||
59 | 42 | ||
60 | static void storeMail(const char*mail, size_t length, const QString&box); | 43 | static void storeMail(const char*mail, size_t length, const QString&box); |
61 | static QString mailsmtpError( int err ); | 44 | static QString mailsmtpError( int err ); |
62 | static void progress( size_t current, size_t maximum ); | 45 | static void progress( size_t current, size_t maximum ); |
63 | static void addRcpts( clist *list, mailimf_address_list *addr_list ); | ||
64 | static char *getFrom( mailmime *mail ); | ||
65 | static char *getFrom( mailimf_field *ffrom); | ||
66 | static mailimf_field *getField( mailimf_fields *fields, int type ); | ||
67 | 46 | ||
68 | int smtpSend(char*from,clist*rcpts,const char*data,size_t size); | 47 | int smtpSend(char*from,clist*rcpts,const char*data,size_t size); |
@@ -74,5 +53,4 @@ protected: | |||
74 | 53 | ||
75 | int m_queuedMail; | 54 | int m_queuedMail; |
76 | static const char* USER_AGENT; | ||
77 | 55 | ||
78 | protected slots: | 56 | protected slots: |