summaryrefslogtreecommitdiff
authorbenmeyer <benmeyer>2003-01-13 19:06:10 (UTC)
committer benmeyer <benmeyer>2003-01-13 19:06:10 (UTC)
commit4cd81644fb2ac8cd91e4dd79c2274656f5bfe81a (patch) (unidiff)
treeb6bf6c6dabb627d7a52691a25de50a701c088c7c
parent90706ff3edbf0c30856bb9786e69a6d3a0e0867a (diff)
downloadopie-4cd81644fb2ac8cd91e4dd79c2274656f5bfe81a.zip
opie-4cd81644fb2ac8cd91e4dd79c2274656f5bfe81a.tar.gz
opie-4cd81644fb2ac8cd91e4dd79c2274656f5bfe81a.tar.bz2
test new header
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/interfaces/interface.cpp6
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,48 +1,54 @@
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
14Interface::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"){
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 */
23void Interface::setStatus(bool newStatus){ 29void Interface::setStatus(bool newStatus){
24 if(status != newStatus){ 30 if(status != newStatus){
25 status = newStatus; 31 status = newStatus;
26 refresh(); 32 refresh();
27 } 33 }
28}; 34};
29 35
30/** 36/**
31 * 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)
32 * @param isAttached - if attached 38 * @param isAttached - if attached
33 * emit updateInterface 39 * emit updateInterface
34 */ 40 */
35void Interface::setAttached(bool isAttached){ 41void Interface::setAttached(bool isAttached){
36 attached = isAttached; 42 attached = isAttached;
37 emit(updateInterface(this)); 43 emit(updateInterface(this));
38}; 44};
39 45
40/** 46/**
41 * Set Hardware name 47 * Set Hardware name
42 * @param name - the new name 48 * @param name - the new name
43 * emit updateInterface 49 * emit updateInterface
44 */ 50 */
45void Interface::setHardwareName(const QString &name){ 51void Interface::setHardwareName(const QString &name){
46 hardwareName = name; 52 hardwareName = name;
47 emit(updateInterface(this)); 53 emit(updateInterface(this));
48}; 54};