-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterfaceServer.h
More file actions
40 lines (33 loc) · 782 Bytes
/
Copy pathInterfaceServer.h
File metadata and controls
40 lines (33 loc) · 782 Bytes
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
/**
* @file InterfaceServer.h
* @brief An interface for server configuration
*
* Server configuration interface headers
*
* @author Amine BAGGA (2025)
*/
#ifndef __INTERFACE_SERVER__
#define __INTERFACE_SERVER__
#include <string>
#include <mutex>
class InterfaceServer {
public:
InterfaceServer();
virtual ~InterfaceServer();
void setPortModeBridge(const bool);
void setSsh(const bool);
void setDhcp(const bool);
void setNtpServer(const std::string&);
bool getPortModeBridge() const;
bool getSsh() const;
bool getDhcp() const;
std::string getNtpServer() const;
protected:
bool m_portModeBridge;
bool m_ssh;
bool m_dhcp;
std::string m_ntpServer;
private:
std::mutex* m_mutex;
};
#endif // __INTERFACE_SERVER__