ubuntu::connectivity::NetworkingStatus
QObject
Private public QObject
ubuntu/connectivity/networking-status.h
Limitations
Bandwith

indicates that the bandwith of the Internet connection has limitations. Applications should minimize their bandwith usage if possible.

enum for networking limitations

Networking limitations may be accessed through the NetworkingStatus::limitations property.

Status
Offline

No Internet connection available.

Connecting

System is actively establising a connection.

Online

System is connected to the Internet.

enum for networking status

Networking status may be accessed through the NetworkingStatus::status property.

NetworkingStatus & NetworkingStatus& ubuntu::connectivity::NetworkingStatus::p p
connectivityqt::Connectivity::SPtr connectivityqt::Connectivity::SPtr ubuntu::connectivity::NetworkingStatus::m_connectivity m_connectivity
QVector< Limitations > QVector< NetworkingStatus::Limitations > ubuntu::connectivity::NetworkingStatus::limitations limitations limitations

limitations of the overall system networking

{} limitations() limitationsChanged()

    //normalgetter
    if(ns->limitations().isEmpty())
    qDebug()<<"Nolimitations";

    //Subscribetolimitationchanges
    QObject::connect(ns.data(),
    &Connectivity::limitationsUpdated,
    [&ns](){
    if(ns->limitations().isEmpty())
    {
    qDebug()<<"Nolimitations.";
    return;
    }

    qDebug()<<"Limitations:";
    if(ns->limitations().contains(Connectivity::Limitations::Bandwith))
    {
    qDebug()<<"-Bandwith";
    }
    });

ubuntu::connectivity::NetworkingStatus::Status NetworkingStatus::Status ubuntu::connectivity::NetworkingStatus::status status status

status of the overall system networking

NetworkingStatus::Online status() statusChanged()

    //normalgetter
    if(ns->status()==Connectivity::Status::Online)
    {
    qDebug()<<"Weareonline.";
    }

    //Subscribetosystemnetworkingchanges
    QObject::connect(ns.data(),
    &Connectivity::statusUpdated,
    [](Connectivity::Statusvalue)
    {
    qDebug()<<"Systemnetworkingstatuschangedto:"+STATUS_MAP[value];
    });

QScopedPointer< Private > QScopedPointer<Private> ubuntu::connectivity::NetworkingStatus::d d
ubuntu::connectivity::NetworkingStatus::Private
(NetworkingStatus &parent)
Private
NetworkingStatus & parent
ubuntu::connectivity::NetworkingStatus::NetworkingStatus
(QObject *parent=0)
NetworkingStatus
QObject * parent 0
ubuntu::connectivity::NetworkingStatus::~NetworkingStatus
()
~NetworkingStatus
Q_DECL_DEPRECATED QVector< Limitations > Q_DECL_DEPRECATED QVector<Limitations> ubuntu::connectivity::NetworkingStatus::limitations () const limitations

NetworkingStatus::limitations

Q_DECL_DEPRECATED Status Q_DECL_DEPRECATED Status ubuntu::connectivity::NetworkingStatus::status () const status

NetworkingStatus::status

void void ubuntu::connectivity::NetworkingStatus::limitationsUpdated (const QVector< connectivityqt::Connectivity::Limitations > &) limitationsUpdated const QVector< connectivityqt::Connectivity::Limitations > &
void void ubuntu::connectivity::NetworkingStatus::statusUpdated (connectivityqt::Connectivity::Status value) statusUpdated connectivityqt::Connectivity::Status value
Q_DECL_DEPRECATED void Q_DECL_DEPRECATED void ubuntu::connectivity::NetworkingStatus::limitationsChanged () limitationsChanged

NetworkingStatus::limitations

Q_DECL_DEPRECATED void Q_DECL_DEPRECATED void ubuntu::connectivity::NetworkingStatus::statusChanged (Status value) statusChanged Status value

NetworkingStatus::status

Overall system networking status.

NOTE: This class is deprecated, please move to using connectivityqt::Connectivity

This is the top-level class for accessing networking information.

- For system networking status, see NetworkingStatus::status.

- For connection limitations, see NetworkingStatus::limitations.

Examples:

- Getting the networking status.

QObject
ubuntu::connectivity::NetworkingStatus
Private public QObject
QObject
ubuntu::connectivity::NetworkingStatus
p
Private public QObject
- ubuntu::connectivity::NetworkingStatus
  Bandwith
- ubuntu::connectivity::NetworkingStatus
  Connecting
- ubuntu::connectivity::NetworkingStatus
  d
- ubuntu::connectivity::NetworkingStatus
  limitations
- ubuntu::connectivity::NetworkingStatus
  limitations
- ubuntu::connectivity::NetworkingStatus
  Limitations
- ubuntu::connectivity::NetworkingStatus
  limitationsChanged
- ubuntu::connectivity::NetworkingStatus
  limitationsUpdated
- ubuntu::connectivity::NetworkingStatus
  m_connectivity
- ubuntu::connectivity::NetworkingStatus
  NetworkingStatus
- ubuntu::connectivity::NetworkingStatus
  Offline
- ubuntu::connectivity::NetworkingStatus
  Online
- ubuntu::connectivity::NetworkingStatus
  p
- ubuntu::connectivity::NetworkingStatus
  Private
- ubuntu::connectivity::NetworkingStatus
  status
- ubuntu::connectivity::NetworkingStatus
  status
- ubuntu::connectivity::NetworkingStatus
  Status
- ubuntu::connectivity::NetworkingStatus
  statusChanged
- ubuntu::connectivity::NetworkingStatus
  statusUpdated
- ubuntu::connectivity::NetworkingStatus
  ~NetworkingStatus