17 lines
343 B
C
17 lines
343 B
C
|
|
#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
|