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

NNTPwrapper Class Reference

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

Inheritance diagram for NNTPwrapper:

Inheritance graph
[legend]
Collaboration diagram for NNTPwrapper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NNTPwrapper (NNTPaccount *a)
virtual ~NNTPwrapper ()
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")
QStringList listAllNewsgroups (const QString &mask=QString::null)
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 nntp_progress (size_t current, size_t maximum)

Protected Member Functions

void login ()

Protected Attributes

NNTPaccountaccount
mailstorage * m_nntp

Constructor & Destructor Documentation

NNTPwrapper::NNTPwrapper NNTPaccount a  ) 
 

Definition at line 16 of file nntpwrapper.cpp.

References account, NNTPaccount::getFileName(), Genericwrapper::last_msg_id, m_nntp, Genericwrapper::msgTempName, and NULL.

NNTPwrapper::~NNTPwrapper  )  [virtual]
 

Definition at line 24 of file nntpwrapper.cpp.

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


Member Function Documentation

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

Implements AbstractMail.

Definition at line 248 of file nntpwrapper.cpp.

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

Implements AbstractMail.

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

Implements AbstractMail.

Definition at line 285 of file nntpwrapper.cpp.

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

Implements AbstractMail.

Definition at line 37 of file nntpwrapper.cpp.

References Genericwrapper::cleanMimeCache(), QFile::exists(), HARD_MSG_SIZE_LIMIT, IO_ReadOnly, IO_ReadWrite, IO_Truncate, Genericwrapper::last_msg_id, QString::latin1(), QString::length(), login(), m_nntp, message, Genericwrapper::msgTempName, NULL, odebug, oendl, QFile::open(), Genericwrapper::parseMail(), QFile::readBlock(), QFile::remove(), and QFile::writeBlock().

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

Implements AbstractMail.

Definition at line 262 of file nntpwrapper.cpp.

References m_nntp.

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

Implements AbstractMail.

Definition at line 281 of file nntpwrapper.cpp.

References account, and Account::getAccountName().

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

Implements AbstractMail.

Definition at line 277 of file nntpwrapper.cpp.

References account, and Account::getType().

QStringList NNTPwrapper::listAllNewsgroups const QString mask = QString::null  ) 
 

Definition at line 216 of file nntpwrapper.cpp.

References QValueList< T >::append(), QString::isEmpty(), QString::latin1(), login(), m_nntp, and NULL.

Referenced by NNTPGroups::slotGetNG(), and NNTPconfig::slotGetNG().

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

Implements AbstractMail.

Definition at line 197 of file nntpwrapper.cpp.

References account, QValueList< T >::append(), QValueList< T >::begin(), QValueList< T >::end(), and NNTPaccount::getGroups().

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

Definition at line 101 of file nntpwrapper.cpp.

References QString::latin1(), login(), m_nntp, and Genericwrapper::parseList().

void NNTPwrapper::login  )  [protected]
 

Definition at line 111 of file nntpwrapper.cpp.

References account, Account::ConnectionType(), NNTPaccount::getLogin(), Account::getOffline(), LoginDialog::getPassword(), Account::getPassword(), Account::getPort(), Account::getServer(), LoginDialog::getUser(), Account::getUser(), QString::isEmpty(), QString::latin1(), m_nntp, nntp_progress(), NULL, odebug, oendl, server, and true.

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

void NNTPwrapper::logout  )  [virtual]
 

Reimplemented from Genericwrapper.

Definition at line 188 of file nntpwrapper.cpp.

References m_nntp, and NULL.

Referenced by ~NNTPwrapper().

void NNTPwrapper::nntp_progress size_t  current,
size_t  maximum
[static]
 

Definition at line 32 of file nntpwrapper.cpp.

References odebug, and oendl.

Referenced by login().

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

Implements AbstractMail.

Definition at line 250 of file nntpwrapper.cpp.

References login(), m_nntp, folderStat::message_count, folderStat::message_recent, and folderStat::message_unseen.


Member Data Documentation

NNTPaccount* NNTPwrapper::account [protected]
 

Definition at line 42 of file nntpwrapper.h.

Referenced by getName(), getType(), listFolders(), login(), and NNTPwrapper().

mailstorage* NNTPwrapper::m_nntp [protected]
 

Definition at line 43 of file nntpwrapper.h.

Referenced by fetchBody(), fetchRawBody(), listAllNewsgroups(), listMessages(), login(), logout(), NNTPwrapper(), and statusFolder().


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