SmartFoxServer 2X C++ API
ObjectMessageRequest.h
1 // ===================================================================
2 //
3 // Description
4 // Contains the definition of ObjectMessageRequest
5 //
6 // Revision history
7 // Date Description
8 // 30-Nov-2012 First version
9 //
10 // ===================================================================
11 #ifndef __ObjectMessageRequest__
12 #define __ObjectMessageRequest__
13 
14 #include "../Util/Common.h"
15 #include "GenericMessageRequest.h"
16 #include "../Entities/Room.h"
17 #include "../Entities/Data/ISFSObject.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 <vector> // STL library: vector object
25 using namespace std; // STL library: declare the STL namespace
26 
27 using namespace Sfs2X::Entities;
28 using namespace Sfs2X::Entities::Data;
29 
30 namespace Sfs2X {
31 namespace Requests {
32 
42  class DLLImportExport ObjectMessageRequest : public GenericMessageRequest
43  {
44  public:
45 
46  // -------------------------------------------------------------------
47  // Public methods
48  // -------------------------------------------------------------------
49 
93  ObjectMessageRequest(boost::shared_ptr<ISFSObject> obj, boost::shared_ptr<Room> targetRoom, boost::shared_ptr<vector<boost::shared_ptr<User> > > recipients);
94 
98  ObjectMessageRequest(boost::shared_ptr<ISFSObject> obj, boost::shared_ptr<Room> targetRoom);
99 
103  ObjectMessageRequest(boost::shared_ptr<ISFSObject> obj);
104 
105  virtual ~ObjectMessageRequest();
106 
107  // -------------------------------------------------------------------
108  // Public members
109  // -------------------------------------------------------------------
110 
111  protected:
112 
113  // -------------------------------------------------------------------
114  // Protected methods
115  // -------------------------------------------------------------------
116 
117  // -------------------------------------------------------------------
118  // Protected members
119  // -------------------------------------------------------------------
120 
121  private:
122 
123  // -------------------------------------------------------------------
124  // Private methods
125  // -------------------------------------------------------------------
126 
127  // -------------------------------------------------------------------
128  // Private members
129  // -------------------------------------------------------------------
130  };
131 
132 } // namespace Requests
133 } // namespace Sfs2X
134 
135 #endif
STL namespace.
Send a custom data Object to all users in a Room or a sub-selection of them
Definition: ObjectMessageRequest.h:42
Definition: Buddy.h:30
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17