blob: 2656b3f996b0d23c9059551e123162c1d847479f (
plain) (
blame)
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
|
/*
* interfaceconfiguration.h
*
* Created on: Sep 2, 2011
* Author: niklas
*/
#ifndef INTERFACECONFIGURATION_H_
#define INTERFACECONFIGURATION_H_
#include <QtCore>
class interfaceconfiguration: public QObject {
Q_OBJECT
public:
interfaceconfiguration();
interfaceconfiguration(const interfaceconfiguration &other);
interfaceconfiguration &operator=(const interfaceconfiguration &other);
virtual ~interfaceconfiguration();
bool readConfigOutOfFile(QString pathToConfig);
QString getBroadcast();
QString getClientid();
QString getDhcpchaddr();
QString getDhcpsid();
QString getDnssearch();
QString getDnsservers();
QString getGateways();
QString getGateway();
QString getHostname();
QString getInterface();
QString getIpAddress();
QString getNetmask();
QString getNetwork();
QString getRoutes();
private:
QString _tag;
QString ipAddress;
QString netmask;
QString network;
QString broadcast;
QString routes;
QString gateway;
QString gateways;
QString hostname;
QString dnssearch;
QString dnsservers;
QString dhcpsid;
QString interface;
QString clientid;
QString dhcpchaddr;
};
#endif /* INTERFACECONFIGURATION_H_ */
|