gloox  0.9.9.12
mucroomconfighandler.h
1 /*
2  Copyright (c) 2006-2008 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 MUCROOMCONFIGHANDLER_H__
16 #define MUCROOMCONFIGHANDLER_H__
17 
18 #include "gloox.h"
19 
20 #include <string>
21 #include <list>
22 
23 namespace gloox
24 {
25 
26  class MUCRoom;
27 
33  struct MUCListItem
34  {
35  JID *jid;
36  std::string nick;
39  std::string reason;
42  };
43 
47  typedef std::list<MUCListItem> MUCListItemList;
48 
53  {
83  };
84 
90  class GLOOX_API MUCRoomConfigHandler
91  {
92  public:
96  virtual ~MUCRoomConfigHandler() {}
97 
105  virtual void handleMUCConfigList( MUCRoom *room, const MUCListItemList& items,
106  MUCOperation operation ) = 0;
107 
116  virtual void handleMUCConfigForm( MUCRoom *room, const DataForm& form ) = 0;
117 
125  virtual void handleMUCConfigResult( MUCRoom *room, bool success, MUCOperation operation ) = 0;
126 
134  virtual void handleMUCRequest( MUCRoom *room, const DataForm& form ) = 0;
135 
136  };
137 
138 }
139 
140 #endif // MUCROOMCONFIGHANDLER_H__