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

POP3wrapper Class Reference

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

Inheritance diagram for POP3wrapper:

Inheritance graph
[legend]
Collaboration diagram for POP3wrapper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 POP3wrapper (POP3account *a)
virtual ~POP3wrapper ()
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 int deleteAllMail (const Opie::Core::OSmartPointer< Folder > &)
virtual RecBodyP fetchBody (const RecMailP &mail)
virtual encodedStringfetchRawBody (const RecMailP &mail)
virtual void logout ()
virtual MAILLIB::ATYPE getType () const
virtual const QStringgetName () const

Static Public Member Functions

static void pop3_progress (size_t current, size_t maximum)

Protected Member Functions

void login ()

Protected Attributes

POP3accountaccount
mailstorage * m_pop3
int m_maxsize
bool m_checksize

Constructor & Destructor Documentation

POP3wrapper::POP3wrapper POP3account a  ) 
 

Definition at line 16 of file pop3wrapper.cpp.

References account, POP3account::getCheckMaxSize(), POP3account::getFileName(), POP3account::getMaxSize(), Genericwrapper::last_msg_id, m_checksize, m_maxsize, m_pop3, Genericwrapper::msgTempName, and NULL.

POP3wrapper::~POP3wrapper  )  [virtual]
 

Definition at line 26 of file pop3wrapper.cpp.

References QFile::exists(), logout(), Genericwrapper::msgTempName, and QFile::remove().


Member Function Documentation

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

Implements AbstractMail.

Definition at line 212 of file pop3wrapper.cpp.

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

Implements AbstractMail.

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

Implements AbstractMail.

Definition at line 202 of file pop3wrapper.cpp.

References login(), m_pop3, Global::statusMessage(), and tr.

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

Implements AbstractMail.

Definition at line 38 of file pop3wrapper.cpp.

References Genericwrapper::cleanMimeCache(), QFile::exists(), IO_ReadOnly, IO_ReadWrite, IO_Truncate, Genericwrapper::last_msg_id, QString::latin1(), QString::length(), login(), m_checksize, m_maxsize, m_pop3, message, Genericwrapper::msgTempName, NULL, QString::null, odebug, oendl, QFile::open(), Genericwrapper::parseMail(), QFile::readBlock(), QFile::remove(), tr, warning(), and QFile::writeBlock().

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

Implements AbstractMail.

Definition at line 251 of file pop3wrapper.cpp.

References m_pop3.

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

Implements AbstractMail.

Definition at line 270 of file pop3wrapper.cpp.

References account, and Account::getAccountName().

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

Implements AbstractMail.

Definition at line 266 of file pop3wrapper.cpp.

References account, and Account::getType().

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

Implements AbstractMail.

Definition at line 195 of file pop3wrapper.cpp.

References QValueList< T >::append().

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

Definition at line 106 of file pop3wrapper.cpp.

References login(), m_pop3, Genericwrapper::parseList(), Global::statusMessage(), and tr.

void POP3wrapper::login  )  [protected]
 

Definition at line 117 of file pop3wrapper.cpp.

References account, Account::ConnectionType(), Account::getOffline(), LoginDialog::getPassword(), Account::getPassword(), Account::getPort(), Account::getServer(), LoginDialog::getUser(), Account::getUser(), m_pop3, NULL, odebug, oendl, pop3_progress(), server, Global::statusMessage(), tr, and true.

Referenced by deleteMail(), fetchBody(), listMessages(), and statusFolder().

void POP3wrapper::logout  )  [virtual]
 

Reimplemented from Genericwrapper.

Definition at line 186 of file pop3wrapper.cpp.

References m_pop3, and NULL.

Referenced by ~POP3wrapper().

void POP3wrapper::pop3_progress size_t  current,
size_t  maximum
[static]
 

Definition at line 34 of file pop3wrapper.cpp.

References odebug, and oendl.

Referenced by login().

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

Implements AbstractMail.

Definition at line 237 of file pop3wrapper.cpp.

References login(), m_pop3, folderStat::message_count, folderStat::message_recent, folderStat::message_unseen, odebug, and oendl.


Member Data Documentation

POP3account* POP3wrapper::account [protected]
 

Definition at line 38 of file pop3wrapper.h.

Referenced by getName(), getType(), login(), and POP3wrapper().

bool POP3wrapper::m_checksize [protected]
 

Definition at line 41 of file pop3wrapper.h.

Referenced by fetchBody(), and POP3wrapper().

int POP3wrapper::m_maxsize [protected]
 

Definition at line 40 of file pop3wrapper.h.

Referenced by fetchBody(), and POP3wrapper().

mailstorage* POP3wrapper::m_pop3 [protected]
 

Definition at line 39 of file pop3wrapper.h.

Referenced by deleteMail(), fetchBody(), fetchRawBody(), listMessages(), login(), logout(), POP3wrapper(), and statusFolder().


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