kioslaves/imap4
imapParser Class Reference
Inheritance diagram for imapParser:

Detailed Description
Definition at line 187 of file imapparser.h.
Public Types | |
enum | IMAP_STATE { ISTATE_NO, ISTATE_CONNECT, ISTATE_LOGIN, ISTATE_SELECT } |
Public Member Functions | |
imapParser () | |
virtual | ~imapParser () |
enum IMAP_STATE | getState () |
void | setState (enum IMAP_STATE state) |
const QString | getCurrentBox () |
imapCommand * | sendCommand (imapCommand *aCmd) |
imapCommand * | doCommand (imapCommand *aCmd) |
bool | clientLogin (const QString &aUser, const QString &aPass, QString &resultInfo) |
bool | clientAuthenticate (KIO::SlaveBase *slave, KIO::AuthInfo &ai, const QString &aFQDN, const QString &aAuth, bool isSSL, QString &resultInfo) |
int | parseLoop () |
void | parseUntagged (parseString &result) |
void | parseRecent (ulong value, parseString &result) |
void | parseResult (QByteArray &result, parseString &rest, const QString &command=QString::null) |
void | parseCapability (parseString &result) |
void | parseFlags (parseString &result) |
void | parseList (parseString &result) |
void | parseLsub (parseString &result) |
void | parseListRights (parseString &result) |
void | parseMyRights (parseString &result) |
void | parseSearch (parseString &result) |
void | parseStatus (parseString &result) |
void | parseExists (ulong value, parseString &result) |
void | parseExpunge (ulong value, parseString &result) |
void | parseAcl (parseString &result) |
void | parseAnnotation (parseString &result) |
void | parseNamespace (parseString &result) |
void | parseFetch (ulong value, parseString &inWords) |
mailHeader * | parseEnvelope (parseString &inWords) |
void | parseAddressList (parseString &inWords, QPtrList< mailAddress > &list) |
const mailAddress & | parseAddress (parseString &inWords, mailAddress &buffer) |
void | parseBody (parseString &inWords) |
mimeHeader * | parseBodyStructure (parseString &inWords, QString §ion, mimeHeader *inHeader=0) |
mimeHeader * | parseSimplePart (parseString &inWords, QString §ion, mimeHeader *localPart=0) |
QAsciiDict< QString > | parseParameters (parseString &inWords) |
QAsciiDict< QString > | parseDisposition (parseString &inWords) |
virtual void | parseRelay (const QByteArray &buffer) |
virtual void | parseRelay (ulong) |
virtual bool | parseRead (QByteArray &buffer, ulong len, ulong relay=0) |
virtual bool | parseReadLine (QByteArray &buffer, ulong relay=0) |
virtual void | parseWriteLine (const QString &) |
void | parseSentence (parseString &inWords) |
QCString | parseLiteralC (parseString &inWords, bool relay=false, bool stopAtBracket=false, int *outlen=0) |
QByteArray | parseLiteral (parseString &inWords, bool relay=false, bool stopAtBracket=false) |
imapCache * | getLastHandled () |
const QStringList & | getResults () |
const imapInfo & | getStatus () |
const imapInfo & | getSelected () |
const QByteArray & | getContinuation () |
bool | hasCapability (const QString &) |
void | removeCapability (const QString &cap) |
QString | namespaceForBox (const QString &box) |
Static Public Member Functions | |
static QCString | b2c (const QByteArray &ba) |
static QCString | parseOneWordC (parseString &inWords, bool stopAtBracket=FALSE, int *len=0) |
static QByteArray | parseOneWord (parseString &inWords, bool stopAtBracket=FALSE) |
static bool | parseOneNumber (parseString &inWords, ulong &num) |
static void | parseURL (const KURL &_url, QString &_box, QString &_section, QString &_type, QString &_uid, QString &_validity, QString &_info) |
static void | skipWS (parseString &inWords) |
Protected Attributes | |
enum IMAP_STATE | currentState |
QString | currentBox |
imapInfo | selectInfo |
imapInfo | lastStatus |
QStringList | imapCapabilities |
QValueList< imapList > | listResponses |
QPtrList< imapCommand > | sentQueue |
QPtrList< imapCommand > | completeQueue |
QStringList | unhandled |
QByteArray | continuation |
QString | seenUid |
imapCache * | lastHandled |
ulong | commandCounter |
QStringList | lastResults |
QMap< QString, QString > | namespaceToDelimiter |
QStringList | imapNamespaces |
Member Enumeration Documentation
|
the different states the client can be in
Definition at line 193 of file imapparser.h. |
Member Function Documentation
|
non-plaintext login
Definition at line 200 of file imapparser.cc. |
|
plaintext login
Definition at line 131 of file imapparser.cc. |
|
perform a command and wait to parse the result
Definition at line 78 of file imapparser.cc. |
|
return the last handled foo
Definition at line 392 of file imapparser.h. |
|
return the last results
Definition at line 398 of file imapparser.h. |
|
return the select info
Definition at line 409 of file imapparser.h. |
|
Get the current state.
Definition at line 206 of file imapparser.h. |
|
return the last status code
Definition at line 404 of file imapparser.h. |
|
see if server has a capability
Definition at line 1922 of file imapparser.cc. |
|
find the namespace for the given box
Definition at line 1943 of file imapparser.cc. |
|
parse a ACL line
Definition at line 681 of file imapparser.cc. |
|
parse an address and return the ref again
Definition at line 803 of file imapparser.cc. |
|
parse an address list and return a list of addresses
Definition at line 775 of file imapparser.cc. |
|
parse a ANNOTATION line
Definition at line 692 of file imapparser.cc. |
|
parse the result of the body command
Definition at line 1215 of file imapparser.cc. |
|
parse the body structure recursively
Definition at line 1087 of file imapparser.cc. |
|
parse a CAPABILITY line
Definition at line 633 of file imapparser.cc. |
|
parse the disposition list (disposition (name value pairs)) the disposition has the key 'content-disposition'
Definition at line 895 of file imapparser.cc. |
|
read a envelope from imap and parse the addresses
Definition at line 820 of file imapparser.cc. |
|
parse a EXISTS line
Definition at line 763 of file imapparser.cc. |
|
parse a EXPUNGE line
Definition at line 769 of file imapparser.cc. |
|
parses the results of a fetch command processes it with the following sub parsers
Definition at line 1343 of file imapparser.cc. |
|
parse a FLAGS line
Definition at line 639 of file imapparser.cc. |
|
parse a LIST line
Definition at line 644 of file imapparser.cc. |
|
parse a LISTRIGHTS line
Definition at line 670 of file imapparser.cc. |
|
parse a literal or word, may require more data
Definition at line 1783 of file imapparser.cc. |
|
main loop for the parser reads one line and dispatches it to the appropriate sub parser
Definition at line 1626 of file imapparser.cc. |
|
parse a LSUB line
Definition at line 664 of file imapparser.cc. |
|
parse a MYRIGHTS line
Definition at line 710 of file imapparser.cc. |
|
parse a NAMESPACE line
Definition at line 1551 of file imapparser.cc. |
|
parse one number using parseOneWord
Definition at line 1915 of file imapparser.cc. |
|
parse one word (maybe quoted) upto next space " ) ] }
Definition at line 1833 of file imapparser.cc. |
|
parse a parameter list (name value pairs)
Definition at line 933 of file imapparser.cc. |
|
read at least len bytes
Reimplemented in IMAP4Protocol. Definition at line 1702 of file imapparser.cc. |
|
read at least a line (up to CRLF)
Reimplemented in IMAP4Protocol. Definition at line 1712 of file imapparser.cc. |
|
parse a RECENT line
Definition at line 1545 of file imapparser.cc. |
|
relay hook to announce the fetched data directly to an upper level
Reimplemented in IMAP4Protocol. Definition at line 1695 of file imapparser.cc. |
|
relay hook to send the fetched data directly to an upper level
Reimplemented in IMAP4Protocol. Definition at line 1687 of file imapparser.cc. |
|
parse a RESULT line
Definition at line 489 of file imapparser.cc. |
|
parse a SEARCH line
Definition at line 717 of file imapparser.cc. |
|
parse a parenthesized list
Definition at line 1505 of file imapparser.cc. |
|
parse only one not nested part
Definition at line 966 of file imapparser.cc. |
|
parse a STATUS line
Definition at line 727 of file imapparser.cc. |
|
parses all untagged responses and passes them on to the following parsers
Definition at line 323 of file imapparser.cc. |
|
extract the box,section,list type, uid, uidvalidity,info from an url
Definition at line 1730 of file imapparser.cc. |
|
write argument to server
Reimplemented in IMAP4Protocol. Definition at line 1722 of file imapparser.cc. |
|
do setup and send the command to parseWriteLine
Definition at line 91 of file imapparser.cc. |
|
Set the current state.
Definition at line 208 of file imapparser.h. |
Member Data Documentation
|
the last continuation request (there MUST not be more than one pending)
Definition at line 468 of file imapparser.h. |
|
the box selected
Definition at line 444 of file imapparser.h. |
|
the current state we're in
Definition at line 441 of file imapparser.h. |
|
the results from the capabilities, split at ' '
Definition at line 453 of file imapparser.h. |
|
list of namespaces in the form: section=namespace=delimiter section is 0 (personal), 1 (other users) or 2 (shared)
Definition at line 489 of file imapparser.h. |
|
the results from search/acl commands
Definition at line 477 of file imapparser.h. |
|
the results from the last status command
Definition at line 450 of file imapparser.h. |
|
the results from list/lsub/listrights commands
Definition at line 456 of file imapparser.h. |
|
namespace prefix - delimiter association The namespace is cleaned before so that it does not contain the delimiter
Definition at line 483 of file imapparser.h. |
|
the last uid seen while a fetch
Definition at line 471 of file imapparser.h. |
|
here we store the result from select/examine and unsolicited updates
Definition at line 447 of file imapparser.h. |
|
queues handling the running commands
Definition at line 459 of file imapparser.h. |
|
everything we didn't handle, everything but the greeting is bogus
Definition at line 465 of file imapparser.h. |
The documentation for this class was generated from the following files: