summaryrefslogtreecommitdiff
path: root/kimap/imapstreamparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'kimap/imapstreamparser.h')
-rw-r--r--kimap/imapstreamparser.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/kimap/imapstreamparser.h b/kimap/imapstreamparser.h
index 12e97b0..7c43d1d 100644
--- a/kimap/imapstreamparser.h
+++ b/kimap/imapstreamparser.h
@@ -36,9 +36,9 @@ namespace KIMAP {
class ImapParserException : public std::exception
{
public:
- explicit ImapParserException( const char *what ) throw() : mWhat( what ) {}
- explicit ImapParserException( const QByteArray &what ) throw() : mWhat( what ) {}
- explicit ImapParserException( const QString &what ) throw() : mWhat( what.toUtf8() ) {}
+ ImapParserException( const char *what ) throw() : mWhat( what ) {}
+ ImapParserException( const QByteArray &what ) throw() : mWhat( what ) {}
+ ImapParserException( const QString &what ) throw() : mWhat( what.toUtf8() ) {}
ImapParserException( const ImapParserException &other ) throw() : std::exception( other ), mWhat( other.what() ) {}
virtual ~ImapParserException() throw() {}
const char *what() const throw() { return mWhat.constData(); }
@@ -86,6 +86,7 @@ class KIMAP_EXPORT ImapStreamParser
*/
QList<QByteArray> readParenthesizedList();
+
/**
* Get the next data as a number. This call might block.
* @param ok true if the data found was a number
@@ -180,6 +181,7 @@ class KIMAP_EXPORT ImapStreamParser
void setData( const QByteArray &data );
+
private:
void stripLeadingSpaces();
QByteArray parseQuotedString();