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