Diffstat (limited to 'kmicromail/libmailwrapper/generatemail.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/generatemail.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/kmicromail/libmailwrapper/generatemail.h b/kmicromail/libmailwrapper/generatemail.h new file mode 100644 index 0000000..a767b61 --- a/dev/null +++ b/kmicromail/libmailwrapper/generatemail.h | |||
@@ -0,0 +1,46 @@ | |||
1 | #ifndef __GENERATE_MAIL_H | ||
2 | #define __GENERATE_MAIL_H | ||
3 | |||
4 | #include <qpe/applnk.h> | ||
5 | |||
6 | #include <qobject.h> | ||
7 | #include <libetpan/clist.h> | ||
8 | |||
9 | #include <opie2/osmartpointer.h> | ||
10 | |||
11 | class Mail; | ||
12 | class RecMail; | ||
13 | class Attachment; | ||
14 | struct mailimf_fields; | ||
15 | struct mailimf_field; | ||
16 | struct mailimf_mailbox; | ||
17 | struct mailmime; | ||
18 | struct mailimf_address_list; | ||
19 | class progressMailSend; | ||
20 | struct mailsmtp; | ||
21 | |||
22 | class Generatemail : public QObject | ||
23 | { | ||
24 | Q_OBJECT | ||
25 | public: | ||
26 | Generatemail(); | ||
27 | virtual ~Generatemail(); | ||
28 | |||
29 | protected: | ||
30 | static void addRcpts( clist *list, mailimf_address_list *addr_list ); | ||
31 | static char *getFrom( mailmime *mail ); | ||
32 | static char *getFrom( mailimf_field *ffrom); | ||
33 | static mailimf_field *getField( mailimf_fields *fields, int type ); | ||
34 | mailimf_address_list *parseAddresses(const QString&addr ); | ||
35 | void addFileParts( mailmime *message,const QList<Attachment>&files ); | ||
36 | mailmime *buildFilePart(const QString&filename,const QString&mimetype,const QString&content); | ||
37 | mailmime *buildTxtPart(const QString&str ); | ||
38 | mailimf_mailbox *newMailbox(const QString&name,const QString&mail ); | ||
39 | mailimf_fields *createImfFields(const Opie::Core::OSmartPointer<Mail> &mail ); | ||
40 | mailmime *createMimeMail(const Opie::Core::OSmartPointer<Mail>&mail ); | ||
41 | clist *createRcptList( mailimf_fields *fields ); | ||
42 | |||
43 | static const char* USER_AGENT; | ||
44 | }; | ||
45 | |||
46 | #endif | ||