gloox 1.0.24
disconodehandler.h
1/*
2 Copyright (c) 2004-2019 by Jakob Schröter <js@camaya.net>
3 This file is part of the gloox library. http://camaya.net/gloox
4
5 This software is distributed under a license. The full license
6 agreement can be found in the file LICENSE in this distribution.
7 This software may not be copied, modified, sold or distributed
8 other than expressed in the named license agreement.
9
10 This software is distributed without any warranty.
11*/
12
13
14
15#ifndef DISCONODEHANDLER_H__
16#define DISCONODEHANDLER_H__
17
18#include "gloox.h"
19#include "disco.h"
20
21#include <list>
22#include <map>
23#include <string>
24
25namespace gloox
26{
27
35 class GLOOX_API DiscoNodeHandler
36 {
37 public:
41 virtual ~DiscoNodeHandler() {}
42
51 virtual StringList handleDiscoNodeFeatures( const JID& from, const std::string& node ) = 0;
52
62 const std::string& node ) = 0;
63
74 virtual Disco::ItemList handleDiscoNodeItems( const JID& from, const JID& to,
75 const std::string& node = EmptyString ) = 0;
76
77 };
78
79}
80
81#endif // DISCONODEHANDLER_H__
Derived classes can be registered as NodeHandlers for certain nodes with the Disco object.
virtual Disco::ItemList handleDiscoNodeItems(const JID &from, const JID &to, const std::string &node=EmptyString)=0
virtual Disco::IdentityList handleDiscoNodeIdentities(const JID &from, const std::string &node)=0
virtual StringList handleDiscoNodeFeatures(const JID &from, const std::string &node)=0
std::list< Identity * > IdentityList
Definition: disco.h:56
std::list< Item * > ItemList
Definition: disco.h:266
An abstraction of a JID.
Definition: jid.h:31
The namespace for the gloox library.
Definition: adhoc.cpp:28
std::list< std::string > StringList
Definition: gloox.h:1251
const std::string EmptyString
Definition: gloox.cpp:124