disconodehandler.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 DISCONODEHANDLER_H__
#define DISCONODEHANDLER_H__
#include "gloox.h"
#include "disco.h"
#include <list>
#include <map>
#include <string>
namespace gloox
{
class GLOOX_API DiscoNodeHandler
{
public:
virtual ~DiscoNodeHandler() {}
virtual StringList handleDiscoNodeFeatures( const JID& from, const std::string& node ) = 0;
virtual Disco::IdentityList handleDiscoNodeIdentities( const JID& from,
const std::string& node ) = 0;
virtual Disco::ItemList handleDiscoNodeItems( const JID& from, const JID& to,
const std::string& node = EmptyString ) = 0;
};
}
#endif // DISCONODEHANDLER_H__
gloox::DiscoNodeHandler
Derived classes can be registered as NodeHandlers for certain nodes with the Disco object.
Definition disconodehandler.h:36
gloox::DiscoNodeHandler::handleDiscoNodeItems
virtual Disco::ItemList handleDiscoNodeItems(const JID &from, const JID &to, const std::string &node=EmptyString)=0
gloox::DiscoNodeHandler::handleDiscoNodeIdentities
virtual Disco::IdentityList handleDiscoNodeIdentities(const JID &from, const std::string &node)=0
gloox::DiscoNodeHandler::handleDiscoNodeFeatures
virtual StringList handleDiscoNodeFeatures(const JID &from, const std::string &node)=0
gloox::DiscoNodeHandler::~DiscoNodeHandler
virtual ~DiscoNodeHandler()
Definition disconodehandler.h:41
gloox::Disco::IdentityList
std::list< Identity * > IdentityList
Definition disco.h:56
gloox::Disco::ItemList
std::list< Item * > ItemList
Definition disco.h:266
gloox::JID
An abstraction of a JID.
Definition jid.h:31
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::StringList
std::list< std::string > StringList
Definition gloox.h:1251
gloox::EmptyString
const std::string EmptyString
Definition gloox.cpp:124