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

AbstractMail Class Reference

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

Inheritance diagram for AbstractMail:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 AbstractMail ()
virtual ~AbstractMail ()
virtual QValueList< Opie::Core::OSmartPointer<
Folder > > * 
listFolders ()=0
virtual void listMessages (const QString &mailbox, QValueList< RecMailP > &target)=0
virtual void statusFolder (folderStat &target_stat, const QString &mailbox="INBOX")=0
virtual RecBodyP fetchBody (const RecMailP &mail)=0
virtual QString fetchTextPart (const RecMailP &mail, const RecPartP &part)=0
virtual encodedStringfetchDecodedPart (const RecMailP &mail, const RecPartP &part)=0
virtual encodedStringfetchRawPart (const RecMailP &mail, const RecPartP &part)=0
virtual encodedStringfetchRawBody (const RecMailP &mail)=0
virtual void deleteMail (const RecMailP &mail)=0
virtual void answeredMail (const RecMailP &mail)=0
virtual int deleteAllMail (const Opie::Core::OSmartPointer< Folder > &)=0
virtual void deleteMails (const QString &FolderName, const QValueList< Opie::Core::OSmartPointer< RecMail > > &target)
virtual int deleteMbox (const Opie::Core::OSmartPointer< Folder > &)=0
virtual void storeMessage (const char *msg, size_t length, const QString &folder)=0
virtual void mvcpAllMails (const Opie::Core::OSmartPointer< Folder > &fromFolder, const QString &targetFolder, AbstractMail *targetWrapper, bool moveit)
virtual void mvcpMail (const RecMailP &mail, const QString &targetFolder, AbstractMail *targetWrapper, bool moveit)
virtual void cleanMimeCache ()
virtual int createMbox (const QString &, const Opie::Core::OSmartPointer< Folder > &parentfolder=0, const QString &delemiter="/", bool getsubfolder=false)
virtual void logout ()=0
virtual MAILLIB::ATYPE getType () const =0
virtual const QStringgetName () const =0

Static Public Member Functions

static AbstractMailgetWrapper (IMAPaccount *a)
static AbstractMailgetWrapper (POP3account *a)
static AbstractMailgetWrapper (NNTPaccount *a)
static AbstractMailgetWrapper (const QString &a, const QString &name="Local Folders")
static AbstractMailgetWrapper (Account *a)
static QString defaultLocalfolder ()
static QString draftFolder ()

Static Protected Member Functions

static encodedStringdecode_String (const encodedString *text, const QString &enc)
static QString convert_String (const char *text)
static QString gen_attachment_id ()

Constructor & Destructor Documentation

AbstractMail::AbstractMail  )  [inline]
 

Definition at line 22 of file abstractmail.h.

virtual AbstractMail::~AbstractMail  )  [inline, virtual]
 

Definition at line 23 of file abstractmail.h.


Member Function Documentation

virtual void AbstractMail::answeredMail const RecMailP mail  )  [pure virtual]
 

Implemented in IMAPwrapper, MBOXwrapper, MHwrapper, NNTPwrapper, and POP3wrapper.

virtual void AbstractMail::cleanMimeCache  )  [inline, virtual]
 

Reimplemented in Genericwrapper.

Definition at line 44 of file abstractmail.h.

QString AbstractMail::convert_String const char *  text  )  [static, protected]
 

Definition at line 85 of file abstractmail.cpp.

Referenced by IMAPwrapper::address_list_to_stringlist(), IMAPwrapper::parse_list_result(), Genericwrapper::parseList(), and Genericwrapper::parseMailbox().

virtual int AbstractMail::createMbox const QString ,
const Opie::Core::OSmartPointer< Folder > &  parentfolder = 0,
const QString delemiter = "/",
bool  getsubfolder = false
[virtual]
 

Reimplemented in IMAPwrapper, MBOXwrapper, and MHwrapper.

Referenced by MHviewItem::createFolder(), IMAPfolderItem::createNewFolder(), IMAPviewItem::createNewFolder(), OpieMail::slotMoveCopyMail(), Storemail::Storemail(), and SMTPwrapper::storeMail().

encodedString * AbstractMail::decode_String const encodedString text,
const QString enc
[static, protected]
 

Definition at line 55 of file abstractmail.cpp.

References encodedString::Content(), encodedString::Length(), QString::lower(), odebug, oendl, and encodedString::setContent().

Referenced by IMAPwrapper::fetchDecodedPart(), Genericwrapper::fetchDecodedPart(), IMAPwrapper::fetchTextPart(), and Genericwrapper::traverseBody().

QString AbstractMail::defaultLocalfolder  )  [static]
 

Definition at line 124 of file abstractmail.cpp.

References f.

Referenced by SMTPwrapper::flushOutbox(), MHfolderItem::isDraftfolder(), AccountView::populate(), Storemail::Storemail(), and SMTPwrapper::storeMail().

virtual int AbstractMail::deleteAllMail const Opie::Core::OSmartPointer< Folder > &   )  [pure virtual]
 

Implemented in IMAPwrapper, MBOXwrapper, MHwrapper, NNTPwrapper, and POP3wrapper.

virtual void AbstractMail::deleteMail const RecMailP mail  )  [pure virtual]
 

Implemented in IMAPwrapper, MBOXwrapper, MHwrapper, NNTPwrapper, and POP3wrapper.

Referenced by mvcpMail().

void AbstractMail::deleteMails const QString FolderName,
const QValueList< Opie::Core::OSmartPointer< RecMail > > &  target
[virtual]
 

Reimplemented in MHwrapper.

Definition at line 137 of file abstractmail.cpp.

Referenced by SMTPwrapper::flushOutbox().

virtual int AbstractMail::deleteMbox const Opie::Core::OSmartPointer< Folder > &   )  [pure virtual]
 

Implemented in Genericwrapper, IMAPwrapper, MBOXwrapper, and MHwrapper.

QString AbstractMail::draftFolder  )  [static]
 

Definition at line 131 of file abstractmail.cpp.

Referenced by MHfolderItem::isDraftfolder(), and ComposeMail::reject().

virtual RecBodyP AbstractMail::fetchBody const RecMailP mail  )  [pure virtual]
 

Implemented in IMAPwrapper, MBOXwrapper, MHwrapper, NNTPwrapper, and POP3wrapper.

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

Implemented in Genericwrapper, and IMAPwrapper.

virtual encodedString* AbstractMail::fetchRawBody const RecMailP mail  )  [pure virtual]
 

Implemented in IMAPwrapper, MBOXwrapper, MHwrapper, NNTPwrapper, and POP3wrapper.

Referenced by mvcpMail().

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

Implemented in Genericwrapper, and IMAPwrapper.

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

Implemented in Genericwrapper, and IMAPwrapper.

QString AbstractMail::gen_attachment_id  )  [static, protected]
 

Definition at line 108 of file abstractmail.cpp.

References IO_ReadOnly, QString::null, QFile::open(), QTextStream::read(), and stream.

Referenced by Genericwrapper::traverseBody().

virtual const QString& AbstractMail::getName  )  const [pure virtual]
 

Implemented in IMAPwrapper, MBOXwrapper, MHwrapper, NNTPwrapper, and POP3wrapper.

Referenced by Selectstore::addAccounts().

virtual MAILLIB::ATYPE AbstractMail::getType  )  const [pure virtual]
 

Implemented in IMAPwrapper, MBOXwrapper, MHwrapper, NNTPwrapper, and POP3wrapper.

Referenced by StatusMail::check_current_stat().

AbstractMail * AbstractMail::getWrapper Account a  )  [static]
 

Definition at line 37 of file abstractmail.cpp.

References MAILLIB::A_IMAP, MAILLIB::A_NNTP, MAILLIB::A_POP3, and Account::getType().

AbstractMail * AbstractMail::getWrapper const QString a,
const QString name = "Local Folders"
[static]
 

Definition at line 32 of file abstractmail.cpp.

AbstractMail * AbstractMail::getWrapper NNTPaccount a  )  [static]
 

Definition at line 27 of file abstractmail.cpp.

AbstractMail * AbstractMail::getWrapper POP3account a  )  [static]
 

Definition at line 22 of file abstractmail.cpp.

AbstractMail * AbstractMail::getWrapper IMAPaccount a  )  [static]
 

Definition at line 17 of file abstractmail.cpp.

Referenced by SMTPwrapper::flushOutbox(), IMAPviewItem::IMAPviewItem(), StatusMail::initAccounts(), MHviewItem::MHviewItem(), NNTPviewItem::NNTPviewItem(), POP3viewItem::POP3viewItem(), Storemail::Storemail(), and SMTPwrapper::storeMail().

virtual QValueList<Opie::Core::OSmartPointer<Folder> >* AbstractMail::listFolders  )  [pure virtual]
 

Implemented in IMAPwrapper, MBOXwrapper, MHwrapper, NNTPwrapper, and POP3wrapper.

Referenced by MHviewItem::refresh(), NNTPviewItem::refresh(), POP3viewItem::refresh(), and IMAPviewItem::refreshFolders().

virtual void AbstractMail::listMessages const QString mailbox,
QValueList< RecMailP > &  target
[pure virtual]
 

Implemented in MBOXwrapper.

Referenced by SMTPwrapper::flushOutbox().

virtual void AbstractMail::logout  )  [pure virtual]
 

Implemented in Genericwrapper, IMAPwrapper, NNTPwrapper, and POP3wrapper.

Referenced by StatusMail::check_current_stat(), IMAPviewItem::contextMenuSelected(), NNTPviewItem::disconnect(), POP3viewItem::disconnect(), and StatusMail::initAccounts().

virtual void AbstractMail::mvcpAllMails const Opie::Core::OSmartPointer< Folder > &  fromFolder,
const QString targetFolder,
AbstractMail targetWrapper,
bool  moveit
[virtual]
 

Reimplemented in IMAPwrapper, and MHwrapper.

void AbstractMail::mvcpMail const RecMailP mail,
const QString targetFolder,
AbstractMail targetWrapper,
bool  moveit
[virtual]
 

Reimplemented in IMAPwrapper, and MHwrapper.

Definition at line 161 of file abstractmail.cpp.

References encodedString::Content(), deleteMail(), fetchRawBody(), encodedString::Length(), and storeMessage().

Referenced by MHwrapper::mvcpMail(), and IMAPwrapper::mvcpMail().

virtual void AbstractMail::statusFolder folderStat target_stat,
const QString mailbox = "INBOX"
[pure virtual]
 

Implemented in IMAPwrapper, MBOXwrapper, MHwrapper, NNTPwrapper, and POP3wrapper.

Referenced by StatusMail::check_current_stat(), and StatusMail::initAccounts().

virtual void AbstractMail::storeMessage const char *  msg,
size_t  length,
const QString folder
[pure virtual]
 

Implemented in Genericwrapper, IMAPwrapper, MBOXwrapper, and MHwrapper.

Referenced by mvcpMail(), Storemail::storeMail(), and SMTPwrapper::storeMail().


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