-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterfaceWifiClient.h
More file actions
41 lines (34 loc) · 1.01 KB
/
InterfaceWifiClient.h
File metadata and controls
41 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* @file InterfaceWifiClient.cpp
* @brief An interface for wifi client only
*
* Wifi client interface headers
*
* @author Amine BAGGA (2025)
*/
#ifndef __INTERFACE_WIFI_CLIENT__
#define __INTERFACE_WIFI_CLIENT__
#include <string>
#include <mutex>
#include <map>
#include "Interface.h"
#include "ConfigurableInterface.h"
#include "ConfigurableWifiInterface.h"
class InterfaceWifiClient : public Interface, public ConfigurableInterface, public ConfigurableWifiInterface {
public:
InterfaceWifiClient(const std::string&);
virtual ~InterfaceWifiClient();
void setWifi(const bool enable);
void setDiscovery(const bool discovery);
void setDiscoveryList(const std::map<std::string, int>& discoveryList);
bool getWifi() const;
bool getDiscovery() const;
std::map<std::string, int> getDiscoveryList() const;
protected:
bool m_wifiEnabled;
bool m_discoveryEnabled;
std::map<std::string, int> m_discoveryList;
private:
std::mutex* m_mutex;
};
#endif // __INTERFACE_WIFI_CLIENT__