author | benmeyer <benmeyer> | 2003-01-13 19:12:57 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2003-01-13 19:12:57 (UTC) |
commit | b20f74522d02434b4f6aa6dce8079cbdae98765d (patch) (unidiff) | |
tree | 7439f8c6b0263bc184647165ea910cb93bd74c4e | |
parent | 6ea855813c745e139866d05542ec6b8fc5819720 (diff) | |
download | opie-b20f74522d02434b4f6aa6dce8079cbdae98765d.zip opie-b20f74522d02434b4f6aa6dce8079cbdae98765d.tar.gz opie-b20f74522d02434b4f6aa6dce8079cbdae98765d.tar.bz2 |
test
-rw-r--r-- | noncore/settings/networksettings/interfaces/interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/interfaces/interface.cpp b/noncore/settings/networksettings/interfaces/interface.cpp index f0d93d6..032819b 100644 --- a/noncore/settings/networksettings/interfaces/interface.cpp +++ b/noncore/settings/networksettings/interfaces/interface.cpp | |||
@@ -1,69 +1,69 @@ | |||
1 | /** | 1 | /** |
2 | * $Author$ | 2 | * $Author$ |
3 | * $Date$ | 3 | * $Date$ |
4 | * $Id$ | 4 | * $Id$ |
5 | * $Name$ | 5 | * $Source$ |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "interface.h" | 8 | #include "interface.h" |
9 | #include <qdatetime.h> | 9 | #include <qdatetime.h> |
10 | #include <qfile.h> | 10 | #include <qfile.h> |
11 | #include <qdir.h> | 11 | #include <qdir.h> |
12 | #include <qfileinfo.h> | 12 | #include <qfileinfo.h> |
13 | #include <qtextstream.h> | 13 | #include <qtextstream.h> |
14 | 14 | ||
15 | #define IFCONFIG "/sbin/ifconfig" | 15 | #define IFCONFIG "/sbin/ifconfig" |
16 | #define DHCP_INFO_DIR "/etc/dhcpc" | 16 | #define DHCP_INFO_DIR "/etc/dhcpc" |
17 | 17 | ||
18 | #include <stdio.h> | 18 | #include <stdio.h> |
19 | #include <stdlib.h> | 19 | #include <stdlib.h> |
20 | 20 | ||
21 | 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"){ | 21 | 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"){ |
22 | refresh(); | 22 | refresh(); |
23 | } | 23 | } |
24 | 24 | ||
25 | /** | 25 | /** |
26 | * Set status | 26 | * Set status |
27 | * @param newStatus - the new status | 27 | * @param newStatus - the new status |
28 | * emit updateInterface | 28 | * emit updateInterface |
29 | */ | 29 | */ |
30 | void Interface::setStatus(bool newStatus){ | 30 | void Interface::setStatus(bool newStatus){ |
31 | if(status != newStatus){ | 31 | if(status != newStatus){ |
32 | status = newStatus; | 32 | status = newStatus; |
33 | refresh(); | 33 | refresh(); |
34 | } | 34 | } |
35 | }; | 35 | }; |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * Set if attached or not (802.11 card pulled out for example) | 38 | * Set if attached or not (802.11 card pulled out for example) |
39 | * @param isAttached - if attached | 39 | * @param isAttached - if attached |
40 | * emit updateInterface | 40 | * emit updateInterface |
41 | */ | 41 | */ |
42 | void Interface::setAttached(bool isAttached){ | 42 | void Interface::setAttached(bool isAttached){ |
43 | attached = isAttached; | 43 | attached = isAttached; |
44 | emit(updateInterface(this)); | 44 | emit(updateInterface(this)); |
45 | }; | 45 | }; |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * Set Hardware name | 48 | * Set Hardware name |
49 | * @param name - the new name | 49 | * @param name - the new name |
50 | * emit updateInterface | 50 | * emit updateInterface |
51 | */ | 51 | */ |
52 | void Interface::setHardwareName(const QString &name){ | 52 | void Interface::setHardwareName(const QString &name){ |
53 | hardwareName = name; | 53 | hardwareName = name; |
54 | emit(updateInterface(this)); | 54 | emit(updateInterface(this)); |
55 | }; | 55 | }; |
56 | 56 | ||
57 | /** | 57 | /** |
58 | * Set Module owner | 58 | * Set Module owner |
59 | * @param owner - the new owner | 59 | * @param owner - the new owner |
60 | * emit updateInterface | 60 | * emit updateInterface |
61 | */ | 61 | */ |
62 | void Interface::setModuleOwner(Module *owner){ | 62 | void Interface::setModuleOwner(Module *owner){ |
63 | moduleOwner = owner; | 63 | moduleOwner = owner; |
64 | emit(updateInterface(this)); | 64 | emit(updateInterface(this)); |
65 | }; | 65 | }; |
66 | 66 | ||
67 | 67 | ||
68 | /** | 68 | /** |
69 | * Try to start the interface. | 69 | * Try to start the interface. |