summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/libmail/imapresponse.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/mail2/libmail/imapresponse.h') (more/less context) (ignore 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
@@ -484,48 +484,49 @@ private:
IMAPHandler *_handler;
QValueList<IMAPResponseOK> _okl;
QValueList<IMAPResponseNO> _nol;
QValueList<IMAPResponseBAD> _badl;
QValueList<IMAPResponseCAPABILITY> _capabilityl;
QValueList<IMAPResponseLIST> _listl;
QValueList<IMAPResponseLSUB> _lsubl;
QValueList<IMAPResponseSTATUS> _statusl;
QValueList<IMAPResponseSEARCH> _searchl;
QValueList<IMAPResponseFLAGS> _flagsl;
QValueList<IMAPResponseEXISTS> _existsl;
QValueList<IMAPResponseRECENT> _recentl;
QValueList<IMAPResponseEXPUNGE> _expungel;
QValueList<IMAPResponseFETCH> _fetchl;
};
class IMAPResponseParser : public QObject, public IMAPResponseEnums
{
Q_OBJECT
public:
- IMAPResponseParser(const QString &data);
+ IMAPResponseParser();
+ void parse ( const QString &data);
IMAPResponse response();
signals:
- void needMoreData(const QString &comment);
+ void needMoreData(QString &data);
protected:
void parseResponse(const QString &data, bool tagged = false);
QStringList splitData(const QString &data, bool withBrackets);
void parseParenthesizedList(const QString &data, QStringList &parsed);
void splitTagData(const QString &line, QString &tag, QString &data);
QString removeLimiters(QString &string, const QChar &sl = '"', const QChar &el = '"');
IMAPResponseCode getResponseCode(const QString &line);
QValueList<IMAPResponseFlags> parseFlagList(const QStringList &flags);
private:
IMAPResponse _iresponse;
};
#endif