|
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
this class provides support for zeroconf browsing More...
#include <ZeroconfBrowser.h>
Classes | |
| class | ZeroconfService |
Public Member Functions | |
| void | Start () |
| void | Stop () |
| std::vector< ZeroconfService > | GetFoundServices () |
| bool | ResolveService (ZeroconfService &fr_service, double f_timeout=1.0) |
| virtual void | ProcessResults () |
Static Public Member Functions | |
| static CZeroconfBrowser * | GetInstance () |
| static void | ReleaseInstance () |
| static bool | IsInstantiated () |
| bool | AddServiceType (const std::string &fcr_service_type) |
| bool | RemoveServiceType (const std::string &fcr_service_type) |
| CZeroconfBrowser () | |
| CZeroconfBrowser (const CZeroconfBrowser &)=delete | |
| CZeroconfBrowser & | operator= (const CZeroconfBrowser &)=delete |
| virtual | ~CZeroconfBrowser () |
| virtual bool | doAddServiceType (const std::string &fcr_service_type)=0 |
| virtual bool | doRemoveServiceType (const std::string &fcr_service_type)=0 |
| virtual std::vector< ZeroconfService > | doGetFoundServices ()=0 |
| virtual bool | doResolveService (ZeroconfService &fr_service, double f_timeout)=0 |
this class provides support for zeroconf browsing
|
protected |
|
protecteddelete |
|
protectedvirtual |
| bool CZeroconfBrowser::AddServiceType | ( | const std::string & | fcr_service_type | ) |
methods for browsing and getting results of it
adds a service type for browsing
| fcr_service_type | the service type as string, e.g. _smb._tcp. |
|
protectedpure virtual |
Implemented in CZeroconfBrowserAndroid.
|
protectedpure virtual |
Implemented in CZeroconfBrowserAndroid.
|
protectedpure virtual |
Implemented in CZeroconfBrowserAndroid.
|
protectedpure virtual |
Implemented in CZeroconfBrowserAndroid.
| std::vector< CZeroconfBrowser::ZeroconfService > CZeroconfBrowser::GetFoundServices | ( | ) |
returns the list of found services if this is updated, the following message with "zeroconf://" as path is sent: CGUIMessage message(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_UPDATE_PATH);
|
static |
|
inlinestatic |
|
protecteddelete |
|
inlinevirtual |
|
static |
| bool CZeroconfBrowser::RemoveServiceType | ( | const std::string & | fcr_service_type | ) |
remove the specified service from discovery
| fcr_service_type | the service type as string, e.g. _smb._tcp. |
| bool CZeroconfBrowser::ResolveService | ( | ZeroconfService & | fr_service, |
| double | f_timeout = 1.0 |
||
| ) |
| void CZeroconfBrowser::Stop | ( | ) |