#include <oc_IMap.h>


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 |
Definition at line 165 of file oc_IMap.h.
| oc_IMap::oc_IMap | ( | const char * | chPrefix, | |
| const char * | address, | |||
| int | port | |||
| ) | [inline] |
| oc_IMap::oc_IMap | ( | const char * | chPrefix, | |
| const char * | address, | |||
| int | port | |||
| ) | [inline] |
| 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] |
Definition at line 185 of file oc_IMap.h.
References quenchQueue(), responseLines, and responseOK().
Referenced by copyItems(), create(), deleteItems(), examine(), fetchHeaders(), fetchRFC822(), login(), and select().
| 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] |
| void oc_IMap::ResetCache | ( | void | ) | [inline] |
| vector<string>& oc_IMap::GetDataCache | ( | void | ) | [inline] |
| vector<string>& oc_IMap::GetListItems | ( | void | ) | [inline] |
| bool oc_IMap::Command | ( | const char * | in | ) | [inline] |
Definition at line 253 of file oc_IMap.h.
References callPrefix, currentPrefix, sequence(), and ocSocket::Write().
Referenced by copyItems(), create(), deleteItems(), examine(), fetchHeaders(), fetchRFC822(), login(), mailCli(), rawFetchRFC822(), and select().
| string& oc_IMap::Response | ( | void | ) | [inline] |
Definition at line 280 of file oc_IMap.h.
References cache, currentLine, currentPrefix, ocString::parse(), ocString::parseInit(), ocSocket::ReadLine(), responseComplete, and responseLines.
Referenced by fetchHeaders(), mailCli(), quenchQueue(), and rawFetchRFC822().
| bool oc_IMap::GetResponseComplete | ( | void | ) | [inline] |
| 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] |
| bool oc_IMap::fetchHeaders | ( | void | ) | [inline] |
Definition at line 364 of file oc_IMap.h.
References cache, checkCommandResponse(), Command(), ocString::endOfParse(), listItems, ocSocket::non_fatal_error(), ocString::parse(), ocString::parseInit(), quenchQueue(), ocString::remainder(), ocString::replace(), Response(), responseLines, and responseOK().
Referenced by main().
| bool oc_IMap::deleteItems | ( | const char * | itemList | ) | [inline] |
| bool oc_IMap::copyItems | ( | const char * | itemList, | |
| const char * | toBox | |||
| ) | [inline] |
| string& oc_IMap::fetchRFC822 | ( | const char * | item | ) | [inline] |
Definition at line 477 of file oc_IMap.h.
References cache, checkCommandResponse(), Command(), currentLine, currentPrefix, examine(), ocString::parse(), ocString::parseInit(), ocString::remove(), and responseLines.
Referenced by main().
| string& oc_IMap::rawFetchRFC822 | ( | const char * | item | ) | [inline] |
| 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] |
| 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] |
| void oc_IMap::ResetCache | ( | void | ) | [inline] |
| vector<string>& oc_IMap::GetDataCache | ( | void | ) | [inline] |
| vector<string>& oc_IMap::GetListItems | ( | void | ) | [inline] |
| 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] |
Definition at line 280 of file oc_IMap.h.
References cache, currentLine, currentPrefix, ocString::parse(), ocString::parseInit(), ocSocket::ReadLine(), responseComplete, and responseLines.
| bool oc_IMap::GetResponseComplete | ( | void | ) | [inline] |
| bool oc_IMap::login | ( | const char * | user, | |
| const char * | password | |||
| ) | [inline] |
| bool oc_IMap::select | ( | const char * | mailbox | ) | [inline] |
| bool oc_IMap::examine | ( | const char * | mailbox | ) | [inline] |
| bool oc_IMap::create | ( | const char * | mailbox | ) | [inline] |
| bool oc_IMap::fetchHeaders | ( | void | ) | [inline] |
Definition at line 364 of file oc_IMap.h.
References cache, checkCommandResponse(), Command(), ocString::endOfParse(), listItems, ocSocket::non_fatal_error(), ocString::parse(), ocString::parseInit(), quenchQueue(), ocString::remainder(), ocString::replace(), Response(), responseLines, and responseOK().
| bool oc_IMap::deleteItems | ( | const char * | itemList | ) | [inline] |
| bool oc_IMap::copyItems | ( | const char * | itemList, | |
| const char * | toBox | |||
| ) | [inline] |
| string& oc_IMap::fetchRFC822 | ( | const char * | item | ) | [inline] |
Definition at line 477 of file oc_IMap.h.
References cache, checkCommandResponse(), Command(), currentLine, currentPrefix, examine(), ocString::parse(), ocString::parseInit(), ocString::remove(), and responseLines.
| string& oc_IMap::rawFetchRFC822 | ( | const char * | item | ) | [inline] |
vector<string> oc_IMap::responseLines [private] |
Definition at line 167 of file oc_IMap.h.
Referenced by checkCommandResponse(), fetchHeaders(), fetchRFC822(), GetDataCache(), ResetCache(), and Response().
vector<string> oc_IMap::listItems [private] |
ocString oc_IMap::sequenceBuffer [private] |
ocString oc_IMap::currentLine [private] |
Definition at line 170 of file oc_IMap.h.
Referenced by fetchRFC822(), rawFetchRFC822(), Response(), and responseOK().
string oc_IMap::callPrefix [private] |
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] |
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] |
vector<string> oc_IMap::listItems [private] |
1.5.5