AusweisApp
 
Lade ...
Suche ...
Keine Treffer
WifiInfo.h
gehe zur Dokumentation dieser Datei
1
4
5#pragma once
6
7#include <QHostAddress>
8#include <QObject>
9
10class test_WifiInfo;
11
12namespace governikus
13{
14
16 : public QObject
17{
18 Q_OBJECT
19 friend class ::test_WifiInfo;
20
21 private:
22 bool mWifiEnabled;
23#if defined(Q_OS_ANDROID)
24 int mWifiCheckTimerId;
25#endif
26
27 static bool isPrivateIp(const QHostAddress& pAddress);
28 static bool hasPrivateIpAddress();
29
30 [[nodiscard]] bool getCurrentWifiEnabled() const;
31
32#if defined(Q_OS_ANDROID)
33
34 protected:
35 void timerEvent(QTimerEvent* pEvent) override;
36#endif
37
38 public:
39 WifiInfo();
40 ~WifiInfo() override = default;
41
42 [[nodiscard]] bool isWifiEnabled() const;
43
44 Q_SIGNALS:
45 void fireWifiEnabledChanged(bool pEnabled);
46};
47
48
49} // namespace governikus
bool isWifiEnabled() const
Definition WifiInfo_android.cpp:71
WifiInfo()
Definition WifiInfo_android.cpp:19
void fireWifiEnabledChanged(bool pEnabled)
~WifiInfo() override=default
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17