author | alwin <alwin> | 2003-12-09 01:30:26 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-09 01:30:26 (UTC) |
commit | b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a (patch) (side-by-side diff) | |
tree | 425529f528eb7718e371523c079b8763b9ec6bb8 /noncore/net/mail/mailwrapper.h | |
parent | 6142ad15ac50090b95bb5d80116c1750ffc515de (diff) | |
download | opie-b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a.zip opie-b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a.tar.gz opie-b3fe63b45c7c7dd1d77a9c3a12bb42ce6561bb5a.tar.bz2 |
- interface change for imapwrapper
- beginning of parsing the body-structure of mails not just simple return
the whole body (this moment commented out 'cause it's only working for
text/plain type mails)
Diffstat (limited to 'noncore/net/mail/mailwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mailwrapper.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/noncore/net/mail/mailwrapper.h b/noncore/net/mail/mailwrapper.h index 955a8e2..332034f 100644 --- a/noncore/net/mail/mailwrapper.h +++ b/noncore/net/mail/mailwrapper.h @@ -40,4 +40,15 @@ protected: /* a class to describe mails in a mailbox */ +/* Attention! + From programmers point of view it would make sense to + store the mail body into this class, too. + But: not from the point of view of the device. + Mailbodies can be real large. So we request them when + needed from the mail-wrapper class direct from the server itself + (imap) or from a file-based cache (pop3?) + So there is no interface "const QString&body()" but you should + make a request to the mailwrapper with this class as parameter to + get the body. Same words for the attachments. +*/ class RecMail { @@ -54,6 +65,8 @@ public: const QString&getSubject()const { return subject; } void setSubject( const QString&s ) { subject = s; } - void setFlags(const QBitArray&flags){msg_flags = flags;} + const QString&getMbox()const{return mbox;} + void setMbox(const QString&box){mbox = box;} const QBitArray&getFlags()const{return msg_flags;} + void setFlags(const QBitArray&flags){msg_flags = flags;} #if 0 @@ -63,5 +76,5 @@ public: #endif protected: - QString subject,date,from; + QString subject,date,from,mbox; int msg_number; QBitArray msg_flags; |