nl:: Weave:: DeviceLayer:: Internal:: GenericConnectivityManagerImpl_NoTunnel
#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/GenericConnectivityManagerImpl_NoTunnel.h>
Provides a generic implementation of service tunnel-specific ConnectivityManager features for platforms that don't support a service tunnel.
Summary
This class is intended to be inherited (directly or indirectly) by the ConnectivityManagerImpl class, which also appears as the template's ImplClass parameter.
The members of this class are all inlined methods that do nothing, and return static return values. This allows the compiler to optimize away dead code without the use of #ifdef's. For example:
``` if (ConnectivityMgr().GetServiceTunnelMode() != ConnectivityManager::kWoBLEServiceMode_NotSupported) { // ... do something on devices that support service tunnels ... } ```
Public functions |
|
---|---|
_GetServiceTunnelMode(void)
|
ConnectivityManager::ServiceTunnelMode
|
_HaveServiceConnectivityViaTunnel(void)
|
bool
|
_IsServiceTunnelConnected(void)
|
bool
|
_IsServiceTunnelRestricted(void)
|
bool
|
_SetServiceTunnelMode(ConnectivityManager::ServiceTunnelMode val)
|
Public static functions |
|
---|---|
_ServiceTunnelModeToStr(ConnectivityManager::ServiceTunnelMode mode)
|
const char *
|
Public functions
_GetServiceTunnelMode
ConnectivityManager::ServiceTunnelMode _GetServiceTunnelMode( void )
_HaveServiceConnectivityViaTunnel
bool _HaveServiceConnectivityViaTunnel( void )
_IsServiceTunnelConnected
bool _IsServiceTunnelConnected( void )
_IsServiceTunnelRestricted
bool _IsServiceTunnelRestricted( void )
_SetServiceTunnelMode
WEAVE_ERROR _SetServiceTunnelMode( ConnectivityManager::ServiceTunnelMode val )
Public static functions
_ServiceTunnelModeToStr
const char * _ServiceTunnelModeToStr( ConnectivityManager::ServiceTunnelMode mode )