SmartFoxServer 2X C++ API
PublicMessageRequest.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of PublicMessageRequest
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __PublicMessageRequest__
12 #define __PublicMessageRequest__
13 
14 #include "../Util/Common.h"
15 #include "GenericMessageRequest.h"
16 #include "../Entities/Data/ISFSObject.h"
17 #include "../Entities/Room.h"
18 
19 #include <boost/shared_ptr.hpp> // Boost Asio shared pointer
20 
21 #if defined(_MSC_VER)
22 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug
23 #endif
24 #include <string> // STL library: string object
25 using namespace std; // STL library: declare the STL namespace
26 
27 using namespace Sfs2X::Entities::Data;
28 
29 namespace Sfs2X {
30 namespace Requests {
31 
41  class DLLImportExport PublicMessageRequest : public GenericMessageRequest
42  {
43  public:
44 
45  // -------------------------------------------------------------------
46  // Public methods
47  // -------------------------------------------------------------------
48 
88  PublicMessageRequest(string message, boost::shared_ptr<ISFSObject> parameters, boost::shared_ptr<Room> targetRoom);
89 
93  PublicMessageRequest(string, boost::shared_ptr<ISFSObject> parameters);
94 
98  PublicMessageRequest(string message);
99 
100  virtual ~PublicMessageRequest();
101 
102  // -------------------------------------------------------------------
103  // Public members
104  // -------------------------------------------------------------------
105 
106  protected:
107 
108  // -------------------------------------------------------------------
109  // Protected methods
110  // -------------------------------------------------------------------
111 
112  // -------------------------------------------------------------------
113  // Protected members
114  // -------------------------------------------------------------------
115 
116  private:
117 
118  // -------------------------------------------------------------------
119  // Private methods
120  // -------------------------------------------------------------------
121 
122  // -------------------------------------------------------------------
123  // Private members
124  // -------------------------------------------------------------------
125  };
126 
127 } // namespace Requests
128 } // namespace Sfs2X
129 
130 #endif
STL namespace.
Sends a chat Public Message to other users in the Room
Definition: PublicMessageRequest.h:41
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17