summaryrefslogtreecommitdiffstats
path: root/src/network/kernel/qnetworkinformation_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/kernel/qnetworkinformation_p.h')
-rw-r--r--src/network/kernel/qnetworkinformation_p.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkinformation_p.h b/src/network/kernel/qnetworkinformation_p.h
index 8cb31e6641..c71e7787a4 100644
--- a/src/network/kernel/qnetworkinformation_p.h
+++ b/src/network/kernel/qnetworkinformation_p.h
@@ -70,9 +70,11 @@ public:
virtual QNetworkInformation::Features featuresSupported() const = 0;
QNetworkInformation::Reachability reachability() const { return m_reachability; }
+ QNetworkInformation::TriState behindCaptivePortal() const { return m_behindCaptivePortal; }
Q_SIGNALS:
void reachabilityChanged();
+ void behindCaptivePortalChanged();
protected:
void setReachability(QNetworkInformation::Reachability reachability)
@@ -83,8 +85,18 @@ protected:
}
}
+ void setBehindCaptivePortal(QNetworkInformation::TriState behindPortal)
+ {
+ if (m_behindCaptivePortal != behindPortal) {
+ m_behindCaptivePortal = behindPortal;
+ emit behindCaptivePortalChanged();
+ }
+ }
+
private:
QNetworkInformation::Reachability m_reachability = QNetworkInformation::Reachability::Unknown;
+ QNetworkInformation::TriState m_behindCaptivePortal =
+ QNetworkInformation::TriState::Unknown;
Q_DISABLE_COPY_MOVE(QNetworkInformationBackend)
friend class QNetworkInformation;