author | benmeyer <benmeyer> | 2002-10-25 19:34:32 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-25 19:34:32 (UTC) |
commit | f16dd7fc272f3f8354dc696fcc881dfe74755a21 (patch) (side-by-side diff) | |
tree | edaab125b322744d8684e6aee4d2c5955b68689b /noncore/net/networksetup/interface.h | |
parent | 77347ba522a5913ff17561e6fd2c15981d42e86b (diff) | |
download | opie-f16dd7fc272f3f8354dc696fcc881dfe74755a21.zip opie-f16dd7fc272f3f8354dc696fcc881dfe74755a21.tar.gz opie-f16dd7fc272f3f8354dc696fcc881dfe74755a21.tar.bz2 |
Moved Interfaces into a library
Diffstat (limited to 'noncore/net/networksetup/interface.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/networksetup/interface.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/noncore/net/networksetup/interface.h b/noncore/net/networksetup/interface.h deleted file mode 100644 index dc9c6d3..0000000 --- a/noncore/net/networksetup/interface.h +++ b/dev/null @@ -1,71 +0,0 @@ -#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); - -public: - Interface(QObject * parent=0, const char * name= "unknown", bool status = false); - virtual ~Interface(){}; - - virtual QString getInterfaceName(){ QString n(this->name()); return n; }; - - virtual bool getStatus(){ return status; }; - virtual void setStatus(bool newStatus); - - virtual bool isAttached(){ return attached; }; - virtual void setAttached(bool isAttached=false); - - virtual QString getHardwareName(){ return hardwareName; }; - virtual void setHardwareName(QString name="Unknown"); - - virtual Module* getModuleOwner(){ return moduleOwner; }; - virtual void setModuleOwner(Module *owner=NULL); - - // 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; }; - -public slots: - bool refresh(); - void start(); - void stop(); - void restart(); - -private: - // Interface information - bool status; - bool attached; - QString hardwareName; - Module *moduleOwner; - - // Network information - QString macAddress; - QString ip; - QString broadcast; - QString subnetMask; - bool dhcp; - QString dhcpServerIp; - QString leaseObtained; - QString leaseExpires; - -}; - -#endif - -// interface.h - |