AusweisApp2
WifiInfo.h
gehe zur Dokumentation dieser Datei
1
8
#pragma once
9
10
#include <QHostAddress>
11
#include <QObject>
12
13
#if defined(Q_OS_IOS)
14
#include <Network/Network.h>
15
#endif
16
17
class
test_WifiInfo;
18
19
namespace
governikus
20
{
21
22
class
WifiInfo
23
:
public
QObject
24
{
25
Q_OBJECT
26
27
private
:
28
friend
class ::test_WifiInfo;
29
bool
mWifiEnabled;
30
#if defined(Q_OS_ANDROID)
31
int
mWifiCheckTimerId;
32
#elif defined(Q_OS_IOS)
33
nw_path_monitor_t mMonitor;
34
#endif
35
36
static
bool
isPrivateIp(
const
QHostAddress& pAddress);
37
static
bool
hasPrivateIpAddress();
38
39
bool
getCurrentWifiEnabled();
40
41
#if defined(Q_OS_ANDROID)
42
43
protected
:
44
void
timerEvent(QTimerEvent* pEvent)
override
;
45
#endif
46
47
public
:
48
WifiInfo
();
49
#if defined(Q_OS_IOS)
50
virtual
~WifiInfo
()
override
;
51
#else
52
virtual
~WifiInfo
()
override
=
default
;
53
#endif
54
55
bool
isWifiEnabled
();
56
57
Q_SIGNALS:
58
void
fireWifiEnabledChanged
(
bool
pEnabled);
59
};
60
61
62
}
// namespace governikus
governikus::WifiInfo
Definition:
WifiInfo.h:24
governikus::WifiInfo::isWifiEnabled
bool isWifiEnabled()
Definition:
WifiInfo_android.cpp:71
WifiInfo.h
governikus::WifiInfo::~WifiInfo
virtual ~WifiInfo() override=default
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition:
ActivationContext.h:15
governikus::WifiInfo::fireWifiEnabledChanged
void fireWifiEnabledChanged(bool pEnabled)
governikus::WifiInfo::WifiInfo
WifiInfo()
Definition:
WifiInfo_android.cpp:19
src
network
WifiInfo.h
Erzeugt von
1.8.18