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