gloox  1.0
disconodehandler.h
1 /*
2  Copyright (c) 2004-2009 by Jakob Schroeter <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 
25 namespace 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 
61  virtual Disco::IdentityList handleDiscoNodeIdentities( const JID& from,
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__