bytestreamhandler.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 BYTESTREAMHANDLER_H__
#define BYTESTREAMHANDLER_H__
#include "macros.h"
#include "jid.h"
#include "bytestream.h"
#include "iq.h"
namespace gloox
{
class GLOOX_API BytestreamHandler
{
public:
virtual ~BytestreamHandler() {}
virtual void handleIncomingBytestreamRequest( const std::string& sid, const JID& from ) = 0;
virtual void handleIncomingBytestream( Bytestream* bs ) = 0;
virtual void handleOutgoingBytestream( Bytestream* bs ) = 0;
virtual void handleBytestreamError( const IQ& iq, const std::string& sid ) = 0;
};
}
#endif // BYTESTREAMHANDLER_H__
gloox::BytestreamHandler
A virtual interface that allows to receive new incoming Bytestream requests from remote entities.
Definition bytestreamhandler.h:37
gloox::BytestreamHandler::handleIncomingBytestream
virtual void handleIncomingBytestream(Bytestream *bs)=0
gloox::BytestreamHandler::handleBytestreamError
virtual void handleBytestreamError(const IQ &iq, const std::string &sid)=0
gloox::BytestreamHandler::handleOutgoingBytestream
virtual void handleOutgoingBytestream(Bytestream *bs)=0
gloox::BytestreamHandler::handleIncomingBytestreamRequest
virtual void handleIncomingBytestreamRequest(const std::string &sid, const JID &from)=0
gloox::BytestreamHandler::~BytestreamHandler
virtual ~BytestreamHandler()
Definition bytestreamhandler.h:42
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::JID
An abstraction of a JID.
Definition jid.h:31
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28