Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CNetworkServices Class Reference

#include <NetworkServices.h>

Inheritance diagram for CNetworkServices:
ISettingCallback

Public Member Functions

 CNetworkServices ()
 
 ~CNetworkServices () override
 
bool OnSettingChanging (std::shared_ptr< const CSetting > setting) override
 The value of the given setting is being changed. More...
 
void OnSettingChanged (std::shared_ptr< const CSetting > setting) override
 The value of the given setting has changed. More...
 
bool OnSettingUpdate (std::shared_ptr< CSetting > setting, const char *oldSettingId, const TiXmlNode *oldSettingNode) override
 The given setting needs to be updated. More...
 
void Start ()
 
void Stop (bool bWait)
 
bool StartWebserver ()
 
bool IsWebserverRunning ()
 
bool StopWebserver ()
 
bool StartAirPlayServer ()
 
bool IsAirPlayServerRunning ()
 
bool StopAirPlayServer (bool bWait)
 
bool StartAirTunesServer ()
 
bool IsAirTunesServerRunning ()
 
bool StopAirTunesServer (bool bWait)
 
bool StartJSONRPCServer ()
 
bool IsJSONRPCServerRunning ()
 
bool StopJSONRPCServer (bool bWait)
 
bool StartEventServer ()
 
bool IsEventServerRunning ()
 
bool StopEventServer (bool bWait, bool promptuser)
 
bool RefreshEventServer ()
 
bool StartUPnP ()
 
bool StopUPnP (bool bWait)
 
bool StartUPnPClient ()
 
bool IsUPnPClientRunning ()
 
bool StopUPnPClient ()
 
bool StartUPnPController ()
 
bool IsUPnPControllerRunning ()
 
bool StopUPnPController ()
 
bool StartUPnPRenderer ()
 
bool IsUPnPRendererRunning ()
 
bool StopUPnPRenderer ()
 
bool StartUPnPServer ()
 
bool IsUPnPServerRunning ()
 
bool StopUPnPServer ()
 
bool StartRss ()
 
bool IsRssRunning ()
 
bool StopRss ()
 
bool StartZeroconf ()
 
bool IsZeroconfRunning ()
 
bool StopZeroconf ()
 
- Public Member Functions inherited from ISettingCallback
virtual ~ISettingCallback ()=default
 
virtual void OnSettingAction (std::shared_ptr< const CSetting > setting)
 The given setting has been activated. More...
 
virtual void OnSettingPropertyChanged (std::shared_ptr< const CSetting > setting, const char *propertyName)
 The given property of the given setting has changed. More...
 

Constructor & Destructor Documentation

◆ CNetworkServices()

CNetworkServices::CNetworkServices ( )

◆ ~CNetworkServices()

CNetworkServices::~CNetworkServices ( )
override

Member Function Documentation

◆ IsAirPlayServerRunning()

bool CNetworkServices::IsAirPlayServerRunning ( )

◆ IsAirTunesServerRunning()

bool CNetworkServices::IsAirTunesServerRunning ( )

◆ IsEventServerRunning()

bool CNetworkServices::IsEventServerRunning ( )

◆ IsJSONRPCServerRunning()

bool CNetworkServices::IsJSONRPCServerRunning ( )

◆ IsRssRunning()

bool CNetworkServices::IsRssRunning ( )

◆ IsUPnPClientRunning()

bool CNetworkServices::IsUPnPClientRunning ( )

◆ IsUPnPControllerRunning()

bool CNetworkServices::IsUPnPControllerRunning ( )

◆ IsUPnPRendererRunning()

bool CNetworkServices::IsUPnPRendererRunning ( )

◆ IsUPnPServerRunning()

bool CNetworkServices::IsUPnPServerRunning ( )

◆ IsWebserverRunning()

bool CNetworkServices::IsWebserverRunning ( )

◆ IsZeroconfRunning()

bool CNetworkServices::IsZeroconfRunning ( )

◆ OnSettingChanged()

void CNetworkServices::OnSettingChanged ( std::shared_ptr< const CSetting setting)
overridevirtual

The value of the given setting has changed.

This callback is triggered whenever the value of a setting has been successfully changed (i.e. none of the OnSettingChanging() handlers) has reverted the change.

Parameters
settingThe setting whose value has been changed
Todo:
  • General way of handling setting changes that require restart

Reimplemented from ISettingCallback.

◆ OnSettingChanging()

bool CNetworkServices::OnSettingChanging ( std::shared_ptr< const CSetting setting)
overridevirtual

The value of the given setting is being changed.

This callback is triggered whenever the value of a setting is being changed. The given CSetting already contains the new value and the handler of the callback has the possibility to allow or revert changing the value of the setting. In case of a revert OnSettingChanging() is called again to inform all listeners that the value change has been reverted.

Parameters
settingThe setting whose value is being changed (already containing the changed value)
Returns
True if the new value is acceptable otherwise false

Reimplemented from ISettingCallback.

◆ OnSettingUpdate()

bool CNetworkServices::OnSettingUpdate ( std::shared_ptr< CSetting setting,
const char *  oldSettingId,
const TiXmlNode *  oldSettingNode 
)
overridevirtual

The given setting needs to be updated.

This callback is triggered when a setting needs to be updated because its value is outdated. This only happens when initially loading the value of a setting and will not be triggered afterwards.

Parameters
settingThe setting which needs to be updated.
oldSettingIdThe id of the previous setting.
oldSettingNodeThe old setting node
Returns
True if the setting has been successfully updated otherwise false

Reimplemented from ISettingCallback.

◆ RefreshEventServer()

bool CNetworkServices::RefreshEventServer ( )

◆ Start()

void CNetworkServices::Start ( void  )

◆ StartAirPlayServer()

bool CNetworkServices::StartAirPlayServer ( )

◆ StartAirTunesServer()

bool CNetworkServices::StartAirTunesServer ( )

◆ StartEventServer()

bool CNetworkServices::StartEventServer ( )

◆ StartJSONRPCServer()

bool CNetworkServices::StartJSONRPCServer ( )

◆ StartRss()

bool CNetworkServices::StartRss ( )

◆ StartUPnP()

bool CNetworkServices::StartUPnP ( )

◆ StartUPnPClient()

bool CNetworkServices::StartUPnPClient ( )

◆ StartUPnPController()

bool CNetworkServices::StartUPnPController ( )

◆ StartUPnPRenderer()

bool CNetworkServices::StartUPnPRenderer ( )

◆ StartUPnPServer()

bool CNetworkServices::StartUPnPServer ( )

◆ StartWebserver()

bool CNetworkServices::StartWebserver ( )

◆ StartZeroconf()

bool CNetworkServices::StartZeroconf ( )

◆ Stop()

void CNetworkServices::Stop ( bool  bWait)

◆ StopAirPlayServer()

bool CNetworkServices::StopAirPlayServer ( bool  bWait)

◆ StopAirTunesServer()

bool CNetworkServices::StopAirTunesServer ( bool  bWait)

◆ StopEventServer()

bool CNetworkServices::StopEventServer ( bool  bWait,
bool  promptuser 
)

◆ StopJSONRPCServer()

bool CNetworkServices::StopJSONRPCServer ( bool  bWait)

◆ StopRss()

bool CNetworkServices::StopRss ( )

◆ StopUPnP()

bool CNetworkServices::StopUPnP ( bool  bWait)

◆ StopUPnPClient()

bool CNetworkServices::StopUPnPClient ( )

◆ StopUPnPController()

bool CNetworkServices::StopUPnPController ( )

◆ StopUPnPRenderer()

bool CNetworkServices::StopUPnPRenderer ( )

◆ StopUPnPServer()

bool CNetworkServices::StopUPnPServer ( )

◆ StopWebserver()

bool CNetworkServices::StopWebserver ( )

◆ StopZeroconf()

bool CNetworkServices::StopZeroconf ( )

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