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

MHwrapper Class Reference

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

Inheritance diagram for MHwrapper:

Inheritance graph
[legend]
Collaboration diagram for MHwrapper:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual void oprocessStderr (Opie::Core::OProcess *, char *buffer, int)
virtual void processEnded (Opie::Core::OProcess *)

Public Member Functions

 MHwrapper (const QString &dir, const QString &name)
virtual ~MHwrapper ()
virtual void listMessages (const QString &mailbox, QValueList< Opie::Core::OSmartPointer< RecMail > > &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 void mvcpMail (const RecMailP &mail, const QString &targetFolder, AbstractMail *targetWrapper, bool moveit)
virtual void mvcpAllMails (const Opie::Core::OSmartPointer< Folder > &fromFolder, const QString &targetFolder, AbstractMail *targetWrapper, bool moveit)
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< Opie::Core::OSmartPointer< RecMail > > &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)

Protected Member Functions

QString buildPath (const QString &p)
void init_storage ()
void clean_storage ()

Protected Attributes

QString MHPath
QString MHName
bool removeMboxfailed

Constructor & Destructor Documentation

MHwrapper::MHwrapper const QString dir,
const QString name
 

Definition at line 13 of file mhwrapper.cpp.

References QDir::exists(), init_storage(), QString::left(), QString::length(), MHPath, QDir::mkdir(), odebug, and oendl.

MHwrapper::~MHwrapper  )  [virtual]
 

Definition at line 60 of file mhwrapper.cpp.

References clean_storage().


Member Function Documentation

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

Implements AbstractMail.

Definition at line 123 of file mhwrapper.cpp.

QString MHwrapper::buildPath const QString p  )  [protected]
 

Definition at line 157 of file mhwrapper.cpp.

References f, QString::length(), MHPath, and QString::startsWith().

Referenced by listMessages(), mvcpMail(), statusFolder(), and storeMessage().

void MHwrapper::clean_storage  )  [protected]
 

Definition at line 51 of file mhwrapper.cpp.

References Genericwrapper::m_storage.

Referenced by ~MHwrapper().

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

Reimplemented from AbstractMail.

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

Implements AbstractMail.

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

Implements AbstractMail.

Definition at line 106 of file mhwrapper.cpp.

References init_storage(), Genericwrapper::m_storage, odebug, and oendl.

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

Reimplemented from AbstractMail.

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

Reimplemented from Genericwrapper.

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

Implements AbstractMail.

Definition at line 127 of file mhwrapper.cpp.

References data, init_storage(), Genericwrapper::m_storage, odebug, oendl, and Genericwrapper::parseMail().

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

Implements AbstractMail.

Definition at line 216 of file mhwrapper.cpp.

References data, init_storage(), Genericwrapper::m_storage, odebug, size, Global::statusMessage(), and tr.

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

Implements AbstractMail.

Definition at line 371 of file mhwrapper.cpp.

References MHName.

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

Implements AbstractMail.

Definition at line 366 of file mhwrapper.cpp.

References MAILLIB::A_MH.

void MHwrapper::init_storage  )  [protected]
 

Definition at line 29 of file mhwrapper.cpp.

References QString::latin1(), Genericwrapper::m_storage, MHPath, NULL, odebug, and oendl.

Referenced by deleteMail(), fetchBody(), fetchRawBody(), listFolders(), listMessages(), MHwrapper(), mvcpMail(), statusFolder(), and storeMessage().

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

Implements AbstractMail.

Definition at line 81 of file mhwrapper.cpp.

References QValueList< T >::append(), init_storage(), QString::length(), Genericwrapper::m_storage, MHPath, NULL, odebug, oendl, QString::replace(), and t.

void MHwrapper::listMessages const QString mailbox,
QValueList< Opie::Core::OSmartPointer< RecMail > > &  target
[virtual]
 

Definition at line 65 of file mhwrapper.cpp.

References buildPath(), f, init_storage(), QString::latin1(), Genericwrapper::m_storage, odebug, oendl, Genericwrapper::parseList(), Global::statusMessage(), and tr.

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

Definition at line 152 of file mhwrapper.cpp.

References odebug, and oendl.

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

Reimplemented from AbstractMail.

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

Reimplemented from AbstractMail.

Definition at line 375 of file mhwrapper.cpp.

References buildPath(), init_storage(), QString::latin1(), Genericwrapper::m_storage, AbstractMail::mvcpMail(), and odebug.

void MHwrapper::oprocessStderr Opie::Core::OProcess ,
char *  buffer,
int 
[virtual, slot]
 

Definition at line 342 of file mhwrapper.cpp.

References removeMboxfailed, tr, and warning().

void MHwrapper::processEnded Opie::Core::OProcess  )  [virtual, slot]
 

Definition at line 337 of file mhwrapper.cpp.

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

Implements AbstractMail.

Definition at line 349 of file mhwrapper.cpp.

References buildPath(), init_storage(), QString::latin1(), Genericwrapper::m_storage, folderStat::message_count, folderStat::message_recent, folderStat::message_unseen, Global::statusMessage(), and tr.

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

Reimplemented from Genericwrapper.

Definition at line 197 of file mhwrapper.cpp.

References buildPath(), init_storage(), QString::latin1(), Genericwrapper::m_storage, and odebug.


Member Data Documentation

QString MHwrapper::MHName [protected]
 

Definition at line 52 of file mhwrapper.h.

Referenced by getName().

QString MHwrapper::MHPath [protected]
 

Definition at line 51 of file mhwrapper.h.

Referenced by buildPath(), init_storage(), listFolders(), and MHwrapper().

bool MHwrapper::removeMboxfailed [protected]
 

Definition at line 57 of file mhwrapper.h.

Referenced by oprocessStderr().


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