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
WinampServerImpl.cpp
Go to the documentation of this file.
1
/*
2
* WinampServerImpl.cpp
3
*
4
* Created on: 1 May 2012
5
* Author: Patrick
6
*/
7
8
#include "
WinampServerImpl.h
"
9
10
namespace
WinampRemote
11
{
12
namespace
Server
13
{
14
15
WinampServer::WinampServer
(HWND winamp_hwnd) : m_winamphwnd(winamp_hwnd)
16
{
17
}
18
19
WinampServer::~WinampServer
()
20
{
21
// delete any owned resources if required
22
}
23
24
string
WinampServer::WinampVersion
()
25
{
26
return
WinampVersionString
(
QueryInt
(
IPC_GETVERSION
, 0));
27
}
28
29
void
WinampServer::ExecuteCommand
(
WinampCommand
MessageToExecute)
30
{
31
LocalExecuteCommand
(m_winamphwnd, MessageToExecute);
32
}
33
34
void
WinampServer::ExecuteStringCommand
(
const
char
* CommandString,
WinampCommand
Command
)
35
{
36
LocalExecuteStringCommand
(m_winamphwnd, CommandString, Command);
37
}
38
39
int
WinampServer::QueryInt
(
WinampCommand
Command
,
int
Data)
40
{
41
return
LocalQueryInt
(m_winamphwnd, Command, Data);
42
}
43
44
string
WinampServer::QueryString
(
WinampCommand
Command
,
int
Data)
45
{
46
return
LocalQueryString
(m_winamphwnd, Command, Data);
47
}
48
49
50
}
/* namespace Server */
51
}
/* namespace WinampRemote */
WinampServerImpl.cpp
Generated by
1.8.1.1