connectivity-cpp
0.0.1
|
networking manager More...
#include <com/ubuntu/connectivity/networking/manager.h>
Public Types | |
enum | NetworkingStatus { NetworkingStatus::offline, NetworkingStatus::connecting, NetworkingStatus::online } |
enum class for networking status More... | |
Public Member Functions | |
Manager & | operator= (const Manager &)=delete |
virtual | ~Manager ()=default |
Manager (const Manager &)=delete | |
virtual const core::Property < NetworkingStatus > & | status ()=0 |
virtual const core::Property < std::uint32_t > & | characteristics ()=0 |
Static Public Member Functions | |
static std::unique_ptr< Manager > | createInstance () |
Creates a new instance of a networking Manager. More... | |
Protected Member Functions | |
Manager () | |
The default constructor is protected. More... | |
networking manager
This is the top-level manager class for accessing networking information.
A new instance of this class can only be created using the static Manager::createInstance().
For system networking status, see Manager::status. For connection characteristics, see Manager::characteristics.
Examples:
enum class for networking status
Networking status may be accessed through the Manager::status property.
Enumerator | |
---|---|
offline |
No Internet connection available. |
connecting |
System is actively establising a connection. |
online |
System is connected to the Internet. |
|
virtualdefault |
|
delete |
|
protected |
The default constructor is protected.
To create an instance of the networking manager call Manager::createInstance().
|
pure virtual |
characteristics of the overall system networking
the value is a bitfield and the individial bits are defined in Link::Characteristics.
|
static |
Creates a new instance of a networking Manager.
Applications should call this function just once. If application needs to share the instance internally the std::unique_ptr can be transformed into a std::shared_ptr:
|
pure virtual |
status of the overall system networking