summaryrefslogtreecommitdiff
authorbenmeyer <benmeyer>2003-01-13 19:08:27 (UTC)
committer benmeyer <benmeyer>2003-01-13 19:08:27 (UTC)
commit0c29de3bd4eeaeb1bd250f8e72fc12ba8700a4c8 (patch) (unidiff)
tree9bc7fe1214ad2e93994bda3e7646ccc9a4013589
parentb5e3438b22606a00e17afd14674aa685739237c1 (diff)
downloadopie-0c29de3bd4eeaeb1bd250f8e72fc12ba8700a4c8.zip
opie-0c29de3bd4eeaeb1bd250f8e72fc12ba8700a4c8.tar.gz
opie-0c29de3bd4eeaeb1bd250f8e72fc12ba8700a4c8.tar.bz2
test
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/interfaces/interface.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/noncore/settings/networksettings/interfaces/interface.cpp b/noncore/settings/networksettings/interfaces/interface.cpp
index 864d9b5..2ace5fd 100644
--- a/noncore/settings/networksettings/interfaces/interface.cpp
+++ b/noncore/settings/networksettings/interfaces/interface.cpp
@@ -1,54 +1,52 @@
1$Header$
2
3/** 1/**
4 * $Author$ 2 * $Author$
5 * $Date$ 3 * $Date$
6 * $Name$ 4 * $Id$
7 */ 5 */
8 6
9#include "interface.h" 7#include "interface.h"
10#include <qdatetime.h> 8#include <qdatetime.h>
11#include <qfile.h> 9#include <qfile.h>
12#include <qdir.h> 10#include <qdir.h>
13#include <qfileinfo.h> 11#include <qfileinfo.h>
14#include <qtextstream.h> 12#include <qtextstream.h>
15 13
16#define IFCONFIG "/sbin/ifconfig" 14#define IFCONFIG "/sbin/ifconfig"
17#define DHCP_INFO_DIR "/etc/dhcpc" 15#define DHCP_INFO_DIR "/etc/dhcpc"
18 16
19#include <stdio.h> 17#include <stdio.h>
20#include <stdlib.h> 18#include <stdlib.h>
21 19
22Interface::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"){ 20Interface::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"){
23 refresh(); 21 refresh();
24} 22}
25 23
26/** 24/**
27 * Set status 25 * Set status
28 * @param newStatus - the new status 26 * @param newStatus - the new status
29 * emit updateInterface 27 * emit updateInterface
30 */ 28 */
31void Interface::setStatus(bool newStatus){ 29void Interface::setStatus(bool newStatus){
32 if(status != newStatus){ 30 if(status != newStatus){
33 status = newStatus; 31 status = newStatus;
34 refresh(); 32 refresh();
35 } 33 }
36}; 34};
37 35
38/** 36/**
39 * Set if attached or not (802.11 card pulled out for example) 37 * Set if attached or not (802.11 card pulled out for example)
40 * @param isAttached - if attached 38 * @param isAttached - if attached
41 * emit updateInterface 39 * emit updateInterface
42 */ 40 */
43void Interface::setAttached(bool isAttached){ 41void Interface::setAttached(bool isAttached){
44 attached = isAttached; 42 attached = isAttached;
45 emit(updateInterface(this)); 43 emit(updateInterface(this));
46}; 44};
47 45
48/** 46/**
49 * Set Hardware name 47 * Set Hardware name
50 * @param name - the new name 48 * @param name - the new name
51 * emit updateInterface 49 * emit updateInterface
52 */ 50 */
53void Interface::setHardwareName(const QString &name){ 51void Interface::setHardwareName(const QString &name){
54 hardwareName = name; 52 hardwareName = name;