-rw-r--r-- | noncore/settings/networksettings/interfaces/interface.cpp | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings/opie-networksettings.control | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/noncore/settings/networksettings/interfaces/interface.cpp b/noncore/settings/networksettings/interfaces/interface.cpp index 032819b..cc45525 100644 --- a/noncore/settings/networksettings/interfaces/interface.cpp +++ b/noncore/settings/networksettings/interfaces/interface.cpp | |||
@@ -1,37 +1,35 @@ | |||
1 | /** | 1 | /** |
2 | * $Author$ | 2 | * $Author$ |
3 | * $Date$ | 3 | * $Date$ |
4 | * $Id$ | ||
5 | * $Source$ | ||
6 | */ | 4 | */ |
7 | 5 | ||
8 | #include "interface.h" | 6 | #include "interface.h" |
9 | #include <qdatetime.h> | 7 | #include <qdatetime.h> |
10 | #include <qfile.h> | 8 | #include <qfile.h> |
11 | #include <qdir.h> | 9 | #include <qdir.h> |
12 | #include <qfileinfo.h> | 10 | #include <qfileinfo.h> |
13 | #include <qtextstream.h> | 11 | #include <qtextstream.h> |
14 | 12 | ||
15 | #define IFCONFIG "/sbin/ifconfig" | 13 | #define IFCONFIG "/sbin/ifconfig" |
16 | #define DHCP_INFO_DIR "/etc/dhcpc" | 14 | #define DHCP_INFO_DIR "/etc/dhcpc" |
17 | 15 | ||
18 | #include <stdio.h> | 16 | #include <stdio.h> |
19 | #include <stdlib.h> | 17 | #include <stdlib.h> |
20 | 18 | ||
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"){ | 19 | 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(); | 20 | refresh(); |
23 | } | 21 | } |
24 | 22 | ||
25 | /** | 23 | /** |
26 | * Set status | 24 | * Set status |
27 | * @param newStatus - the new status | 25 | * @param newStatus - the new status |
28 | * emit updateInterface | 26 | * emit updateInterface |
29 | */ | 27 | */ |
30 | void Interface::setStatus(bool newStatus){ | 28 | void Interface::setStatus(bool newStatus){ |
31 | if(status != newStatus){ | 29 | if(status != newStatus){ |
32 | status = newStatus; | 30 | status = newStatus; |
33 | refresh(); | 31 | refresh(); |
34 | } | 32 | } |
35 | }; | 33 | }; |
36 | 34 | ||
37 | /** | 35 | /** |
diff --git a/noncore/settings/networksettings/opie-networksettings.control b/noncore/settings/networksettings/opie-networksettings.control index 8fa40c7..7635cd1 100644 --- a/noncore/settings/networksettings/opie-networksettings.control +++ b/noncore/settings/networksettings/opie-networksettings.control | |||
@@ -1,8 +1,9 @@ | |||
1 | Files: bin/networksettings apps/Settings/networksettings.desktop plugins/networksettings/* pics/networksettings/* pics/Network/PPPConnect.png $QTDIR/lib/libinterfaces.so.1.0.0 $QTDIR/lib/libinterfaces.so.1.0 $QTDIR/lib/libinterfaces.so.1 root/usr/bin/changedns bin/getprofile | 1 | Files: bin/networksettings apps/Settings/networksettings.desktop plugins/networksettings/* pics/networksettings/* pics/Network/PPPConnect.png $QTDIR/lib/libinterfaces.so.1.0.0 $QTDIR/lib/libinterfaces.so.1.0 $QTDIR/lib/libinterfaces.so.1 root/usr/bin/changedns bin/getprofile |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: opie/settings | 3 | Section: opie/settings |
4 | Maintainer: Ben Meyer <meyerb@sharpsec.com> | 4 | Maintainer: Ben Meyer <meyerb@sharpsec.com> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Depends: opie-base ($QPE_VERSION) | 7 | Depends: opie-base ($QPE_VERSION) |
8 | Description: Network settings | 8 | Description: Network settings. |
9 | Replaces: opie-networksetup | ||