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
ServersF.h
Go to the documentation of this file.
1 
2 #ifndef ServersFH
3 #define ServersFH
4 
5 #include <Classes.hpp>
6 #include <Controls.hpp>
7 #include <StdCtrls.hpp>
8 #include <Forms.hpp>
9 #include <ComCtrls.hpp>
10 #include <ImgList.hpp>
11 #include <ExtCtrls.hpp>
12 
13 #include <map.h>
14 #include "ServerTester.h"
15 
16 class TfrmServers : public TForm
17 {
18 __published: // IDE-managed Components
19  TImageList *imlServers;
20  TImage *imgWarning;
21  TImage *imgError;
22  TImage *imgInformation;
23  TImageList *imlEvents;
24  TPanel *pnlPages;
25  TProgressBar *pbServers;
26  TPanel *pnlTop;
27  TLabel *lblEndPoint;
28  TEdit *ebEndPoint;
29  TPanel *pnlButtons;
30  TButton *btnCancel;
31  TButton *btnOK;
32  TButton *btnTest;
33  TButton *btnLocate;
34  TListView *lvServers;
35  TListView *lvMessages;
36  void __fastcall btnLocateClick(TObject *Sender);
37  void __fastcall FormCreate(TObject *Sender);
38  void __fastcall lvServersClick(TObject *Sender);
39  void __fastcall StartTest(TObject *Sender);
40  void __fastcall StopTest(TObject *Sender);
41  void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
42  void __fastcall btnOKClick(TObject *Sender);
43  void __fastcall GetServerIp(TObject *Sender);
44  void __fastcall spltMessagesCanResize(TObject *Sender,
45  int &NewSize, bool &Accept);
46 private: // User declarations
47 
48 void addLocal();
49 void doNetworkServer(const AnsiString& RemoteName, const AnsiString& Comment, const AnsiString& ip);
50 void doNetworkMessage(const AnsiString& Message, const int Level);
51 void doNetworkProgress(const float complete);
52 
53 void doTestEvent(const AnsiString& remoteName,
54  const AnsiString& data,
55  const int level);
56 void doTestResult(const AnsiString& remoteName,
57  const bool success,
58  bool& abort);
59 
60 void addProcessMessage(const AnsiString & Message, const int Level);
61 
62 TListItem* findServerItem(const AnsiString& RemoteName);
63 void getServers(map<AnsiString, ServerInfo>& servers);
64 
65 bool AbortTest;
66 void __fastcall CheckPort(void);
67 
68 
69 public: // User declarations
70  __fastcall TfrmServers(TComponent* Owner);
71  AnsiString EndPoint;
72  AnsiString Address;
73 };
74 
75 extern PACKAGE TfrmServers *frmServers;
76 
77 #endif