author | alwin <alwin> | 2003-12-21 10:36:22 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-21 10:36:22 (UTC) |
commit | af0b88049e0c77cb90ef1aca608accc32a2e2828 (patch) (side-by-side diff) | |
tree | ad8a2ce76ae1ab3cf535f4d1d7addbc240ff4209 /noncore/net/mail/libmailwrapper/mailwrapper.h | |
parent | 8e884631cc002011a9abab37be9223d4a1421ff2 (diff) | |
download | opie-af0b88049e0c77cb90ef1aca608accc32a2e2828.zip opie-af0b88049e0c77cb90ef1aca608accc32a2e2828.tar.gz opie-af0b88049e0c77cb90ef1aca608accc32a2e2828.tar.bz2 |
- MailWrapper -> SMTPwrapper
- made dependies from libetpan includes somewhat cleaner
- removed standalone static funs and moved to class based static methods
- arguements in SMTPwrapper now always const references and not deep copies
TODO: clean up GOTO statements, change QList to QValueList for a better
handling of "const" arguments, store mails in queue and/or a local "Sent"
folder.
Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailwrapper.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailwrapper.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailwrapper.h b/noncore/net/mail/libmailwrapper/mailwrapper.h index 02fe4b7..8fd886f 100644 --- a/noncore/net/mail/libmailwrapper/mailwrapper.h +++ b/noncore/net/mail/libmailwrapper/mailwrapper.h @@ -3,11 +3,6 @@ #include <qpe/applnk.h> -#include <libetpan/mailmime.h> -#include <libetpan/mailimf.h> -#include <libetpan/mailsmtp.h> -#include <libetpan/mailstorage.h> -#include <libetpan/maildriver.h> #include <qbitarray.h> #include <qdatetime.h> @@ -93,34 +88,4 @@ class IMAPFolder : public Folder }; -class MailWrapper : public QObject -{ - Q_OBJECT - -public: - MailWrapper( Settings *s ); - void sendMail( Mail mail ); - -private: - mailimf_mailbox *newMailbox(const QString&name,const QString&mail ); - mailimf_address_list *parseAddresses(const QString&addr ); - mailimf_fields *createImfFields( Mail *mail ); - mailmime *buildTxtPart( QString str ); - mailmime *buildFilePart( QString filename, QString mimetype ); - void addFileParts( mailmime *message, QList<Attachment> files ); - mailmime *createMimeMail( Mail *mail ); - void smtpSend( mailmime *mail ); - mailimf_field *getField( mailimf_fields *fields, int type ); - clist *createRcptList( mailimf_fields *fields ); - char *getFrom( mailmime *mail ); - SMTPaccount *getAccount( QString from ); - void writeToFile( QString file, mailmime *mail ); - void readFromFile( QString file, char **data, size_t *size ); - static QString mailsmtpError( int err ); - static QString getTmpFile(); - - Settings *settings; - -}; - #endif |