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