author | alwin <alwin> | 2004-03-08 21:43:14 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-03-08 21:43:14 (UTC) |
commit | 25434cbbcd2d2473c9cd3d486cec7a96a6a6323e (patch) (unidiff) | |
tree | 31cfa6ceaebe0e2e1e0094e4905d05509e778364 /noncore/net/mail/libmailwrapper/generatemail.h | |
parent | f3f2b2b3389d62af0f1a3aabac87f6c3cf147379 (diff) | |
download | opie-25434cbbcd2d2473c9cd3d486cec7a96a6a6323e.zip opie-25434cbbcd2d2473c9cd3d486cec7a96a6a6323e.tar.gz opie-25434cbbcd2d2473c9cd3d486cec7a96a6a6323e.tar.bz2 |
some required code restructuring in preparation of new features
Diffstat (limited to 'noncore/net/mail/libmailwrapper/generatemail.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/generatemail.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/generatemail.h b/noncore/net/mail/libmailwrapper/generatemail.h new file mode 100644 index 0000000..8be5a2b --- a/dev/null +++ b/noncore/net/mail/libmailwrapper/generatemail.h | |||
@@ -0,0 +1,44 @@ | |||
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 | class Mail; | ||
10 | class RecMail; | ||
11 | class Attachment; | ||
12 | struct mailimf_fields; | ||
13 | struct mailimf_field; | ||
14 | struct mailimf_mailbox; | ||
15 | struct mailmime; | ||
16 | struct mailimf_address_list; | ||
17 | class progressMailSend; | ||
18 | struct mailsmtp; | ||
19 | |||
20 | class Generatemail : public QObject | ||
21 | { | ||
22 | Q_OBJECT | ||
23 | public: | ||
24 | Generatemail(); | ||
25 | virtual ~Generatemail(); | ||
26 | |||
27 | protected: | ||
28 | static void addRcpts( clist *list, mailimf_address_list *addr_list ); | ||
29 | static char *getFrom( mailmime *mail ); | ||
30 | static char *getFrom( mailimf_field *ffrom); | ||
31 | static mailimf_field *getField( mailimf_fields *fields, int type ); | ||
32 | mailimf_address_list *parseAddresses(const QString&addr ); | ||
33 | void addFileParts( mailmime *message,const QList<Attachment>&files ); | ||
34 | mailmime *buildFilePart(const QString&filename,const QString&mimetype,const QString&content); | ||
35 | mailmime *buildTxtPart(const QString&str ); | ||
36 | mailimf_mailbox *newMailbox(const QString&name,const QString&mail ); | ||
37 | mailimf_fields *createImfFields(const Mail &mail ); | ||
38 | mailmime *createMimeMail(const Mail&mail ); | ||
39 | clist *createRcptList( mailimf_fields *fields ); | ||
40 | |||
41 | static const char* USER_AGENT; | ||
42 | }; | ||
43 | |||
44 | #endif | ||