Diffstat (limited to 'noncore/net/networksetup/interface.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/interface.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/net/networksetup/interface.h b/noncore/net/networksetup/interface.h index 1ad71eb..5dc95a4 100644 --- a/noncore/net/networksetup/interface.h +++ b/noncore/net/networksetup/interface.h @@ -1,60 +1,61 @@ #ifndef INTERFACE_H #define INTERFACE_H #include <qstring.h> +class Module; class Interface { public: Interface(QString name = "unknown", bool status = false); virtual ~Interface(){}; virtual bool getStatus(){ return status; }; virtual void setStatus(bool newSatus){ status = newSatus; refresh(); }; virtual bool isAttached(){ return attached; }; virtual void setAttached(bool isAttached=false){ attached = isAttached; }; virtual QString getInterfaceName(){ return interfaceName; }; virtual void setInterfaceName(QString name="unknown"){ interfaceName = name; }; virtual QString getHardwareName(){ return hardareName; }; virtual void setHardwareName(QString name="Unknown"){ hardareName = name; }; - virtual QString getModuleOwner(){ return moduleOwner; }; - virtual void setModuleOwner(QString owner="Default"){ moduleOwner = owner; }; + virtual Module* getModuleOwner(){ return moduleOwner; }; + virtual void setModuleOwner(Module *owner=NULL){ moduleOwner = owner; }; // inet information. QString getMacAddress(){ return macAddress; }; QString getIp(){ return ip; }; QString getSubnetMask(){ return subnetMask; }; QString getBroadcast(){ return broadcast; }; bool isDhcp(){ return dhcp; }; QString getDhcpServerIp(){ return dhcpServerIp; }; QString getLeaseObtained(){ return leaseObtained; }; QString getLeaseExpires(){ return leaseExpires; }; bool refresh(); bool start(); bool stop(); bool restart(); private: // Interface information bool status; bool attached; QString interfaceName; QString hardareName; - QString moduleOwner; + Module *moduleOwner; // Network information QString macAddress; QString ip; QString broadcast; QString subnetMask; bool dhcp; QString dhcpServerIp; QString leaseObtained; QString leaseExpires; }; |