The Winamp Remote Control suite
a remote control client and plugin for Winamp 2.x, 5.x
Main Page
Namespaces
Classes
Files
File List
File Members
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
19
enum
WAExecutionStatus
{
20
waInactive
,
22
waServerStarting
,
24
waServerStarted
,
26
waListening
,
28
waExecuting
,
30
waServerStopped
,
32
waInitialiseFailed
};
33
34
45
class
RPCExecutor
46
{
47
private
:
48
WinampRemote::Server::IWinampServer
* m_winamp;
49
WinampRemote::Remoting::ICallObserver
* m_callObserver;
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
92
WinampRemote::Server::IWinampServer
*
getWinampServer
()
const
;
93
99
void
setWinampServer
(
WinampRemote::Server::IWinampServer
*
const
winampServer
);
100
106
WinampRemote::Remoting::ICallObserver
*
getCallObserver
()
const
;
107
113
void
setCallObserver
(
WinampRemote::Remoting::ICallObserver
*
const
callObserver);
114
119
void
setExecutionStatus
(
WAExecutionStatus
status);
120
124
WAExecutionStatus
getExecutionStatus
();
125
129
void
Execute
();
130
135
static
RPCExecutor
&
instance
();
136
137
};
138
139
}
/* namespace Server */
140
}
/* namespace WinampRemote */
141
#endif
/* RPCSERVER_H_ */
RPCExecutor.h
Generated by
1.8.1.1