Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CNetworkInterface Class Referenceabstract

#include <Network.h>

Inheritance diagram for CNetworkInterface:
CNetworkInterfaceAndroid CNetworkInterfaceLinux CNetworkInterfaceWin10 CNetworkInterfaceWin32

Public Member Functions

virtual ~CNetworkInterface ()=default
 
virtual const std::string & GetName (void) const =0
 
virtual bool IsEnabled (void) const =0
 
virtual bool IsConnected (void) const =0
 
virtual bool IsWireless (void) const =0
 
virtual std::string GetMacAddress (void) const =0
 
virtual void GetMacAddressRaw (char rawMac[6]) const =0
 
virtual bool GetHostMacAddress (unsigned long host, std::string &mac) const =0
 
virtual std::string GetCurrentIPAddress () const =0
 
virtual std::string GetCurrentNetmask () const =0
 
virtual std::string GetCurrentDefaultGateway (void) const =0
 
virtual std::string GetCurrentWirelessEssId (void) const =0
 
virtual std::vector< NetworkAccessPointGetAccessPoints (void) const =0
 
virtual void GetSettings (NetworkAssignment &assignment, std::string &ipAddress, std::string &networkMask, std::string &defaultGateway, std::string &essId, std::string &key, EncMode &encryptionMode) const =0
 
virtual void SetSettings (const NetworkAssignment &assignment, const std::string &ipAddress, const std::string &networkMask, const std::string &defaultGateway, const std::string &essId, const std::string &key, const EncMode &encryptionMode)=0
 

Constructor & Destructor Documentation

◆ ~CNetworkInterface()

virtual CNetworkInterface::~CNetworkInterface ( )
virtualdefault

Member Function Documentation

◆ GetAccessPoints()

virtual std::vector< NetworkAccessPoint > CNetworkInterface::GetAccessPoints ( void  ) const
pure virtual

◆ GetCurrentDefaultGateway()

virtual std::string CNetworkInterface::GetCurrentDefaultGateway ( void  ) const
pure virtual

◆ GetCurrentIPAddress()

virtual std::string CNetworkInterface::GetCurrentIPAddress ( ) const
pure virtual

◆ GetCurrentNetmask()

virtual std::string CNetworkInterface::GetCurrentNetmask ( ) const
pure virtual

◆ GetCurrentWirelessEssId()

virtual std::string CNetworkInterface::GetCurrentWirelessEssId ( void  ) const
pure virtual

◆ GetHostMacAddress()

virtual bool CNetworkInterface::GetHostMacAddress ( unsigned long  host,
std::string &  mac 
) const
pure virtual

◆ GetMacAddress()

virtual std::string CNetworkInterface::GetMacAddress ( void  ) const
pure virtual

◆ GetMacAddressRaw()

virtual void CNetworkInterface::GetMacAddressRaw ( char  rawMac[6]) const
pure virtual

◆ GetName()

virtual const std::string & CNetworkInterface::GetName ( void  ) const
pure virtual

◆ GetSettings()

virtual void CNetworkInterface::GetSettings ( NetworkAssignment assignment,
std::string &  ipAddress,
std::string &  networkMask,
std::string &  defaultGateway,
std::string &  essId,
std::string &  key,
EncMode encryptionMode 
) const
pure virtual

◆ IsConnected()

virtual bool CNetworkInterface::IsConnected ( void  ) const
pure virtual

◆ IsEnabled()

virtual bool CNetworkInterface::IsEnabled ( void  ) const
pure virtual

◆ IsWireless()

virtual bool CNetworkInterface::IsWireless ( void  ) const
pure virtual

◆ SetSettings()

virtual void CNetworkInterface::SetSettings ( const NetworkAssignment assignment,
const std::string &  ipAddress,
const std::string &  networkMask,
const std::string &  defaultGateway,
const std::string &  essId,
const std::string &  key,
const EncMode encryptionMode 
)
pure virtual

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