CYINetworkInformationBridge contains functions relating to device network state.
#include <network/YiNetworkInformationBridge.h>
Public Types | |
| enum | NETWORK_TYPE { NO_CONNECTION, WIFI, MOBILE, WIRED, OTHER, UNKNOWN } |
| enum | MOBILE_NETWORK_TYPE { MOBILE_NETWORK_TYPE_NOT_APPLICABLE, MOBILE_NETWORK_TYPE_2G, MOBILE_NETWORK_TYPE_3G, MOBILE_NETWORK_TYPE_4G, MOBILE_NETWORK_TYPE_UNKNOWN } |
Public Member Functions | |
| virtual | ~CYINetworkInformationBridge () |
| virtual void | StartNetworkStateListener ()=0 |
| virtual void | StopNetworkStateListener ()=0 |
| virtual NETWORK_TYPE | GetNetworkType ()=0 |
| virtual void | SetNetworkType (NETWORK_TYPE eNetworkType)=0 |
| virtual MOBILE_NETWORK_TYPE | GetMobileNetworkType () const =0 |
| virtual void | RefreshNetworkState ()=0 |
| virtual CYIConnectivity & | GetConnectivity ()=0 |
| virtual void | SetNetworkActivityIndicatorOn ()=0 |
| virtual void | SetNetworkActivityIndicatorOff ()=0 |
| virtual bool | HasNetworkStateListenerStarted ()=0 |
| virtual bool | HasCellularNetworkSupport ()=0 |
The type of network connection reported by the device.
|
inlinevirtual |
|
pure virtual |
Returns an object that can be used to actively check network connectivity.
|
pure virtual |
Returns the current CYINetworkInformationBridge::MOBILE_NETWORK_TYPE if the network type is mobile; CYINetworkInformationBridge::MOBILE_NETWORK_TYPE_NOT_APPLICABLE otherwise.
|
pure virtual |
Returns the current CYINetworkInformationBridge::NETWORK_TYPE.
|
pure virtual |
Returns true if the device supports a cellular network and false otherwise.
|
pure virtual |
Returns true if the network state listener has started and false otherwise.
|
pure virtual |
Refreshes the network state using the current network state.
|
pure virtual |
Set Network Activity indicator off.
|
pure virtual |
Set Network Activity indicator on.
|
pure virtual |
|
pure virtual |
Starts the network state listener.
|
pure virtual |
Stops the network state listener.
| CYISignal<const CYINetworkInformationBridge::MOBILE_NETWORK_TYPE , const CYINetworkInformationBridge::MOBILE_NETWORK_TYPE > CYINetworkInformationBridge::MobileNetworkTypeChanged |
Signals a change in mobile network state. The first parameter is the new state and the second parameter is the old state.
| CYISignal<const CYINetworkInformationBridge::NETWORK_TYPE , const CYINetworkInformationBridge::NETWORK_TYPE > CYINetworkInformationBridge::NetworkStateChanged |
Signals a change in network state. The first parameter is the new state and the second parameter is the old state.