summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/libmail/imapresponse.h
Unidiff
Diffstat (limited to 'noncore/unsupported/mail2/libmail/imapresponse.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/mail2/libmail/imapresponse.h5
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
@@ -496,30 +496,31 @@ private:
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
503class IMAPResponseParser : public QObject, public IMAPResponseEnums 503class IMAPResponseParser : public QObject, public IMAPResponseEnums
504{ 504{
505 Q_OBJECT 505 Q_OBJECT
506 506
507public: 507public:
508 IMAPResponseParser(const QString &data); 508 IMAPResponseParser();
509 void parse ( const QString &data);
509 510
510 IMAPResponse response(); 511 IMAPResponse response();
511 512
512signals: 513signals:
513 void needMoreData(const QString &comment); 514 void needMoreData(QString &data);
514 515
515protected: 516protected:
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
525private: 526private: