author | tille <tille> | 2003-05-26 11:56:02 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-26 11:56:02 (UTC) |
commit | 60dae558c1b3df55ff08614fa170212cd9cd679d (patch) (side-by-side diff) | |
tree | 01ef5e2a809985658151215bca25b66d77e29f24 | |
parent | 71b76a1c9144b1d844774e1b8175e16f5c0a64dc (diff) | |
download | opie-60dae558c1b3df55ff08614fa170212cd9cd679d.zip opie-60dae558c1b3df55ff08614fa170212cd9cd679d.tar.gz opie-60dae558c1b3df55ff08614fa170212cd9cd679d.tar.bz2 |
add setInterfaceName
-rw-r--r-- | noncore/settings/networksettings/interfaces/interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/interfaces/interface.h b/noncore/settings/networksettings/interfaces/interface.h index d37834a..bb5de9d 100644 --- a/noncore/settings/networksettings/interfaces/interface.h +++ b/noncore/settings/networksettings/interfaces/interface.h @@ -1,67 +1,68 @@ #ifndef INTERFACE_H #define INTERFACE_H #include <qstring.h> #include <qobject.h> class Module; class Interface : public QObject{ Q_OBJECT signals: void updateInterface(Interface *i); void updateMessage(const QString &message); public: Interface(QObject * parent=0, const char * name= "unknown", bool status = false); QString getInterfaceName() const { QString n(this->name()); return n; }; + void setInterfaceName( const QString &n ) { this->setName(n); }; bool getStatus() const { return status; }; void setStatus(bool newStatus); bool isAttached() const { return attached; }; void setAttached(bool isAttached=false); QString getHardwareName() const { return hardwareName; }; void setHardwareName(const QString &name="Unknown"); Module* getModuleOwner() const { return moduleOwner; }; void setModuleOwner(Module *owner=NULL); // inet information. 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; }; public slots: bool refresh(); void start(); void stop(); void restart(); private: // Interface information QString hardwareName; Module *moduleOwner; bool status; bool attached; // Network information bool dhcp; QString dhcpServerIp; QString leaseObtained; QString leaseExpires; QString macAddress; QString ip; QString broadcast; QString subnetMask; }; |