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
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 
20 {
21  // delete any owned resources if required
22 }
23 
25 {
27 }
28 
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 
40 {
41  return LocalQueryInt(m_winamphwnd, Command, Data);
42 }
43 
45 {
46  return LocalQueryString(m_winamphwnd, Command, Data);
47 }
48 
49 
50 } /* namespace Server */
51 } /* namespace WinampRemote */