-
Notifications
You must be signed in to change notification settings - Fork 0
/
wifidatachannel.h
61 lines (46 loc) · 1.42 KB
/
wifidatachannel.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef WIFIDATACHANNEL_H
#define WIFIDATACHANNEL_H
#include "datachannel.h"
class WifiDataChannel: DataChannel
{
public:
/**
* /@brief WiDataChannel constructor
* @param ip The ip address related to the channel
* @param gateway The gateway related to the channel
* @param netmask The netmask related to the channel
*/
WifiDataChannel(const char* ip,const char* gateway,const char* netmask);
/**
* @brief Start the network manager
*/
~WifiDataChannel();
/**
* @brief configureChannel Configures the ip, gateway and netmask of the wifi adapter channel
*/
void configureChannel();
/**
* @brief restoreChannelConfiguration Restores the channel original configuration
*/
void restoreChannelConfiguration();
/**
* @brief getAdhocNetworkName Returns the name of the Adhoc-Network
* @return The name of the Adhoc-Network
*/
const char* getAdhocNetworkName();
private:
// The ip related to the adapter
const char* ip;
// The gateway related to the adapter
const char* gateway;
// The netmask related to the adapter
const char* netmask;
// Ad-hoc network name
const char* adhocNetworkName;
/**
* @brief executeSystemCommand Executes the provided command
* @param command: The command to be executed
**/
void executeSystemCommand(const char* command);
};
#endif // WIFIDATACHANNEL_H