oc_IMap Class Reference

#include <oc_IMap.h>

Inheritance diagram for oc_IMap:

Inheritance graph
[legend]
Collaboration diagram for oc_IMap:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 oc_IMap (const char *chPrefix, const char *address, int port)
 ~oc_IMap ()
void CacheData (bool bVal=true)
void ResetCache (void)
vector< string > & GetDataCache (void)
vector< string > & GetListItems (void)
bool Command (const char *in)
string & Response (void)
bool GetResponseComplete (void)
bool login (const char *user, const char *password)
bool select (const char *mailbox)
bool examine (const char *mailbox)
bool create (const char *mailbox)
bool fetchHeaders (void)
bool deleteItems (const char *itemList)
bool copyItems (const char *itemList, const char *toBox)
string & fetchRFC822 (const char *item)
string & rawFetchRFC822 (const char *item)
 oc_IMap (const char *chPrefix, const char *address, int port)
 ~oc_IMap ()
void CacheData (bool bVal=true)
void ResetCache (void)
vector< string > & GetDataCache (void)
vector< string > & GetListItems (void)
bool Command (const char *in)
string & Response (void)
bool GetResponseComplete (void)
bool login (const char *user, const char *password)
bool select (const char *mailbox)
bool examine (const char *mailbox)
bool create (const char *mailbox)
bool fetchHeaders (void)
bool deleteItems (const char *itemList)
bool copyItems (const char *itemList, const char *toBox)
string & fetchRFC822 (const char *item)
string & rawFetchRFC822 (const char *item)

Private Member Functions

const char * sequence (void)
bool checkCommandResponse (void)
void quenchQueue (void)
bool responseOK (void)
const char * sequence (void)
bool checkCommandResponse (void)
void quenchQueue (void)
bool responseOK (void)

Private Attributes

vector< string > responseLines
vector< string > listItems
ocString sequenceBuffer
ocString currentLine
string callPrefix
string currentPrefix
int callSequence
bool responseComplete
bool cache
vector< string > responseLines
vector< string > listItems


Detailed Description

Definition at line 165 of file oc_IMap.h.


Constructor & Destructor Documentation

oc_IMap::oc_IMap ( const char *  chPrefix,
const char *  address,
int  port 
) [inline]

Definition at line 219 of file oc_IMap.h.

oc_IMap::~oc_IMap (  )  [inline]

Definition at line 229 of file oc_IMap.h.

oc_IMap::oc_IMap ( const char *  chPrefix,
const char *  address,
int  port 
) [inline]

Definition at line 219 of file oc_IMap.h.

oc_IMap::~oc_IMap (  )  [inline]

Definition at line 229 of file oc_IMap.h.


Member Function Documentation

const char* oc_IMap::sequence ( void   )  [inline, private]

Definition at line 180 of file oc_IMap.h.

References ocString::append(), callSequence, and sequenceBuffer.

Referenced by Command().

bool oc_IMap::checkCommandResponse ( void   )  [inline, private]

void oc_IMap::quenchQueue ( void   )  [inline, private]

Definition at line 192 of file oc_IMap.h.

References Response(), and responseComplete.

Referenced by checkCommandResponse(), and fetchHeaders().

bool oc_IMap::responseOK ( void   )  [inline, private]

Definition at line 199 of file oc_IMap.h.

References currentLine, currentPrefix, ocString::parse(), and ocString::parseInit().

Referenced by checkCommandResponse(), and fetchHeaders().

void oc_IMap::CacheData ( bool  bVal = true  )  [inline]

Definition at line 236 of file oc_IMap.h.

References cache.

void oc_IMap::ResetCache ( void   )  [inline]

Definition at line 240 of file oc_IMap.h.

References responseLines.

vector<string>& oc_IMap::GetDataCache ( void   )  [inline]

Definition at line 244 of file oc_IMap.h.

References responseLines.

vector<string>& oc_IMap::GetListItems ( void   )  [inline]

Definition at line 248 of file oc_IMap.h.

References listItems.

Referenced by main().

bool oc_IMap::Command ( const char *  in  )  [inline]

string& oc_IMap::Response ( void   )  [inline]

bool oc_IMap::GetResponseComplete ( void   )  [inline]

Definition at line 305 of file oc_IMap.h.

References responseComplete.

Referenced by mailCli().

bool oc_IMap::login ( const char *  user,
const char *  password 
) [inline]

Definition at line 313 of file oc_IMap.h.

References checkCommandResponse(), and Command().

Referenced by main().

bool oc_IMap::select ( const char *  mailbox  )  [inline]

Definition at line 329 of file oc_IMap.h.

References checkCommandResponse(), and Command().

Referenced by main().

bool oc_IMap::examine ( const char *  mailbox  )  [inline]

Definition at line 340 of file oc_IMap.h.

References checkCommandResponse(), and Command().

Referenced by fetchRFC822().

bool oc_IMap::create ( const char *  mailbox  )  [inline]

Definition at line 351 of file oc_IMap.h.

References checkCommandResponse(), and Command().

bool oc_IMap::fetchHeaders ( void   )  [inline]

bool oc_IMap::deleteItems ( const char *  itemList  )  [inline]

Definition at line 445 of file oc_IMap.h.

References checkCommandResponse(), and Command().

bool oc_IMap::copyItems ( const char *  itemList,
const char *  toBox 
) [inline]

Definition at line 462 of file oc_IMap.h.

References checkCommandResponse(), and Command().

string& oc_IMap::fetchRFC822 ( const char *  item  )  [inline]

string& oc_IMap::rawFetchRFC822 ( const char *  item  )  [inline]

Definition at line 514 of file oc_IMap.h.

References cache, Command(), currentLine, and Response().

const char* oc_IMap::sequence ( void   )  [inline, private]

Definition at line 180 of file oc_IMap.h.

References ocString::append(), callSequence, and sequenceBuffer.

bool oc_IMap::checkCommandResponse ( void   )  [inline, private]

Definition at line 185 of file oc_IMap.h.

References quenchQueue(), responseLines, and responseOK().

void oc_IMap::quenchQueue ( void   )  [inline, private]

Definition at line 192 of file oc_IMap.h.

References Response(), and responseComplete.

bool oc_IMap::responseOK ( void   )  [inline, private]

Definition at line 199 of file oc_IMap.h.

References currentLine, currentPrefix, ocString::parse(), and ocString::parseInit().

void oc_IMap::CacheData ( bool  bVal = true  )  [inline]

Definition at line 236 of file oc_IMap.h.

References cache.

void oc_IMap::ResetCache ( void   )  [inline]

Definition at line 240 of file oc_IMap.h.

References responseLines.

vector<string>& oc_IMap::GetDataCache ( void   )  [inline]

Definition at line 244 of file oc_IMap.h.

References responseLines.

vector<string>& oc_IMap::GetListItems ( void   )  [inline]

Definition at line 248 of file oc_IMap.h.

References listItems.

bool oc_IMap::Command ( const char *  in  )  [inline]

Definition at line 253 of file oc_IMap.h.

References callPrefix, currentPrefix, sequence(), and ocSocket::Write().

string& oc_IMap::Response ( void   )  [inline]

bool oc_IMap::GetResponseComplete ( void   )  [inline]

Definition at line 305 of file oc_IMap.h.

References responseComplete.

bool oc_IMap::login ( const char *  user,
const char *  password 
) [inline]

Definition at line 313 of file oc_IMap.h.

References checkCommandResponse(), and Command().

bool oc_IMap::select ( const char *  mailbox  )  [inline]

Definition at line 329 of file oc_IMap.h.

References checkCommandResponse(), and Command().

bool oc_IMap::examine ( const char *  mailbox  )  [inline]

Definition at line 340 of file oc_IMap.h.

References checkCommandResponse(), and Command().

bool oc_IMap::create ( const char *  mailbox  )  [inline]

Definition at line 351 of file oc_IMap.h.

References checkCommandResponse(), and Command().

bool oc_IMap::fetchHeaders ( void   )  [inline]

bool oc_IMap::deleteItems ( const char *  itemList  )  [inline]

Definition at line 445 of file oc_IMap.h.

References checkCommandResponse(), and Command().

bool oc_IMap::copyItems ( const char *  itemList,
const char *  toBox 
) [inline]

Definition at line 462 of file oc_IMap.h.

References checkCommandResponse(), and Command().

string& oc_IMap::fetchRFC822 ( const char *  item  )  [inline]

string& oc_IMap::rawFetchRFC822 ( const char *  item  )  [inline]

Definition at line 514 of file oc_IMap.h.

References cache, Command(), currentLine, and Response().


Member Data Documentation

vector<string> oc_IMap::responseLines [private]

vector<string> oc_IMap::listItems [private]

Definition at line 168 of file oc_IMap.h.

Referenced by fetchHeaders(), and GetListItems().

Definition at line 169 of file oc_IMap.h.

Referenced by sequence().

Definition at line 170 of file oc_IMap.h.

Referenced by fetchRFC822(), rawFetchRFC822(), Response(), and responseOK().

string oc_IMap::callPrefix [private]

Definition at line 171 of file oc_IMap.h.

Referenced by Command().

string oc_IMap::currentPrefix [private]

Definition at line 172 of file oc_IMap.h.

Referenced by Command(), fetchRFC822(), Response(), and responseOK().

int oc_IMap::callSequence [private]

Definition at line 174 of file oc_IMap.h.

Referenced by sequence().

bool oc_IMap::responseComplete [private]

Definition at line 175 of file oc_IMap.h.

Referenced by GetResponseComplete(), quenchQueue(), and Response().

bool oc_IMap::cache [private]

Definition at line 177 of file oc_IMap.h.

Referenced by CacheData(), fetchHeaders(), fetchRFC822(), rawFetchRFC822(), and Response().

vector<string> oc_IMap::responseLines [private]

Definition at line 167 of file oc_IMap.h.

vector<string> oc_IMap::listItems [private]

Definition at line 168 of file oc_IMap.h.


The documentation for this class was generated from the following files:

Generated on Sat Aug 15 12:48:30 2009 for w3systemsDevelopment by  doxygen 1.5.5