sihandler.h
/*
Copyright (c) 2007-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 SIHANDLER_H__
#define SIHANDLER_H__
#include "macros.h"
#include "simanager.h"
#include <string>
namespace gloox
{
class IQ;
class Tag;
class JID;
class GLOOX_API SIHandler
{
public:
virtual ~SIHandler() {}
virtual void handleSIRequestResult( const JID& from, const JID& to, const std::string& sid,
const SIManager::SI& si ) = 0;
virtual void handleSIRequestError( const IQ& iq, const std::string& sid ) = 0;
};
}
#endif // SIHANDLER_H__
gloox::IQ
An abstraction of an IQ stanza.
Definition iq.h:34
gloox::JID
An abstraction of a JID.
Definition jid.h:31
gloox::SIHandler
An abstract base class to handle results of outgoing SI requests, i.e. you requested a stream (using ...
Definition sihandler.h:40
gloox::SIHandler::handleSIRequestError
virtual void handleSIRequestError(const IQ &iq, const std::string &sid)=0
gloox::SIHandler::handleSIRequestResult
virtual void handleSIRequestResult(const JID &from, const JID &to, const std::string &sid, const SIManager::SI &si)=0
gloox::SIHandler::~SIHandler
virtual ~SIHandler()
Definition sihandler.h:46
gloox::Tag
This is an abstraction of an XML element.
Definition tag.h:47
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28