00001 00002 #ifndef header_browse_client 00003 #define header_browse_client 00004 00006 00007 #include "../signals.h" 00008 #include <string> 00009 class CL_IPAddress; 00010 00011 class CL_BrowseClient 00012 //: Browse client to a browse master. 00013 // The browse client is used to connect to a browse master and get a list of registered 00014 // applications. Using this information, the application can generate a list of available 00015 // servers that the user can connect to. 00016 { 00018 public: 00019 CL_BrowseClient( 00020 const CL_IPAddress &browse_master, 00021 const std::string &app_id); 00022 // Connect to browse master and start downloading getting browse list. 00023 00024 virtual ~CL_BrowseClient(); 00025 00027 public: 00028 CL_Signal_v2<const CL_IPAddress &, const std::string &> &sig_server_added(); 00029 // Signal that is called when the browse client is notified about a server addition. 00030 00031 CL_Signal_v2<const CL_IPAddress &, const std::string &> &sig_server_updated(); 00032 // Signal that is called when the browse client is notified about a server update. 00033 00034 CL_Signal_v1<const CL_IPAddress &> &sig_server_removed(); 00035 // Signal that is called when the browse client is notified about a server removal. 00036 00038 public: 00039 00041 private: 00042 class CL_BrowseClient_Generic *impl; 00043 }; 00044 00045 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001