Added a text to display wifi status.
This commit is contained in:
parent
ca73f70b63
commit
b8201398e1
1 changed files with 267 additions and 18 deletions
17
wifihelper.h
Normal file
17
wifihelper.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef WIFIHELPER_H
|
||||
#define WIFIHELPER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class WiFiHelper : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit WiFiHelper(QObject *parent = nullptr);
|
||||
Q_INVOKABLE QString getWifiSsid();
|
||||
Q_INVOKABLE void requestPermissionsAndFetch();
|
||||
|
||||
signals:
|
||||
void ssidRetrieved(const QString &ssid);
|
||||
};
|
||||
#endif // WIFIHELPER_H
|
||||
Loading…
Reference in a new issue