author | tille <tille> | 2003-05-26 11:56:02 (UTC) |
---|---|---|
committer | tille <tille> | 2003-05-26 11:56:02 (UTC) |
commit | 60dae558c1b3df55ff08614fa170212cd9cd679d (patch) (unidiff) | |
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,72 +1,73 @@ | |||
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 | void updateMessage(const QString &message); | 14 | void updateMessage(const QString &message); |
15 | 15 | ||
16 | public: | 16 | public: |
17 | Interface(QObject * parent=0, const char * name= "unknown", bool status = false); | 17 | Interface(QObject * parent=0, const char * name= "unknown", bool status = false); |
18 | 18 | ||
19 | QString getInterfaceName() const { QString n(this->name()); return n; }; | 19 | QString getInterfaceName() const { QString n(this->name()); return n; }; |
20 | void setInterfaceName( const QString &n ) { this->setName(n); }; | ||
20 | 21 | ||
21 | bool getStatus() const { return status; }; | 22 | bool getStatus() const { return status; }; |
22 | void setStatus(bool newStatus); | 23 | void setStatus(bool newStatus); |
23 | 24 | ||
24 | bool isAttached() const { return attached; }; | 25 | bool isAttached() const { return attached; }; |
25 | void setAttached(bool isAttached=false); | 26 | void setAttached(bool isAttached=false); |
26 | 27 | ||
27 | QString getHardwareName() const { return hardwareName; }; | 28 | QString getHardwareName() const { return hardwareName; }; |
28 | void setHardwareName(const QString &name="Unknown"); | 29 | void setHardwareName(const QString &name="Unknown"); |
29 | 30 | ||
30 | Module* getModuleOwner() const { return moduleOwner; }; | 31 | Module* getModuleOwner() const { return moduleOwner; }; |
31 | void setModuleOwner(Module *owner=NULL); | 32 | void setModuleOwner(Module *owner=NULL); |
32 | 33 | ||
33 | // inet information. | 34 | // inet information. |
34 | QString getMacAddress() const { return macAddress; }; | 35 | QString getMacAddress() const { return macAddress; }; |
35 | QString getIp() const { return ip; }; | 36 | QString getIp() const { return ip; }; |
36 | QString getSubnetMask() const { return subnetMask; }; | 37 | QString getSubnetMask() const { return subnetMask; }; |
37 | QString getBroadcast() const { return broadcast; }; | 38 | QString getBroadcast() const { return broadcast; }; |
38 | bool isDhcp() const { return dhcp; }; | 39 | bool isDhcp() const { return dhcp; }; |
39 | QString getDhcpServerIp() const { return dhcpServerIp; }; | 40 | QString getDhcpServerIp() const { return dhcpServerIp; }; |
40 | QString getLeaseObtained() const { return leaseObtained; }; | 41 | QString getLeaseObtained() const { return leaseObtained; }; |
41 | QString getLeaseExpires() const { return leaseExpires; }; | 42 | QString getLeaseExpires() const { return leaseExpires; }; |
42 | 43 | ||
43 | public slots: | 44 | public slots: |
44 | bool refresh(); | 45 | bool refresh(); |
45 | void start(); | 46 | void start(); |
46 | void stop(); | 47 | void stop(); |
47 | void restart(); | 48 | void restart(); |
48 | 49 | ||
49 | private: | 50 | private: |
50 | // Interface information | 51 | // Interface information |
51 | QString hardwareName; | 52 | QString hardwareName; |
52 | Module *moduleOwner; | 53 | Module *moduleOwner; |
53 | bool status; | 54 | bool status; |
54 | bool attached; | 55 | bool attached; |
55 | 56 | ||
56 | // Network information | 57 | // Network information |
57 | bool dhcp; | 58 | bool dhcp; |
58 | QString dhcpServerIp; | 59 | QString dhcpServerIp; |
59 | QString leaseObtained; | 60 | QString leaseObtained; |
60 | QString leaseExpires; | 61 | QString leaseExpires; |
61 | 62 | ||
62 | QString macAddress; | 63 | QString macAddress; |
63 | QString ip; | 64 | QString ip; |
64 | QString broadcast; | 65 | QString broadcast; |
65 | QString subnetMask; | 66 | QString subnetMask; |
66 | 67 | ||
67 | }; | 68 | }; |
68 | 69 | ||
69 | #endif | 70 | #endif |
70 | 71 | ||
71 | // interface.h | 72 | // interface.h |
72 | 73 | ||