Diffstat (limited to 'noncore/settings/networksettings/interfaces') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/interfaces/interface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/interfaces/interface.cpp b/noncore/settings/networksettings/interfaces/interface.cpp index d964961..3af521c 100644 --- a/noncore/settings/networksettings/interfaces/interface.cpp +++ b/noncore/settings/networksettings/interfaces/interface.cpp | |||
@@ -1,24 +1,30 @@ | |||
1 | /** | ||
2 | * $Author$ | ||
3 | * $Date$ | ||
4 | * $Name$ | ||
5 | */ | ||
6 | |||
1 | #include "interface.h" | 7 | #include "interface.h" |
2 | #include <qdatetime.h> | 8 | #include <qdatetime.h> |
3 | #include <qfile.h> | 9 | #include <qfile.h> |
4 | #include <qdir.h> | 10 | #include <qdir.h> |
5 | #include <qfileinfo.h> | 11 | #include <qfileinfo.h> |
6 | #include <qtextstream.h> | 12 | #include <qtextstream.h> |
7 | 13 | ||
8 | #define IFCONFIG "/sbin/ifconfig" | 14 | #define IFCONFIG "/sbin/ifconfig" |
9 | #define DHCP_INFO_DIR "/etc/dhcpc" | 15 | #define DHCP_INFO_DIR "/etc/dhcpc" |
10 | 16 | ||
11 | #include <stdio.h> | 17 | #include <stdio.h> |
12 | #include <stdlib.h> | 18 | #include <stdlib.h> |
13 | 19 | ||
14 | Interface::Interface(QObject * parent, const char * name, bool newSatus): QObject(parent, name), hardwareName("Unknown"), moduleOwner(NULL), status(newSatus), attached(false), dhcp(false), macAddress(""), ip("0.0.0.0"), broadcast(""), subnetMask("0.0.0.0"){ | 20 | Interface::Interface(QObject * parent, const char * name, bool newSatus): QObject(parent, name), hardwareName("Unknown"), moduleOwner(NULL), status(newSatus), attached(false), dhcp(false), macAddress(""), ip("0.0.0.0"), broadcast(""), subnetMask("0.0.0.0"){ |
15 | refresh(); | 21 | refresh(); |
16 | } | 22 | } |
17 | 23 | ||
18 | /** | 24 | /** |
19 | * Set status | 25 | * Set status |
20 | * @param newStatus - the new status | 26 | * @param newStatus - the new status |
21 | * emit updateInterface | 27 | * emit updateInterface |
22 | */ | 28 | */ |
23 | void Interface::setStatus(bool newStatus){ | 29 | void Interface::setStatus(bool newStatus){ |
24 | if(status != newStatus){ | 30 | if(status != newStatus){ |