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
WinampRemote::Server::WinampTestServer Class Reference

#include <WinampTestServer.h>

Inheritance diagram for WinampRemote::Server::WinampTestServer:
WinampRemote::Server::IWinampServer

List of all members.

Public Types

enum  StopType { Performed, Immediate, WithFade, AfterCurrent }

Public Member Functions

 WinampTestServer ()
virtual ~WinampTestServer ()
string WinampVersion ()
void ExecuteCommand (WinampCommand MessageToExecute)
void ExecuteStringCommand (const char *CommandString, WinampCommand Command)
int QueryInt (WinampCommand Command, int Data)
string QueryString (WinampCommand Command, int Data)
- Public Member Functions inherited from WinampRemote::Server::IWinampServer
virtual ~IWinampServer ()

Detailed Description

mock server for use in the test project, implementing the IWinampServer interface

Definition at line 37 of file WinampTestServer.h.


Member Enumeration Documentation

Enumerator:
Performed 
Immediate 
WithFade 
AfterCurrent 

Definition at line 41 of file WinampTestServer.h.


Constructor & Destructor Documentation

WinampRemote::Server::WinampTestServer::WinampTestServer ( )

constructor

Definition at line 12 of file WinampTestServer.cpp.

WinampRemote::Server::WinampTestServer::~WinampTestServer ( )
virtual

virtual destructor

Definition at line 34 of file WinampTestServer.cpp.


Member Function Documentation

void WinampRemote::Server::WinampTestServer::ExecuteCommand ( WinampCommand  MessageToExecute)
virtual

execute the passed command ID

Parameters:
MessageToExecute

Implements WinampRemote::Server::IWinampServer.

Definition at line 85 of file WinampTestServer.cpp.

void WinampRemote::Server::WinampTestServer::ExecuteStringCommand ( const char *  CommandString,
WinampCommand  Command 
)
virtual

executes the passed command with the string parameter

Parameters:
CommandString
Command

Implements WinampRemote::Server::IWinampServer.

Definition at line 147 of file WinampTestServer.cpp.

int WinampRemote::Server::WinampTestServer::QueryInt ( WinampCommand  Command,
int  Data 
)
virtual

returns the result for the given command and data

Parameters:
Command
Data
Returns:
the result

Implements WinampRemote::Server::IWinampServer.

Definition at line 165 of file WinampTestServer.cpp.

string WinampRemote::Server::WinampTestServer::QueryString ( WinampCommand  Command,
int  Data 
)
virtual

queries the string value for the given command and data

Parameters:
Command
Data
Returns:
the result

Implements WinampRemote::Server::IWinampServer.

Definition at line 238 of file WinampTestServer.cpp.

string WinampRemote::Server::WinampTestServer::WinampVersion ( )
virtual

obtains and formats the winamp version number

Returns:
the string representation

Implements WinampRemote::Server::IWinampServer.

Definition at line 39 of file WinampTestServer.cpp.


The documentation for this class was generated from the following files: