summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/interfaces/interface.h
Side-by-side diff
Diffstat (limited to 'noncore/net/networksetup/interfaces/interface.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/interfaces/interface.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/noncore/net/networksetup/interfaces/interface.h b/noncore/net/networksetup/interfaces/interface.h
index 989d6d8..d37834a 100644
--- a/noncore/net/networksetup/interfaces/interface.h
+++ b/noncore/net/networksetup/interfaces/interface.h
@@ -18,14 +18,14 @@ public:
- QString getInterfaceName(){ QString n(this->name()); return n; };
+ QString getInterfaceName() const { QString n(this->name()); return n; };
- bool getStatus(){ return status; };
+ bool getStatus() const { return status; };
void setStatus(bool newStatus);
- bool isAttached(){ return attached; };
+ bool isAttached() const { return attached; };
void setAttached(bool isAttached=false);
- QString getHardwareName(){ return hardwareName; };
+ QString getHardwareName() const { return hardwareName; };
void setHardwareName(const QString &name="Unknown");
- Module* getModuleOwner(){ return moduleOwner; };
+ Module* getModuleOwner() const { return moduleOwner; };
void setModuleOwner(Module *owner=NULL);
@@ -33,10 +33,10 @@ public:
// 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; };
+ QString getMacAddress() const { return macAddress; };
+ QString getIp() const { return ip; };
+ QString getSubnetMask() const { return subnetMask; };
+ QString getBroadcast() const { return broadcast; };
+ bool isDhcp() const { return dhcp; };
+ QString getDhcpServerIp() const { return dhcpServerIp; };
+ QString getLeaseObtained() const { return leaseObtained; };
+ QString getLeaseExpires() const { return leaseExpires; };
@@ -50,12 +50,8 @@ private:
// Interface information
- bool status;
- bool attached;
QString hardwareName;
Module *moduleOwner;
-
+ bool status;
+ bool attached;
+
// Network information
- QString macAddress;
- QString ip;
- QString broadcast;
- QString subnetMask;
bool dhcp;
@@ -65,2 +61,7 @@ private:
+ QString macAddress;
+ QString ip;
+ QString broadcast;
+ QString subnetMask;
+
};