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::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

◆ readUntilCommandEnd()

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-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:47:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.