|
VMime
|


Public Types | |
| enum | ResponseCode { CODE_OK = 0, CODE_READY, CODE_ERR } |
Public Member Functions | |
| bool | isSuccess () const |
| ResponseCode | getCode () const |
| const string | getText () const |
| const string | getFirstLine () const |
| const string | getLineAt (const size_t pos) const |
| size_t | getLineCount () const |
Static Public Member Functions | |
| static shared_ptr< POP3Response > | readResponse (shared_ptr< POP3Connection > conn) |
| static shared_ptr< POP3Response > | readMultilineResponse (shared_ptr< POP3Connection > conn) |
| static shared_ptr< POP3Response > | readLargeResponse (shared_ptr< POP3Connection > conn, utility::outputStream &os, utility::progressListener *progress, const size_t predictedSize) |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
A POP3 response, as sent by the server.
| enum ResponseCode |
| POP3Response::ResponseCode getCode | ( | ) | const |
Return the POP3 response code.
| const string getFirstLine | ( | ) | const |
Return the first POP3 response line.
Return the response line at the specified position.
| pos | line index |
| size_t getLineCount | ( | ) | const |
Return the number of lines in the response.
References stringUtils::appendBytesToString(), vmime::end(), inputStream::eof(), vmime::lineLengthLimits::max, vmime::npos, progressListener::progress(), inputStream::read(), progressListener::start(), socket::STATUS_WANT_READ, socket::STATUS_WANT_WRITE, progressListener::stop(), stringUtils::trim(), and outputStream::write().
| const string getText | ( | ) | const |
Return the POP3 response text (first line).
| bool isSuccess | ( | ) | const |
Returns whether the response is successful ("OK").
|
static |
Receive and parse a large POP3 response (eg.
message data) from the specified connection.
| conn | connection from which to read |
| os | output stream to which response data will be written |
| progress | progress listener (can be NULL) |
| predictedSize | estimated size of response data (in bytes) |
| exceptions::operation_timed_out | if no data has been received within the granted time |
Referenced by POP3Message::extract(), POP3Message::fetchPartHeader(), and POP3Response::readMultilineResponse().
|
static |
Receive and parse a multiline POP3 response from the specified connection.
| conn | connection from which to read |
| exceptions::operation_timed_out | if no data has been received within the granted time |
References POP3Response::readLargeResponse(), and stringUtils::trim().
Referenced by POP3Connection::disconnect(), and POP3Folder::fetchMessages().
|
static |
Receive and parse a POP3 response from the specified connection.
| conn | connection from which to read |
| exceptions::operation_timed_out | if no data has been received within the granted time |
Referenced by POP3Folder::close(), POP3Connection::connect(), POP3Folder::deleteMessages(), POP3Connection::disconnect(), POP3Folder::fetchMessage(), POP3Folder::getStatus(), POP3Store::noop(), and POP3Folder::open().