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

IMAPHandler Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/mail2/libmail/imaphandler.h>

Collaboration diagram for IMAPHandler:

Collaboration graph
[legend]
List of all members.

Signals

void gotResponse (IMAPResponse &response)
void IMAPLookingUpHost ()
void IMAPHostFound ()
void IMAPConnected ()
void IMAPDisconnected ()
void IMAPError (int err)

Public Member Functions

 IMAPHandler (const Account &account)
QString iCapability ()
QString iNoop ()
QString iLogout ()
QString iAuthenticate (const QString &mechanism)
QString iLogin (const QString &user, const QString &pass)
QString iSelect (const QString &mailbox)
QString iExamine (const QString &mailbox)
QString iCreate (const QString &mailbox)
QString iDelete (const QString &mailbox)
QString iRename (const QString &mailbox, const QString &newMailbox)
QString iSubscribe (const QString &mailbox)
QString iUnsubscribe (const QString &mailbox)
QString iList (const QString &reference, const QString &mailbox)
QString iLsub (const QString &reference, const QString &mailbox)
QString iStatus (const QString &mailbox, const QString &items)
QString iAppend (const QString &mailbox, const QString &literal, const QString &flags=0, const QString &datetime=0)
QString iCheck ()
QString iClose ()
QString iExpunge ()
QString iSearch (const QString &search, const QString &charset=0)
QString iFetch (const QString &message, const QString &items)
QString iStore (const QString &message, const QString &items)
QString iCopy (const QString &message, const QString &mailbox)
QString iUid (const QString &command, const QString &arguments)
QString iX (const QString &commandAtom, const QString &arguments)

Protected Slots

void slotDataReceived (const QString &data)
void slotLookingUpHost ()
void slotHostFound ()
void slotConnected ()
void slotDisconnected ()
void slotError (int err)

Protected Member Functions

void doLogin ()
QString escape (const QString &in)
QString tag (bool count=true)

Private Attributes

Account _account
IMAPBase_ibase
unsigned int _tag
bool _ready
bool _loggingin
bool _loggedin

Constructor & Destructor Documentation

IMAPHandler::IMAPHandler const Account account  ) 
 

Definition at line 5 of file imaphandler.cpp.

References _ibase, _loggedin, _loggingin, _ready, _tag, error(), slotConnected(), slotDataReceived(), slotDisconnected(), slotError(), slotHostFound(), and slotLookingUpHost().


Member Function Documentation

void IMAPHandler::doLogin  )  [protected]
 

Definition at line 22 of file imaphandler.cpp.

References _account, _loggedin, _loggingin, iLogin(), Account::pass(), and Account::user.

Referenced by iAppend(), iCheck(), iClose(), iCopy(), iCreate(), iDelete(), iExamine(), iExpunge(), iFetch(), iList(), iLsub(), iRename(), iSearch(), iSelect(), iStatus(), iStore(), iSubscribe(), iUid(), iUnsubscribe(), and iX().

QString IMAPHandler::escape const QString in  )  [protected]
 

Definition at line 280 of file imaphandler.cpp.

References QString::replace().

Referenced by iAppend(), iAuthenticate(), iCopy(), iCreate(), iDelete(), iExamine(), iList(), iLogin(), iLsub(), iRename(), iSearch(), iSelect(), iStatus(), iSubscribe(), and iUnsubscribe().

void IMAPHandler::gotResponse IMAPResponse response  )  [signal]
 

Referenced by slotDataReceived().

QString IMAPHandler::iAppend const QString mailbox,
const QString literal,
const QString flags = 0,
const QString datetime = 0
 

Definition at line 173 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), QString::length(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iAuthenticate const QString mechanism  ) 
 

Definition at line 52 of file imaphandler.cpp.

References _ibase, escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iCapability  ) 
 

Definition at line 31 of file imaphandler.cpp.

References _ibase, IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iCheck  ) 
 

Definition at line 187 of file imaphandler.cpp.

References _ibase, doLogin(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iClose  ) 
 

Definition at line 196 of file imaphandler.cpp.

References _ibase, doLogin(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iCopy const QString message,
const QString mailbox
 

Definition at line 247 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iCreate const QString mailbox  ) 
 

Definition at line 89 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iDelete const QString mailbox  ) 
 

Definition at line 99 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iExamine const QString mailbox  ) 
 

Definition at line 79 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iExpunge  ) 
 

Definition at line 205 of file imaphandler.cpp.

References _ibase, doLogin(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iFetch const QString message,
const QString items
 

Definition at line 225 of file imaphandler.cpp.

References _ibase, doLogin(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iList const QString reference,
const QString mailbox
 

Definition at line 140 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iLogin const QString user,
const QString pass
 

Definition at line 60 of file imaphandler.cpp.

References _ibase, escape(), IMAPBase::sendCommand(), and tag().

Referenced by doLogin().

QString IMAPHandler::iLogout  ) 
 

Definition at line 45 of file imaphandler.cpp.

References _ibase, IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iLsub const QString reference,
const QString mailbox
 

Definition at line 151 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

void IMAPHandler::IMAPConnected  )  [signal]
 

Referenced by slotConnected().

void IMAPHandler::IMAPDisconnected  )  [signal]
 

Referenced by slotDisconnected().

void IMAPHandler::IMAPError int  err  )  [signal]
 

Referenced by slotDataReceived(), and slotError().

void IMAPHandler::IMAPHostFound  )  [signal]
 

Referenced by slotHostFound().

void IMAPHandler::IMAPLookingUpHost  )  [signal]
 

Referenced by slotLookingUpHost().

QString IMAPHandler::iNoop  ) 
 

Definition at line 38 of file imaphandler.cpp.

References _ibase, IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iRename const QString mailbox,
const QString newMailbox
 

Definition at line 109 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iSearch const QString search,
const QString charset = 0
 

Definition at line 214 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), QString::isEmpty(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iSelect const QString mailbox  ) 
 

Definition at line 69 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iStatus const QString mailbox,
const QString items
 

Definition at line 162 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

Referenced by BenD::slotCheck().

QString IMAPHandler::iStore const QString message,
const QString items
 

Definition at line 236 of file imaphandler.cpp.

References _ibase, doLogin(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iSubscribe const QString mailbox  ) 
 

Definition at line 120 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iUid const QString command,
const QString arguments
 

Definition at line 258 of file imaphandler.cpp.

References _ibase, doLogin(), IMAPBase::sendCommand(), and tag().

Referenced by ViewMail::ViewMail().

QString IMAPHandler::iUnsubscribe const QString mailbox  ) 
 

Definition at line 130 of file imaphandler.cpp.

References _ibase, doLogin(), escape(), IMAPBase::sendCommand(), and tag().

QString IMAPHandler::iX const QString commandAtom,
const QString arguments
 

Definition at line 269 of file imaphandler.cpp.

References _ibase, doLogin(), IMAPBase::sendCommand(), and tag().

void IMAPHandler::slotConnected  )  [protected, slot]
 

Definition at line 331 of file imaphandler.cpp.

References IMAPConnected().

Referenced by IMAPHandler().

void IMAPHandler::slotDataReceived const QString data  )  [protected, slot]
 

Definition at line 291 of file imaphandler.cpp.

References _loggedin, _loggingin, _ready, gotResponse(), IMAPBase::IMAPErrLoginFailed, IMAPError(), IMAPResponseEnums::OK, parse(), parser, qDebug(), qWarning(), IMAPResponseParser::response(), IMAPResponse::setImapHandler(), and IMAPResponse::statusResponse().

Referenced by IMAPHandler().

void IMAPHandler::slotDisconnected  )  [protected, slot]
 

Definition at line 336 of file imaphandler.cpp.

References _loggedin, and IMAPDisconnected().

Referenced by IMAPHandler().

void IMAPHandler::slotError int  err  )  [protected, slot]
 

Definition at line 342 of file imaphandler.cpp.

References IMAPError().

Referenced by IMAPHandler().

void IMAPHandler::slotHostFound  )  [protected, slot]
 

Definition at line 326 of file imaphandler.cpp.

References IMAPHostFound().

Referenced by IMAPHandler().

void IMAPHandler::slotLookingUpHost  )  [protected, slot]
 

Definition at line 321 of file imaphandler.cpp.

References IMAPLookingUpHost().

Referenced by IMAPHandler().

QString IMAPHandler::tag bool  count = true  )  [protected]
 

Definition at line 286 of file imaphandler.cpp.

References _tag.

Referenced by iAppend(), iAuthenticate(), iCapability(), iCheck(), iClose(), iCopy(), iCreate(), iDelete(), iExamine(), iExpunge(), iFetch(), iList(), iLogin(), iLogout(), iLsub(), iNoop(), iRename(), iSearch(), iSelect(), iStatus(), iStore(), iSubscribe(), iUid(), iUnsubscribe(), and iX().


Member Data Documentation

Account IMAPHandler::_account [private]
 

Definition at line 79 of file imaphandler.h.

Referenced by doLogin().

IMAPBase* IMAPHandler::_ibase [private]
 

Definition at line 80 of file imaphandler.h.

Referenced by iAppend(), iAuthenticate(), iCapability(), iCheck(), iClose(), iCopy(), iCreate(), iDelete(), iExamine(), iExpunge(), iFetch(), iList(), iLogin(), iLogout(), iLsub(), IMAPHandler(), iNoop(), iRename(), iSearch(), iSelect(), iStatus(), iStore(), iSubscribe(), iUid(), iUnsubscribe(), and iX().

bool IMAPHandler::_loggedin [private]
 

Definition at line 82 of file imaphandler.h.

Referenced by doLogin(), IMAPHandler(), slotDataReceived(), and slotDisconnected().

bool IMAPHandler::_loggingin [private]
 

Definition at line 82 of file imaphandler.h.

Referenced by doLogin(), IMAPHandler(), and slotDataReceived().

bool IMAPHandler::_ready [private]
 

Definition at line 82 of file imaphandler.h.

Referenced by IMAPHandler(), and slotDataReceived().

unsigned int IMAPHandler::_tag [private]
 

Definition at line 81 of file imaphandler.h.

Referenced by IMAPHandler(), and tag().


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