SmartFoxServer 2X C++ API
RoomPermissions.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of RoomPermissions
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __RoomPermissions__
12 #define __RoomPermissions__
13 
14 #include "../Util/Common.h"
15 
16 namespace Sfs2X {
17 namespace Requests {
18 
27  class DLLImportExport RoomPermissions
28  {
29  public:
30 
31  // -------------------------------------------------------------------
32  // Public methods
33  // -------------------------------------------------------------------
35 
36  // -------------------------------------------------------------------
37  // Public members
38  // -------------------------------------------------------------------
39  bool AllowNameChange();
40  void AllowNameChange(bool value);
41  bool AllowPasswordStateChange();
42  void AllowPasswordStateChange(bool value);
43  bool AllowPublicMessages();
44  void AllowPublicMessages(bool value);
45  bool AllowResizing();
46  void AllowResizing(bool value);
47 
48  protected:
49 
50  // -------------------------------------------------------------------
51  // Protected methods
52  // -------------------------------------------------------------------
53 
54  // -------------------------------------------------------------------
55  // Protected members
56  // -------------------------------------------------------------------
57 
58  private:
59 
60  // -------------------------------------------------------------------
61  // Private methods
62  // -------------------------------------------------------------------
63 
64  // -------------------------------------------------------------------
65  // Private members
66  // -------------------------------------------------------------------
67  bool allowNameChange;
68  bool allowPasswordStateChange;
69  bool allowPublicMessages;
70  bool allowResizing;
71  };
72 
73 } // namespace Requests
74 } // namespace Sfs2X
75 
76 #endif
This object is part of the RoomSettings parameters used for creating a new Room.
Definition: RoomPermissions.h:27
Definition: SmartFox.cpp:24