Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Genericwrapper Class Reference

#include </home/clem/local/src/opie/noncore/net/mail/libmailwrapper/genericwrapper.h>

Inheritance diagram for Genericwrapper:

Inheritance graph
[legend]
Collaboration diagram for Genericwrapper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Genericwrapper ()
virtual ~Genericwrapper ()
virtual encodedStringfetchDecodedPart (const RecMailP &mail, const RecPartP &part)
virtual encodedStringfetchRawPart (const RecMailP &mail, const RecPartP &part)
virtual QString fetchTextPart (const RecMailP &mail, const RecPartP &part)
virtual void cleanMimeCache ()
virtual int deleteMbox (const Opie::Core::OSmartPointer< Folder > &)
virtual void logout ()
virtual void storeMessage (const char *msg, size_t length, const QString &folder)

Protected Member Functions

RecBodyP parseMail (mailmessage *msg)
QString parseMailboxList (mailimf_mailbox_list *list)
QString parseMailbox (mailimf_mailbox *box)
QString parseGroup (mailimf_group *group)
QString parseAddressList (mailimf_address_list *list)
void traverseBody (RecBodyP &target, mailmessage *message, mailmime *mime, QValueList< int >recList, unsigned int current_rek=0, int current_count=1)
virtual void parseList (QValueList< Opie::Core::OSmartPointer< RecMail > > &target, mailsession *session, const QString &mailbox, bool mbox_as_to=false)
QStringList parseInreplies (mailimf_in_reply_to *in_replies)

Static Protected Member Functions

static void fillSingleBody (RecPartP &target, mailmessage *message, mailmime *mime)
static void fillParameters (RecPartP &target, clist *parameters)
static QString getencoding (mailmime_mechanism *aEnc)

Protected Attributes

QString msgTempName
unsigned int last_msg_id
QMap< QString, encodedString * > bodyCache
mailstorage * m_storage
mailfolder * m_folder

Constructor & Destructor Documentation

Genericwrapper::Genericwrapper  ) 
 

Definition at line 10 of file genericwrapper.cpp.

References bodyCache, QMap< Key, T >::clear(), m_folder, and m_storage.

Genericwrapper::~Genericwrapper  )  [virtual]
 

Definition at line 18 of file genericwrapper.cpp.

References cleanMimeCache(), m_folder, and m_storage.


Member Function Documentation

void Genericwrapper::cleanMimeCache  )  [virtual]
 

Reimplemented from AbstractMail.

Definition at line 354 of file genericwrapper.cpp.

References QMap< Key, T >::begin(), bodyCache, QMap< Key, T >::clear(), QMap< Key, T >::end(), odebug, oendl, and t.

Referenced by POP3wrapper::fetchBody(), NNTPwrapper::fetchBody(), and ~Genericwrapper().

virtual int Genericwrapper::deleteMbox const Opie::Core::OSmartPointer< Folder > &   )  [inline, virtual]
 

Implements AbstractMail.

Reimplemented in MBOXwrapper, and MHwrapper.

Definition at line 41 of file genericwrapper.h.

encodedString * Genericwrapper::fetchDecodedPart const RecMailP mail,
const RecPartP part
[virtual]
 

Implements AbstractMail.

Definition at line 330 of file genericwrapper.cpp.

References bodyCache, AbstractMail::decode_String(), QMap< Key, T >::end(), QMap< Key, T >::find(), and t.

Referenced by fetchTextPart().

encodedString * Genericwrapper::fetchRawPart const RecMailP mail,
const RecPartP part
[virtual]
 

Implements AbstractMail.

Definition at line 338 of file genericwrapper.cpp.

References bodyCache, QMap< Key, T >::end(), QMap< Key, T >::find(), and t.

QString Genericwrapper::fetchTextPart const RecMailP mail,
const RecPartP part
[virtual]
 

Implements AbstractMail.

Definition at line 346 of file genericwrapper.cpp.

References encodedString::Content(), fetchDecodedPart(), t, and text.

void Genericwrapper::fillParameters RecPartP target,
clist *  parameters
[static, protected]
 

Definition at line 96 of file genericwrapper.cpp.

Referenced by fillSingleBody().

void Genericwrapper::fillSingleBody RecPartP target,
mailmessage *  message,
mailmime *  mime
[static, protected]
 

Definition at line 29 of file genericwrapper.cpp.

References fillParameters(), getencoding(), NULL, and type.

Referenced by traverseBody().

QString Genericwrapper::getencoding mailmime_mechanism *  aEnc  )  [static, protected]
 

Definition at line 109 of file genericwrapper.cpp.

Referenced by fillSingleBody().

virtual void Genericwrapper::logout  )  [inline, virtual]
 

Implements AbstractMail.

Reimplemented in NNTPwrapper, and POP3wrapper.

Definition at line 42 of file genericwrapper.h.

QString Genericwrapper::parseAddressList mailimf_address_list *  list  )  [protected]
 

Definition at line 247 of file genericwrapper.cpp.

References QString::append(), NULL, odebug, oendl, parseGroup(), and parseMailbox().

Referenced by parseList().

QString Genericwrapper::parseGroup mailimf_group *  group  )  [protected]
 

Definition at line 278 of file genericwrapper.cpp.

References QString::append(), NULL, and parseMailboxList().

Referenced by parseAddressList().

QStringList Genericwrapper::parseInreplies mailimf_in_reply_to *  in_replies  )  [protected]
 

Definition at line 366 of file genericwrapper.cpp.

References QValueList< T >::append(), QString::length(), NULL, and QString::remove().

Referenced by parseList().

void Genericwrapper::parseList QValueList< Opie::Core::OSmartPointer< RecMail > > &  target,
mailsession *  session,
const QString mailbox,
bool  mbox_as_to = false
[protected, virtual]
 

Definition at line 386 of file genericwrapper.cpp.

References AbstractMail::convert_String(), QValueList< T >::count(), d, FLAG_SEEN, i, NULL, odebug, oendl, parseAddressList(), MailStatics::parseDateTime(), parseInreplies(), parseMailboxList(), QBitArray::setBit(), t, and text.

Referenced by POP3wrapper::listMessages(), NNTPwrapper::listMessages(), MHwrapper::listMessages(), and MBOXwrapper::listMessages().

RecBodyP Genericwrapper::parseMail mailmessage *  msg  )  [protected]
 

Definition at line 233 of file genericwrapper.cpp.

References traverseBody().

Referenced by POP3wrapper::fetchBody(), NNTPwrapper::fetchBody(), MHwrapper::fetchBody(), and MBOXwrapper::fetchBody().

QString Genericwrapper::parseMailbox mailimf_mailbox *  box  )  [protected]
 

Definition at line 294 of file genericwrapper.cpp.

References QString::append(), AbstractMail::convert_String(), and NULL.

Referenced by parseAddressList(), and parseMailboxList().

QString Genericwrapper::parseMailboxList mailimf_mailbox_list *  list  )  [protected]
 

Definition at line 310 of file genericwrapper.cpp.

References QString::append(), NULL, and parseMailbox().

Referenced by parseGroup(), and parseList().

virtual void Genericwrapper::storeMessage const char *  msg,
size_t  length,
const QString folder
[inline, virtual]
 

Implements AbstractMail.

Reimplemented in MBOXwrapper, and MHwrapper.

Definition at line 43 of file genericwrapper.h.

void Genericwrapper::traverseBody RecBodyP target,
mailmessage *  message,
mailmime *  mime,
QValueList< int >  recList,
unsigned int  current_rek = 0,
int  current_count = 1
[protected]
 

Definition at line 139 of file genericwrapper.cpp.

References QValueList< T >::append(), bodyCache, encodedString::Content(), data, AbstractMail::decode_String(), fillSingleBody(), AbstractMail::gen_attachment_id(), len, NULL, odebug, oendl, and encodedString::setContent().

Referenced by parseMail().


Member Data Documentation

QMap<QString,encodedString*> Genericwrapper::bodyCache [protected]
 

Definition at line 61 of file genericwrapper.h.

Referenced by cleanMimeCache(), fetchDecodedPart(), fetchRawPart(), Genericwrapper(), and traverseBody().

unsigned int Genericwrapper::last_msg_id [protected]
 

Definition at line 60 of file genericwrapper.h.

Referenced by POP3wrapper::fetchBody(), NNTPwrapper::fetchBody(), NNTPwrapper::NNTPwrapper(), and POP3wrapper::POP3wrapper().

mailfolder* Genericwrapper::m_folder [protected]
 

Definition at line 63 of file genericwrapper.h.

Referenced by Genericwrapper(), and ~Genericwrapper().

mailstorage* Genericwrapper::m_storage [protected]
 

Definition at line 62 of file genericwrapper.h.

Referenced by MHwrapper::clean_storage(), MHwrapper::deleteMail(), MHwrapper::fetchBody(), MHwrapper::fetchRawBody(), Genericwrapper(), MHwrapper::init_storage(), MHwrapper::listFolders(), MHwrapper::listMessages(), MHwrapper::mvcpMail(), MHwrapper::statusFolder(), MHwrapper::storeMessage(), and ~Genericwrapper().

QString Genericwrapper::msgTempName [protected]
 

Definition at line 59 of file genericwrapper.h.

Referenced by POP3wrapper::fetchBody(), NNTPwrapper::fetchBody(), NNTPwrapper::NNTPwrapper(), POP3wrapper::POP3wrapper(), NNTPwrapper::~NNTPwrapper(), and POP3wrapper::~POP3wrapper().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:33:40 2005 for OPIE by  doxygen 1.4.2