SmartFoxServer 2X C++ API
RoomEvents.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of RoomEvents
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __RoomEvents__
12 #define __RoomEvents__
13 
14 #include "../Util/Common.h"
15 
16 namespace Sfs2X {
17 namespace Requests {
18 
35  class DLLImportExport RoomEvents
36  {
37  public:
38 
39  // -------------------------------------------------------------------
40  // Public methods
41  // -------------------------------------------------------------------
42  RoomEvents();
43  bool AllowUserEnter();
44  void AllowUserEnter(bool value);
45  bool AllowUserExit();
46  void AllowUserExit(bool value);
47  bool AllowUserCountChange();
48  void AllowUserCountChange(bool value);
49  bool AllowUserVariablesUpdate();
50  void AllowUserVariablesUpdate(bool value);
51 
52  // -------------------------------------------------------------------
53  // Public members
54  // -------------------------------------------------------------------
55 
56  protected:
57 
58  // -------------------------------------------------------------------
59  // Protected methods
60  // -------------------------------------------------------------------
61 
62  // -------------------------------------------------------------------
63  // Protected members
64  // -------------------------------------------------------------------
65 
66  private:
67 
68  // -------------------------------------------------------------------
69  // Private methods
70  // -------------------------------------------------------------------
71 
72  // -------------------------------------------------------------------
73  // Private members
74  // -------------------------------------------------------------------
75  bool allowUserEnter;
76  bool allowUserExit;
77  bool allowUserCountChange;
78  bool allowUserVariablesUpdate;
79  };
80 
81 } // namespace Requests
82 } // namespace Sfs2X
83 
84 #endif
This class provides Room event settings that can be specified when creating a new Room via the Create...
Definition: RoomEvents.h:35
Definition: SmartFox.cpp:24