Search for usage in LXR

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::ImapStreamParser ( QIODevice socket,
bool  serverModeEnabled = false 

Construct the parser.

socketthe local socket to work with.
serverModeEnabledtrue 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

QByteArray ImapStreamParser::readUntilCommandEnd ( )

Return everything that remained from the command.

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-2021 The KDE developers.
Generated on Thu Oct 21 2021 23:11:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.