mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Ref T295, QNetworkConfiguration as string
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include <QNetworkRequest>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkConfiguration>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QtGlobal>
|
||||
@@ -159,6 +160,18 @@ namespace BlackMisc
|
||||
//! \remark that can take a moment to complete, as it checks network
|
||||
static BlackMisc::CStatusMessageList createNetworkReport(const CUrl &url, const QNetworkAccessManager *am = nullptr);
|
||||
|
||||
//! Configuration as string
|
||||
static QString networkConfigurationToString(const QNetworkConfiguration &configuration);
|
||||
|
||||
//! Type to string
|
||||
static const QString &networkTypeToString(QNetworkConfiguration::Type type);
|
||||
|
||||
//! State to string
|
||||
static const QString &networkStateToString(QNetworkConfiguration::StateFlag state);
|
||||
|
||||
//! States to string
|
||||
static QString networkStatesToString(QNetworkConfiguration::StateFlags states);
|
||||
|
||||
private:
|
||||
//! Hidden constructor
|
||||
CNetworkUtils() {}
|
||||
|
||||
Reference in New Issue
Block a user