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
ServerTester.h
Go to the documentation of this file.
1 /*
2  * ServerTester.h
3  *
4  * Created on: 12 Feb 2012
5  * Author: Patrick
6  */
7 
8 #ifndef SERVERTESTER_H_
9 #define SERVERTESTER_H_
10 
11 #include <system.hpp>
12 #pragma hdrstop
13 
14 #include <map.h>
15 
17 {
19 };
20 
21 
22 struct ServerInfo
23 {
24  AnsiString comment;
26 
28 };
29 
30 
31 
37 class ServerTester {
38 public:
42  ServerTester();
46  virtual ~ServerTester();
47 
51  __property AnsiString endPoint = {read = _endPoint, write = _endPoint};
52 
57  void testServers(std::map<AnsiString, ServerInfo>& servers);
58 
64  void testServer(const AnsiString& remote, ServerInfo& serverInfo);
65 
66 private:
67 
68  AnsiString _endPoint;
69  bool _abort;
70 
71  void DoMessage(const AnsiString& remoteName, const AnsiString& data, const int level);
72  void DoResult(const AnsiString& remoteName, const bool success);
73 
74 };
75 
76 
77 #endif /* SERVERTESTER_H_ */