bytestreamdatahandler.h
/*
Copyright (c) 2006-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef BYTESTREAMDATAHANDLER_H__
#define BYTESTREAMDATAHANDLER_H__
#include "macros.h"
#include <string>
namespace gloox
{
class Bytestream;
class IQ;
class GLOOX_API BytestreamDataHandler
{
public:
virtual ~BytestreamDataHandler() {}
virtual void handleBytestreamData( Bytestream* bs, const std::string& data ) = 0;
virtual void handleBytestreamDataAck( Bytestream* bs ) {}
virtual void handleBytestreamError( Bytestream* bs, const IQ& iq ) = 0;
virtual void handleBytestreamOpen( Bytestream* bs ) = 0;
virtual void handleBytestreamClose( Bytestream* bs ) = 0;
};
}
#endif // BYTESTREAMDATAHANDLER_H__
gloox::BytestreamDataHandler
A virtual interface that allows implementors to receive data sent over a SOCKS5 Bytestream as defined...
Definition bytestreamdatahandler.h:40
gloox::BytestreamDataHandler::handleBytestreamError
virtual void handleBytestreamError(Bytestream *bs, const IQ &iq)=0
gloox::BytestreamDataHandler::handleBytestreamOpen
virtual void handleBytestreamOpen(Bytestream *bs)=0
gloox::BytestreamDataHandler::~BytestreamDataHandler
virtual ~BytestreamDataHandler()
Definition bytestreamdatahandler.h:45
gloox::BytestreamDataHandler::handleBytestreamDataAck
virtual void handleBytestreamDataAck(Bytestream *bs)
Definition bytestreamdatahandler.h:65
gloox::BytestreamDataHandler::handleBytestreamClose
virtual void handleBytestreamClose(Bytestream *bs)=0
gloox::BytestreamDataHandler::handleBytestreamData
virtual void handleBytestreamData(Bytestream *bs, const std::string &data)=0
gloox::Bytestream
An abstraction of a single bytestream.
Definition bytestream.h:37
gloox::IQ
An abstraction of an IQ stanza.
Definition iq.h:34
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28