SmartFoxServer 2X C++ API
SubscribeRoomGroupRequest.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of SubscribeRoomGroupRequest
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __SubscribeRoomGroupRequest__
12 #define __SubscribeRoomGroupRequest__
13 
14 #include "../Util/Common.h"
15 #include "BaseRequest.h"
16 
17 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
18 
19 #if defined(_MSC_VER)
20 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug
21 #endif
22 #include <list> // STL library: list object
23 #include <string> // STL library: string object
24 using namespace std; // STL library: declare the STL namespace
25 
26 namespace Sfs2X {
27 namespace Requests {
28 
32  class DLLImportExport SubscribeRoomGroupRequest : public BaseRequest
33  {
34  public:
35 
36  // -------------------------------------------------------------------
37  // Public methods
38  // -------------------------------------------------------------------
39 
81  SubscribeRoomGroupRequest(string groupId);
82 
83  virtual ~SubscribeRoomGroupRequest();
84 
85  void Validate(boost::shared_ptr<SmartFox> sfs);
86 
87  void Execute (boost::shared_ptr<SmartFox> sfs);
88 
89  // -------------------------------------------------------------------
90  // Public members
91  // -------------------------------------------------------------------
92 
93  static boost::shared_ptr<string> KEY_GROUP_ID;
94 
95  static boost::shared_ptr<string> KEY_ROOM_LIST;
96 
97  protected:
98 
99  // -------------------------------------------------------------------
100  // Protected methods
101  // -------------------------------------------------------------------
102 
103  // -------------------------------------------------------------------
104  // Protected members
105  // -------------------------------------------------------------------
106 
107  private:
108 
109  // -------------------------------------------------------------------
110  // Private methods
111  // -------------------------------------------------------------------
112 
113  // -------------------------------------------------------------------
114  // Private members
115  // -------------------------------------------------------------------
116  boost::shared_ptr<string> groupId;
117  };
118 
119 } // namespace Requests
120 } // namespace Sfs2X
121 
122 #endif
STL namespace.
Definition: SmartFox.cpp:24
Subscribe to the events of a Room Group
Definition: SubscribeRoomGroupRequest.h:32