Diffstat (limited to 'noncore/unsupported/mail2/libmail/imapresponse.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/libmail/imapresponse.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/unsupported/mail2/libmail/imapresponse.h b/noncore/unsupported/mail2/libmail/imapresponse.h index 73435ee..5a19b96 100644 --- a/noncore/unsupported/mail2/libmail/imapresponse.h +++ b/noncore/unsupported/mail2/libmail/imapresponse.h | |||
@@ -484,48 +484,49 @@ private: | |||
484 | 484 | ||
485 | IMAPHandler *_handler; | 485 | IMAPHandler *_handler; |
486 | 486 | ||
487 | QValueList<IMAPResponseOK> _okl; | 487 | QValueList<IMAPResponseOK> _okl; |
488 | QValueList<IMAPResponseNO> _nol; | 488 | QValueList<IMAPResponseNO> _nol; |
489 | QValueList<IMAPResponseBAD> _badl; | 489 | QValueList<IMAPResponseBAD> _badl; |
490 | QValueList<IMAPResponseCAPABILITY> _capabilityl; | 490 | QValueList<IMAPResponseCAPABILITY> _capabilityl; |
491 | QValueList<IMAPResponseLIST> _listl; | 491 | QValueList<IMAPResponseLIST> _listl; |
492 | QValueList<IMAPResponseLSUB> _lsubl; | 492 | QValueList<IMAPResponseLSUB> _lsubl; |
493 | QValueList<IMAPResponseSTATUS> _statusl; | 493 | QValueList<IMAPResponseSTATUS> _statusl; |
494 | QValueList<IMAPResponseSEARCH> _searchl; | 494 | QValueList<IMAPResponseSEARCH> _searchl; |
495 | QValueList<IMAPResponseFLAGS> _flagsl; | 495 | QValueList<IMAPResponseFLAGS> _flagsl; |
496 | QValueList<IMAPResponseEXISTS> _existsl; | 496 | QValueList<IMAPResponseEXISTS> _existsl; |
497 | QValueList<IMAPResponseRECENT> _recentl; | 497 | QValueList<IMAPResponseRECENT> _recentl; |
498 | QValueList<IMAPResponseEXPUNGE> _expungel; | 498 | QValueList<IMAPResponseEXPUNGE> _expungel; |
499 | QValueList<IMAPResponseFETCH> _fetchl; | 499 | QValueList<IMAPResponseFETCH> _fetchl; |
500 | 500 | ||
501 | }; | 501 | }; |
502 | 502 | ||
503 | class IMAPResponseParser : public QObject, public IMAPResponseEnums | 503 | class IMAPResponseParser : public QObject, public IMAPResponseEnums |
504 | { | 504 | { |
505 | Q_OBJECT | 505 | Q_OBJECT |
506 | 506 | ||
507 | public: | 507 | public: |
508 | IMAPResponseParser(const QString &data); | 508 | IMAPResponseParser(); |
509 | void parse ( const QString &data); | ||
509 | 510 | ||
510 | IMAPResponse response(); | 511 | IMAPResponse response(); |
511 | 512 | ||
512 | signals: | 513 | signals: |
513 | void needMoreData(const QString &comment); | 514 | void needMoreData(QString &data); |
514 | 515 | ||
515 | protected: | 516 | protected: |
516 | void parseResponse(const QString &data, bool tagged = false); | 517 | void parseResponse(const QString &data, bool tagged = false); |
517 | 518 | ||
518 | QStringList splitData(const QString &data, bool withBrackets); | 519 | QStringList splitData(const QString &data, bool withBrackets); |
519 | void parseParenthesizedList(const QString &data, QStringList &parsed); | 520 | void parseParenthesizedList(const QString &data, QStringList &parsed); |
520 | void splitTagData(const QString &line, QString &tag, QString &data); | 521 | void splitTagData(const QString &line, QString &tag, QString &data); |
521 | QString removeLimiters(QString &string, const QChar &sl = '"', const QChar &el = '"'); | 522 | QString removeLimiters(QString &string, const QChar &sl = '"', const QChar &el = '"'); |
522 | IMAPResponseCode getResponseCode(const QString &line); | 523 | IMAPResponseCode getResponseCode(const QString &line); |
523 | QValueList<IMAPResponseFlags> parseFlagList(const QStringList &flags); | 524 | QValueList<IMAPResponseFlags> parseFlagList(const QStringList &flags); |
524 | 525 | ||
525 | private: | 526 | private: |
526 | IMAPResponse _iresponse; | 527 | IMAPResponse _iresponse; |
527 | 528 | ||
528 | }; | 529 | }; |
529 | 530 | ||
530 | #endif | 531 | #endif |
531 | 532 | ||