You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeadmin/knetworkconf/knetworkconf/knetworkinfo.cpp

77 lines
2.5 KiB

/***************************************************************************
knetworkinfo.cpp - description
-------------------
begin : Fri Jan 17 2003
copyright : (C) 2003 by Juan Luis Baptiste
email : jbaptiste@merlinux.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "knetworkinfo.h"
KNetworkInfo::KNetworkInfo(){
}
KNetworkInfo::~KNetworkInfo(){
}
void KNetworkInfo::setDeviceList(TQPtrList<KNetworkInterface> deviceList){
KNetworkInfo::deviceList = deviceList;
}
void KNetworkInfo::setRoutingInfo(KRoutingInfo *routingInfo){
KNetworkInfo::routingInfo = routingInfo;
}
void KNetworkInfo::setDNSInfo(KDNSInfo *dnsInfo){
KNetworkInfo::dnsInfo = dnsInfo;
}
TQPtrList<KNetworkInterface> KNetworkInfo::getDeviceList(){
return deviceList;
}
KRoutingInfo * KNetworkInfo::getRoutingInfo(){
return routingInfo;
}
KDNSInfo * KNetworkInfo::getDNSInfo(){
return dnsInfo;
}
void KNetworkInfo::setNetworkScript(TQString script){
KNetworkInfo::networkScript = script;
}
TQString KNetworkInfo::getNetworkScript(){
return networkScript;
}
/** Returns the platform name KnetworkConf is running on. */
TQString KNetworkInfo::getPlatformName(){
return platformName;
}
/** Sets the platform name KNetworkConf is running on. */
void KNetworkInfo::setPlatformName(TQString name){
KNetworkInfo::platformName = name;
}
void KNetworkInfo::setProfilesList(TQPtrList<KNetworkInfo> profilesList){
KNetworkInfo::profilesList = profilesList;
}
TQPtrList<KNetworkInfo> KNetworkInfo::getProfilesList(){
return profilesList;
}
/** Returns the platform name KnetworkConf is running on. */
TQString KNetworkInfo::getProfileName(){
return profileName;
}
/** Sets the platform name KNetworkConf is running on. */
void KNetworkInfo::setProfileName(TQString profileName){
KNetworkInfo::profileName = profileName;
}