summaryrefslogtreecommitdiff
authorbenmeyer <benmeyer>2003-01-13 19:06:10 (UTC)
committer benmeyer <benmeyer>2003-01-13 19:06:10 (UTC)
commit4cd81644fb2ac8cd91e4dd79c2274656f5bfe81a (patch) (side-by-side diff)
treeb6bf6c6dabb627d7a52691a25de50a701c088c7c
parent90706ff3edbf0c30856bb9786e69a6d3a0e0867a (diff)
downloadopie-4cd81644fb2ac8cd91e4dd79c2274656f5bfe81a.zip
opie-4cd81644fb2ac8cd91e4dd79c2274656f5bfe81a.tar.gz
opie-4cd81644fb2ac8cd91e4dd79c2274656f5bfe81a.tar.bz2
test new header
Diffstat (more/less context) (show 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 @@
+/**
+ * $Author$
+ * $Date$
+ * $Name$
+ */
+
#include "interface.h"
#include <qdatetime.h>
#include <qfile.h>
#include <qdir.h>
#include <qfileinfo.h>
#include <qtextstream.h>
#define IFCONFIG "/sbin/ifconfig"
#define DHCP_INFO_DIR "/etc/dhcpc"
#include <stdio.h>
#include <stdlib.h>
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"){
refresh();
}
/**
* Set status
* @param newStatus - the new status
* emit updateInterface
*/
void Interface::setStatus(bool newStatus){
if(status != newStatus){
status = newStatus;
refresh();
}
};
/**
* Set if attached or not (802.11 card pulled out for example)
* @param isAttached - if attached
* emit updateInterface
*/
void Interface::setAttached(bool isAttached){
attached = isAttached;
emit(updateInterface(this));
};
/**
* Set Hardware name
* @param name - the new name
* emit updateInterface
*/
void Interface::setHardwareName(const QString &name){
hardwareName = name;
emit(updateInterface(this));
};