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

IMAPBase Class Reference

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

Collaboration diagram for IMAPBase:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Error {
  IMAPErrConnectionRefused, IMAPErrHostNotFound, IMAPErrSocketRead, IMAPErrUnknownError,
  IMAPErrLoginFailed
}

Signals

void dataReceived (const QString &data)
void lookingUpHost ()
void hostFound ()
void connected ()
void disconnected ()
void error (int err)

Public Member Functions

 IMAPBase (const Account &account)
void sendCommand (const QString &command)
void disconnect ()

Protected Slots

void writeCommands ()
void slotError (int error)
void slotHostFound ()
void slotConnected ()
void slotDisconnected ()
void slotDataAvailiable ()
void tryRead (QString &)

Protected Member Functions

void makeConnect ()

Private Attributes

Account _account
QString _data
QSocket * _socket
QStringList _commandQueue
bool _connected
bool _writingAllowed
QString _lasttag

Member Enumeration Documentation

enum IMAPBase::Error
 

Enumeration values:
IMAPErrConnectionRefused 
IMAPErrHostNotFound 
IMAPErrSocketRead 
IMAPErrUnknownError 
IMAPErrLoginFailed 

Definition at line 17 of file imapbase.h.


Constructor & Destructor Documentation

IMAPBase::IMAPBase const Account account  ) 
 

Definition at line 6 of file imapbase.cpp.

References _connected, _socket, _writingAllowed, connected(), error(), hostFound(), slotConnected(), slotDataAvailiable(), slotDisconnected(), slotError(), slotHostFound(), and writeCommands().


Member Function Documentation

void IMAPBase::connected  )  [signal]
 

Referenced by IMAPBase(), and slotConnected().

void IMAPBase::dataReceived const QString data  )  [signal]
 

Referenced by slotDataAvailiable().

void IMAPBase::disconnect  ) 
 

Definition at line 30 of file imapbase.cpp.

References _connected, _socket, and disconnected().

void IMAPBase::disconnected  )  [signal]
 

Referenced by disconnect(), and slotDisconnected().

void IMAPBase::error int  err  )  [signal]
 

Referenced by IMAPBase(), and slotError().

void IMAPBase::hostFound  )  [signal]
 

Referenced by IMAPBase(), and slotHostFound().

void IMAPBase::lookingUpHost  )  [signal]
 

Referenced by makeConnect().

void IMAPBase::makeConnect  )  [protected]
 

Definition at line 37 of file imapbase.cpp.

References _account, _socket, Account::imapPort(), Account::imapServer(), lookingUpHost(), and NULL.

Referenced by sendCommand().

void IMAPBase::sendCommand const QString command  ) 
 

Definition at line 24 of file imapbase.cpp.

References _commandQueue, _connected, QValueList< T >::append(), and makeConnect().

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

void IMAPBase::slotConnected  )  [protected, slot]
 

Definition at line 88 of file imapbase.cpp.

References _connected, and connected().

Referenced by IMAPBase().

void IMAPBase::slotDataAvailiable  )  [protected, slot]
 

Definition at line 102 of file imapbase.cpp.

References _connected, _data, _lasttag, _socket, _writingAllowed, dataReceived(), QString::latin1(), QString::null, and qDebug().

Referenced by IMAPBase(), and writeCommands().

void IMAPBase::slotDisconnected  )  [protected, slot]
 

Definition at line 94 of file imapbase.cpp.

References _connected, and disconnected().

Referenced by IMAPBase().

void IMAPBase::slotError int  error  )  [protected, slot]
 

Definition at line 70 of file imapbase.cpp.

References error(), IMAPErrConnectionRefused, IMAPErrHostNotFound, IMAPErrSocketRead, and IMAPErrUnknownError.

Referenced by IMAPBase().

void IMAPBase::slotHostFound  )  [protected, slot]
 

Definition at line 83 of file imapbase.cpp.

References hostFound().

Referenced by IMAPBase().

void IMAPBase::tryRead QString  )  [protected, slot]
 

Definition at line 126 of file imapbase.cpp.

References _socket, and qDebug().

void IMAPBase::writeCommands  )  [protected, slot]
 

Definition at line 46 of file imapbase.cpp.

References _commandQueue, _connected, _lasttag, _socket, _writingAllowed, QValueList< T >::begin(), QValueList< T >::end(), QValueList< T >::isEmpty(), QString::left(), qDebug(), QValueList< T >::remove(), and slotDataAvailiable().

Referenced by IMAPBase().


Member Data Documentation

Account IMAPBase::_account [private]
 

Definition at line 45 of file imapbase.h.

Referenced by makeConnect().

QStringList IMAPBase::_commandQueue [private]
 

Definition at line 48 of file imapbase.h.

Referenced by sendCommand(), and writeCommands().

bool IMAPBase::_connected [private]
 

Definition at line 49 of file imapbase.h.

Referenced by disconnect(), IMAPBase(), sendCommand(), slotConnected(), slotDataAvailiable(), slotDisconnected(), and writeCommands().

QString IMAPBase::_data [private]
 

Definition at line 46 of file imapbase.h.

Referenced by slotDataAvailiable().

QString IMAPBase::_lasttag [private]
 

Definition at line 50 of file imapbase.h.

Referenced by slotDataAvailiable(), and writeCommands().

QSocket* IMAPBase::_socket [private]
 

Definition at line 47 of file imapbase.h.

Referenced by disconnect(), IMAPBase(), makeConnect(), slotDataAvailiable(), tryRead(), and writeCommands().

bool IMAPBase::_writingAllowed [private]
 

Definition at line 49 of file imapbase.h.

Referenced by IMAPBase(), slotDataAvailiable(), and writeCommands().


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