The Winamp Remote Control suite
a remote control client and plugin for Winamp 2.x, 5.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RPCExecutor.h
Go to the documentation of this file.
1 /*
2  * RPCServer.h
3  *
4  * Created on: 4 Nov 2012
5  * Author: Patrick
6  */
7 
8 #ifndef RPCSERVER_H_
9 #define RPCSERVER_H_
10 
11 #include "IWinamp.h"
12 #include "ICallObserver.h"
13 
14 namespace WinampRemote
15 {
16 namespace Server
17 {
18 
33 
34 
46 {
47 private:
50  std::string m_protocolSequence;
51  std::string m_endPoint;
52  WAExecutionStatus m_executionStatus;
53 public:
57  RPCExecutor();
61  virtual ~RPCExecutor();
62 
67  std::string getProtocolSequence() const;
68 
73  void setProtocolSequence(const std::string value);
74 
79  std::string getEndpoint() const;
80 
85  void setEndpoint(const std::string value);
86 
93 
100 
107 
113  void setCallObserver(WinampRemote::Remoting::ICallObserver * const callObserver);
114 
120 
125 
129  void Execute();
130 
135  static RPCExecutor& instance();
136 
137 };
138 
139 } /* namespace Server */
140 } /* namespace WinampRemote */
141 #endif /* RPCSERVER_H_ */