lomiri::connectivity::NetworkingStatus
QObject
lomiri/connectivity/networking-status.h
lomiri::connectivity::NetworkingStatus::Private
Limitations
lomiri::connectivity::NetworkingStatus::Limitations
Bandwidth

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

enum for networking limitations

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

Status
lomiri::connectivity::NetworkingStatus::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.

QVector< Limitations > QVector<Limitations> lomiri::connectivity::NetworkingStatus::limitations limitations lomiri::connectivity::NetworkingStatus::limitations limitations

limitations of the overall system networking

@initvalue {} @accessors limitations() @notify 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::Bandwidth))
    {
    qDebug()<<"-Bandwidth";
    }
    });

lomiri::connectivity::NetworkingStatus::Status lomiri::connectivity::NetworkingStatus::Status lomiri::connectivity::NetworkingStatus::status status lomiri::connectivity::NetworkingStatus::status status

status of the overall system networking

@initvalue NetworkingStatus::Online @accessors status() @notify 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> lomiri::connectivity::NetworkingStatus::d d lomiri::connectivity::NetworkingStatus::d
lomiri::connectivity::NetworkingStatus::NetworkingStatus
(QObject *parent=0)
NetworkingStatus
lomiri::connectivity::NetworkingStatus::NetworkingStatus
QObject * parent 0
lomiri::connectivity::NetworkingStatus::~NetworkingStatus
()
~NetworkingStatus
lomiri::connectivity::NetworkingStatus::~NetworkingStatus
Q_DECL_DEPRECATED QVector< Limitations > QVector< NetworkingStatus::Limitations > lomiri::connectivity::NetworkingStatus::limitations () const limitations lomiri::connectivity::NetworkingStatus::limitations

NetworkingStatus::limitations

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

NetworkingStatus::status

Q_DECL_DEPRECATED void Q_DECL_DEPRECATED void lomiri::connectivity::NetworkingStatus::limitationsChanged () limitationsChanged lomiri::connectivity::NetworkingStatus::limitationsChanged

NetworkingStatus::limitations

Q_DECL_DEPRECATED void Q_DECL_DEPRECATED void lomiri::connectivity::NetworkingStatus::statusChanged (Status value) statusChanged lomiri::connectivity::NetworkingStatus::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
lomiri::connectivity::NetworkingStatus
QObject
lomiri::connectivity::NetworkingStatus
- lomiri::connectivity::NetworkingStatus
  Bandwidth
- lomiri::connectivity::NetworkingStatus
  Connecting
- lomiri::connectivity::NetworkingStatus
  d
- lomiri::connectivity::NetworkingStatus
  Limitations
- lomiri::connectivity::NetworkingStatus
  limitations
- lomiri::connectivity::NetworkingStatus
  limitations
- lomiri::connectivity::NetworkingStatus
  limitationsChanged
- lomiri::connectivity::NetworkingStatus
  NetworkingStatus
- lomiri::connectivity::NetworkingStatus
  Offline
- lomiri::connectivity::NetworkingStatus
  Online
- lomiri::connectivity::NetworkingStatus
  Status
- lomiri::connectivity::NetworkingStatus
  status
- lomiri::connectivity::NetworkingStatus
  status
- lomiri::connectivity::NetworkingStatus
  statusChanged
- lomiri::connectivity::NetworkingStatus
  ~NetworkingStatus