Book Image

QT5 Blueprints

By : Symeon Huang
Book Image

QT5 Blueprints

By: Symeon Huang

Overview of this book

Table of Contents (17 chapters)
Qt 5 Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Managing a system network session


In addition to networking applications, Qt also provides you with cross-platform APIs to control network interfaces and access points. Although it's not very common to control the network state, there are some certain situations where it's required to do this.

First, I'd like to introduce QNetworkConfigurationManager to you. This class manages the network configurations provided by the system. It enables you access to them, as well as to detect the system's capabilities during runtime. The network configuration is presented by the QNetworkConfiguration class, which abstracts a set of configuration options concerning how a network interface has to be configured in order to connect to the target network. To control the network session, you need to use the QNetworkSession class. This class provides you with control over the system's access points and enables session management. It also enables you to control network interfaces that are represented by the QNetworkInterface...