KIMAP2::ImapStreamParser
KIMAP2::ImapStreamParser Class Reference
#include <imapstreamparser.h>
Public Member Functions | |
ImapStreamParser (QIODevice *socket, bool serverModeEnabled=false) | |
int | availableDataSize () const |
QByteArray | currentBuffer () const |
bool | error () const |
void | onResponseReceived (std::function< void(const Message &)>) |
void | parseStream () |
QByteArray | readUntilCommandEnd () |
Detailed Description
Parser for IMAP messages that operates on a local socket stream.
Definition at line 41 of file imapstreamparser.h.
Constructor & Destructor Documentation
◆ ImapStreamParser()
|
explicit |
Construct the parser.
- Parameters
-
socket the local socket to work with. serverModeEnabled true if the parser has to assume we're writing a server (e.g. sends continuation message automatically)
Definition at line 33 of file imapstreamparser.cpp.
Member Function Documentation
◆ readUntilCommandEnd()
QByteArray ImapStreamParser::readUntilCommandEnd | ( | ) |
Return everything that remained from the command.
- Returns
- the remaining command data
Definition at line 436 of file imapstreamparser.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jan 27 2023 07:52:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jan 27 2023 07:52:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.