SmartFoxServer 2X C++ API
UnsubscribeRoomGroupRequest.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of UnsubscribeRoomGroupRequest
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __UnsubscribeRoomGroupRequest__
12 #define __UnsubscribeRoomGroupRequest__
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 UnsubscribeRoomGroupRequest : public BaseRequest
33  {
34  public:
35 
36  // -------------------------------------------------------------------
37  // Public methods
38  // -------------------------------------------------------------------
39 
81  UnsubscribeRoomGroupRequest(string groupId);
82 
83  virtual ~UnsubscribeRoomGroupRequest();
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  protected:
96 
97  // -------------------------------------------------------------------
98  // Protected methods
99  // -------------------------------------------------------------------
100 
101  // -------------------------------------------------------------------
102  // Protected members
103  // -------------------------------------------------------------------
104 
105  private:
106 
107  // -------------------------------------------------------------------
108  // Private methods
109  // -------------------------------------------------------------------
110 
111  // -------------------------------------------------------------------
112  // Private members
113  // -------------------------------------------------------------------
114  boost::shared_ptr<string> groupId;
115  };
116 
117 } // namespace Requests
118 } // namespace Sfs2X
119 
120 #endif
STL namespace.
Stop listening to events of a specific Room Group
Definition: UnsubscribeRoomGroupRequest.h:32
Definition: SmartFox.cpp:24