summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/interfaces/interface.h
Unidiff
Diffstat (limited to 'noncore/net/networksetup/interfaces/interface.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/interfaces/interface.h72
1 files changed, 0 insertions, 72 deletions
diff --git a/noncore/net/networksetup/interfaces/interface.h b/noncore/net/networksetup/interfaces/interface.h
deleted file mode 100644
index d37834a..0000000
--- a/noncore/net/networksetup/interfaces/interface.h
+++ b/dev/null
@@ -1,72 +0,0 @@
1#ifndef INTERFACE_H
2#define INTERFACE_H
3
4#include <qstring.h>
5#include <qobject.h>
6
7class Module;
8
9class Interface : public QObject{
10 Q_OBJECT
11
12signals:
13 void updateInterface(Interface *i);
14 void updateMessage(const QString &message);
15
16public:
17 Interface(QObject * parent=0, const char * name= "unknown", bool status = false);
18
19 QString getInterfaceName() const { QString n(this->name()); return n; };
20
21 bool getStatus() const { return status; };
22 void setStatus(bool newStatus);
23
24 bool isAttached() const { return attached; };
25 void setAttached(bool isAttached=false);
26
27 QString getHardwareName() const { return hardwareName; };
28 void setHardwareName(const QString &name="Unknown");
29
30 Module* getModuleOwner() const { return moduleOwner; };
31 void setModuleOwner(Module *owner=NULL);
32
33 // inet information.
34 QString getMacAddress() const { return macAddress; };
35 QString getIp() const { return ip; };
36 QString getSubnetMask() const { return subnetMask; };
37 QString getBroadcast() const { return broadcast; };
38 bool isDhcp() const { return dhcp; };
39 QString getDhcpServerIp() const { return dhcpServerIp; };
40 QString getLeaseObtained() const { return leaseObtained; };
41 QString getLeaseExpires() const { return leaseExpires; };
42
43public slots:
44 bool refresh();
45 void start();
46 void stop();
47 void restart();
48
49private:
50 // Interface information
51 QString hardwareName;
52 Module *moduleOwner;
53 bool status;
54 bool attached;
55
56 // Network information
57 bool dhcp;
58 QString dhcpServerIp;
59 QString leaseObtained;
60 QString leaseExpires;
61
62 QString macAddress;
63 QString ip;
64 QString broadcast;
65 QString subnetMask;
66
67};
68
69#endif
70
71// interface.h
72