diff options
| author | Niklas | 2011-09-02 17:06:02 +0200 |
|---|---|---|
| committer | Niklas | 2011-09-02 17:06:02 +0200 |
| commit | 603f6e47b2be2b5e03e63f6bee9c6364c92a251e (patch) | |
| tree | 1cc7c4583e54691b031fe9de3a5e68f7a4bbddf3 /LogReceiver/interfaceconfiguration.h | |
| parent | just minor changes. deltions of unuseful comments (diff) | |
| download | fbgui-603f6e47b2be2b5e03e63f6bee9c6364c92a251e.tar.gz fbgui-603f6e47b2be2b5e03e63f6bee9c6364c92a251e.tar.xz fbgui-603f6e47b2be2b5e03e63f6bee9c6364c92a251e.zip | |
added a new container class which holds config informations about an interface. also solved the message loss problem by setting the read an writing messages to the same size
Diffstat (limited to 'LogReceiver/interfaceconfiguration.h')
| -rw-r--r-- | LogReceiver/interfaceconfiguration.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/LogReceiver/interfaceconfiguration.h b/LogReceiver/interfaceconfiguration.h new file mode 100644 index 0000000..d12bd14 --- /dev/null +++ b/LogReceiver/interfaceconfiguration.h @@ -0,0 +1,53 @@ +/* + * 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(); + 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 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_ */ |
