Diffstat (limited to 'noncore/net/networksetup/interfaces/interface.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/interfaces/interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/net/networksetup/interfaces/interface.h b/noncore/net/networksetup/interfaces/interface.h index dc9c6d3..fc064fe 100644 --- a/noncore/net/networksetup/interfaces/interface.h +++ b/noncore/net/networksetup/interfaces/interface.h | |||
@@ -1,38 +1,39 @@ | |||
1 | #ifndef INTERFACE_H | 1 | #ifndef INTERFACE_H |
2 | #define INTERFACE_H | 2 | #define INTERFACE_H |
3 | 3 | ||
4 | #include <qstring.h> | 4 | #include <qstring.h> |
5 | #include <qobject.h> | 5 | #include <qobject.h> |
6 | 6 | ||
7 | class Module; | 7 | class Module; |
8 | 8 | ||
9 | class Interface : public QObject{ | 9 | class Interface : public QObject{ |
10 | Q_OBJECT | 10 | Q_OBJECT |
11 | 11 | ||
12 | signals: | 12 | signals: |
13 | void updateInterface(Interface *i); | 13 | void updateInterface(Interface *i); |
14 | 14 | void updateMessage(const QString &message); | |
15 | |||
15 | public: | 16 | public: |
16 | Interface(QObject * parent=0, const char * name= "unknown", bool status = false); | 17 | Interface(QObject * parent=0, const char * name= "unknown", bool status = false); |
17 | virtual ~Interface(){}; | 18 | virtual ~Interface(){}; |
18 | 19 | ||
19 | virtual QString getInterfaceName(){ QString n(this->name()); return n; }; | 20 | virtual QString getInterfaceName(){ QString n(this->name()); return n; }; |
20 | 21 | ||
21 | virtual bool getStatus(){ return status; }; | 22 | virtual bool getStatus(){ return status; }; |
22 | virtual void setStatus(bool newStatus); | 23 | virtual void setStatus(bool newStatus); |
23 | 24 | ||
24 | virtual bool isAttached(){ return attached; }; | 25 | virtual bool isAttached(){ return attached; }; |
25 | virtual void setAttached(bool isAttached=false); | 26 | virtual void setAttached(bool isAttached=false); |
26 | 27 | ||
27 | virtual QString getHardwareName(){ return hardwareName; }; | 28 | virtual QString getHardwareName(){ return hardwareName; }; |
28 | virtual void setHardwareName(QString name="Unknown"); | 29 | virtual void setHardwareName(QString name="Unknown"); |
29 | 30 | ||
30 | virtual Module* getModuleOwner(){ return moduleOwner; }; | 31 | virtual Module* getModuleOwner(){ return moduleOwner; }; |
31 | virtual void setModuleOwner(Module *owner=NULL); | 32 | virtual void setModuleOwner(Module *owner=NULL); |
32 | 33 | ||
33 | // inet information. | 34 | // inet information. |
34 | QString getMacAddress(){ return macAddress; }; | 35 | QString getMacAddress(){ return macAddress; }; |
35 | QString getIp(){ return ip; }; | 36 | QString getIp(){ return ip; }; |
36 | QString getSubnetMask(){ return subnetMask; }; | 37 | QString getSubnetMask(){ return subnetMask; }; |
37 | QString getBroadcast(){ return broadcast; }; | 38 | QString getBroadcast(){ return broadcast; }; |
38 | bool isDhcp(){ return dhcp; }; | 39 | bool isDhcp(){ return dhcp; }; |