AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
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  int mWifiCheckTimerId;
27  int mWifiEnableWaitCounter;
28 
29  static bool isPrivateIp(const QHostAddress& pAddress);
30  bool getCurrentWifiEnabled();
31  bool shouldWifiEnabledBeCalled();
32  bool hasPrivateIpAddress() const;
33 
34  protected:
35  void timerEvent(QTimerEvent* pEvent) override;
36 
37  public:
38  WifiInfo();
39  virtual ~WifiInfo() override = default;
40 
41  bool isWifiEnabled();
42  void enableWifi();
43 
44  Q_SIGNALS:
45  void fireWifiEnabledChanged(bool pEnabled);
46 
47 };
48 
49 
50 }
void timerEvent(QTimerEvent *pEvent) override
Definition: WifiInfo_android.cpp:97
virtual ~WifiInfo() override=default
void fireWifiEnabledChanged(bool pEnabled)
bool isWifiEnabled()
Definition: WifiInfo_android.cpp:128
WifiInfo()
Definition: WifiInfo_android.cpp:20
void enableWifi()
Definition: WifiInfo_android.cpp:57
Definition: WifiInfo.h:18