adhochandler.h
/*
Copyright (c) 2004-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 ADHOCHANDLER_H__
#define ADHOCHANDLER_H__
#include "adhoc.h"
namespace gloox
{
class GLOOX_API AdhocHandler
{
public:
virtual ~AdhocHandler() {}
virtual void handleAdhocSupport( const JID& remote, bool support, int context ) = 0;
virtual void handleAdhocCommands( const JID& remote, const StringMap& commands, int context ) = 0;
virtual void handleAdhocError( const JID& remote, const Error* error, int context ) = 0;
virtual void handleAdhocExecutionResult( const JID& remote, const Adhoc::Command& command, int context ) = 0;
};
}
#endif // ADHOCHANDLER_H__
gloox::AdhocHandler
A virtual interface for an Ad-hoc Command users according to XEP-0050.
Definition adhochandler.h:33
gloox::AdhocHandler::handleAdhocExecutionResult
virtual void handleAdhocExecutionResult(const JID &remote, const Adhoc::Command &command, int context)=0
gloox::AdhocHandler::handleAdhocCommands
virtual void handleAdhocCommands(const JID &remote, const StringMap &commands, int context)=0
gloox::AdhocHandler::~AdhocHandler
virtual ~AdhocHandler()
Definition adhochandler.h:38
gloox::AdhocHandler::handleAdhocError
virtual void handleAdhocError(const JID &remote, const Error *error, int context)=0
gloox::AdhocHandler::handleAdhocSupport
virtual void handleAdhocSupport(const JID &remote, bool support, int context)=0
gloox::Adhoc::Command
An abstraction of an Adhoc Command element (from Adhoc Commands, XEP-0050) as a StanzaExtension.
Definition adhoc.h:92
gloox::Error
A stanza error abstraction implemented as a StanzaExtension.
Definition error.h:35
gloox::JID
An abstraction of a JID.
Definition jid.h:31
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::StringMap
std::map< std::string, std::string > StringMap
Definition gloox.h:1261