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

MBOXwrapper Class Reference

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

Inheritance diagram for MBOXwrapper:

Inheritance graph
[legend]
Collaboration diagram for MBOXwrapper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MBOXwrapper (const QString &dir, const QString &name)
virtual ~MBOXwrapper ()
virtual void listMessages (const QString &mailbox, QValueList< RecMailP > &target)
virtual QValueList< Opie::Core::OSmartPointer<
Folder > > * 
listFolders ()
virtual void statusFolder (folderStat &target_stat, const QString &mailbox="INBOX")
virtual void deleteMail (const RecMailP &mail)
virtual void answeredMail (const RecMailP &mail)
virtual int createMbox (const QString &folder, const Opie::Core::OSmartPointer< Folder > &f=0, const QString &d="", bool s=false)
virtual int deleteMbox (const Opie::Core::OSmartPointer< Folder > &)
virtual void storeMessage (const char *msg, size_t length, const QString &folder)
virtual RecBodyP fetchBody (const RecMailP &mail)
virtual encodedStringfetchRawBody (const RecMailP &mail)
virtual void deleteMails (const QString &FolderName, const QValueList< RecMailP > &target)
virtual int deleteAllMail (const Opie::Core::OSmartPointer< Folder > &)
virtual MAILLIB::ATYPE getType () const
virtual const QStringgetName () const

Static Public Member Functions

static void mbox_progress (size_t current, size_t maximum)

Static Protected Member Functions

static void deleteMails (mailmbox_folder *f, const QValueList< RecMailP > &target)

Protected Attributes

QString MBOXPath
QString MBOXName

Constructor & Destructor Documentation

MBOXwrapper::MBOXwrapper const QString dir,
const QString name
 

Definition at line 12 of file mboxwrapper.cpp.

References QDir::exists(), MBOXPath, and QDir::mkdir().

MBOXwrapper::~MBOXwrapper  )  [virtual]
 

Definition at line 21 of file mboxwrapper.cpp.


Member Function Documentation

void MBOXwrapper::answeredMail const RecMailP mail  )  [virtual]
 

Implements AbstractMail.

Definition at line 88 of file mboxwrapper.cpp.

virtual int MBOXwrapper::createMbox const QString folder,
const Opie::Core::OSmartPointer< Folder > &  f = 0,
const QString d = "",
bool  s = false
[virtual]
 

Reimplemented from AbstractMail.

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

Implements AbstractMail.

void MBOXwrapper::deleteMail const RecMailP mail  )  [virtual]
 

Implements AbstractMail.

Definition at line 65 of file mboxwrapper.cpp.

References QString::latin1(), MBOXPath, NULL, odebug, oendl, and p.

void MBOXwrapper::deleteMails mailmbox_folder *  f,
const QValueList< RecMailP > &  target
[static, protected]
 

Definition at line 232 of file mboxwrapper.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), odebug, and oendl.

void MBOXwrapper::deleteMails const QString FolderName,
const QValueList< RecMailP > &  target
[virtual]
 

Definition at line 218 of file mboxwrapper.cpp.

References QString::latin1(), MBOXPath, odebug, and oendl.

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

Reimplemented from Genericwrapper.

RecBodyP MBOXwrapper::fetchBody const RecMailP mail  )  [virtual]
 

Implements AbstractMail.

Definition at line 92 of file mboxwrapper.cpp.

References data, QString::latin1(), MBOXPath, NULL, odebug, oendl, p, Genericwrapper::parseMail(), and size.

encodedString * MBOXwrapper::fetchRawBody const RecMailP mail  )  [virtual]
 

Implements AbstractMail.

Definition at line 175 of file mboxwrapper.cpp.

References data, QString::latin1(), MBOXPath, NULL, size, Global::statusMessage(), and tr.

const QString & MBOXwrapper::getName  )  const [virtual]
 

Implements AbstractMail.

Definition at line 335 of file mboxwrapper.cpp.

References MBOXName.

MAILLIB::ATYPE MBOXwrapper::getType  )  const [virtual]
 

Implements AbstractMail.

Definition at line 330 of file mboxwrapper.cpp.

References MAILLIB::A_MBOX.

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

Implements AbstractMail.

Definition at line 50 of file mboxwrapper.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::end(), QDir::entryList(), QDir::exists(), QDir::Files, MBOXPath, QDir::Readable, QDir::setFilter(), and QDir::Writable.

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

Implements AbstractMail.

Definition at line 25 of file mboxwrapper.cpp.

References QValueList< T >::count(), QString::latin1(), MBOXPath, NULL, odebug, oendl, p, Genericwrapper::parseList(), Global::statusMessage(), and tr.

void MBOXwrapper::mbox_progress size_t  current,
size_t  maximum
[static]
 

Definition at line 135 of file mboxwrapper.cpp.

References odebug, and oendl.

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

Implements AbstractMail.

Definition at line 308 of file mboxwrapper.cpp.

References QFile::exists(), QString::latin1(), MBOXPath, folderStat::message_count, folderStat::message_recent, folderStat::message_unseen, NULL, Global::statusMessage(), and tr.

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

Reimplemented from Genericwrapper.

Definition at line 158 of file mboxwrapper.cpp.

References QString::latin1(), MBOXPath, Global::statusMessage(), and tr.


Member Data Documentation

QString MBOXwrapper::MBOXName [protected]
 

Definition at line 43 of file mboxwrapper.h.

Referenced by getName().

QString MBOXwrapper::MBOXPath [protected]
 

Definition at line 42 of file mboxwrapper.h.

Referenced by deleteMail(), deleteMails(), fetchBody(), fetchRawBody(), listFolders(), listMessages(), MBOXwrapper(), statusFolder(), and storeMessage().


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