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