summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/interface.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/interface.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings/interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/networksettings/interface.cpp b/noncore/settings/networksettings/interface.cpp
index f6eed00..5b21364 100644
--- a/noncore/settings/networksettings/interface.cpp
+++ b/noncore/settings/networksettings/interface.cpp
@@ -1,25 +1,25 @@
1#include "interface.h" 1#include "interface.h"
2#include <qdatetime.h> 2#include <qdatetime.h>
3#include <qfile.h> 3#include <qfile.h>
4#include <qfileinfo.h> 4#include <qfileinfo.h>
5#include <qtextstream.h> 5#include <qtextstream.h>
6 6
7#define IFCONFIG "/sbin/ifconfig" 7#define IFCONFIG "/sbin/ifconfig"
8#define HDCP_INFO_DIR "/etc/dhcpc" 8#define HDCP_INFO_DIR "/etc/dhcpc"
9 9
10#include <stdio.h> 10#include <stdio.h>
11#include <stdlib.h> 11#include <stdlib.h>
12 12
13Interface::Interface(QString name, bool newSatus): status(newSatus), attached(false), interfaceName(name), hardareName("Unknown"), moduleOwner("Default"), macAddress(""), ip("0.0.0.0"), broadcast(""), subnetMask("0.0.0.0"), dhcp(false){ 13Interface::Interface(QString name, bool newSatus): status(newSatus), attached(false), interfaceName(name), hardareName("Unknown"), moduleOwner(NULL), macAddress(""), ip("0.0.0.0"), broadcast(""), subnetMask("0.0.0.0"), dhcp(false){
14 refresh(); 14 refresh();
15} 15}
16 16
17/** 17/**
18 * Try to start the interface. 18 * Try to start the interface.
19 * @return bool true if successfull. 19 * @return bool true if successfull.
20 */ 20 */
21bool Interface::start(){ 21bool Interface::start(){
22 // check to see if we are already running. 22 // check to see if we are already running.
23 if(status) 23 if(status)
24 return false; 24 return false;
25 25