summaryrefslogtreecommitdiffstats
path: root/knetworkconf/knetworkconf/knetworkinterface.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit37333bf25ad9a4c538250f5af2f9f1d666362883 (patch)
treec45e8df5b9efbffe07eb3d9340df7811c7e16943 /knetworkconf/knetworkconf/knetworkinterface.cpp
downloadtdeadmin-37333bf2.tar.gz
tdeadmin-37333bf2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knetworkconf/knetworkconf/knetworkinterface.cpp')
-rw-r--r--knetworkconf/knetworkconf/knetworkinterface.cpp104
1 files changed, 104 insertions, 0 deletions
diff --git a/knetworkconf/knetworkconf/knetworkinterface.cpp b/knetworkconf/knetworkconf/knetworkinterface.cpp
new file mode 100644
index 0000000..4e48c27
--- /dev/null
+++ b/knetworkconf/knetworkconf/knetworkinterface.cpp
@@ -0,0 +1,104 @@
+/***************************************************************************
+ knetworkinterface.cpp - description
+ -------------------
+ begin : Mon Jan 13 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 "knetworkinterface.h"
+
+KNetworkInterface::KNetworkInterface(){
+}
+KNetworkInterface::~KNetworkInterface(){
+}
+
+QString KNetworkInterface::getBootProto(){
+ return bootProto;
+}
+QString KNetworkInterface::getBroadcast(){
+ return broadcast;
+}
+QString KNetworkInterface::getDeviceName(){
+ return deviceName;
+}
+QString KNetworkInterface::getIpAddress(){
+ return ipAddress;
+}
+QString KNetworkInterface::getNetmask(){
+ return netmask;
+}
+QString KNetworkInterface::getNetwork(){
+ return network;
+}
+QString KNetworkInterface::getOnBoot(){
+ return onBoot;
+}
+QString KNetworkInterface::getGateway(){
+ return gateway;
+}
+
+void KNetworkInterface::setBootProto(const QString &bootProto){
+ KNetworkInterface::bootProto = bootProto;
+}
+void KNetworkInterface::setBroadcast(const QString &broadcast){
+ KNetworkInterface::broadcast = broadcast;
+}
+void KNetworkInterface::setDeviceName(const QString &deviceName){
+ KNetworkInterface::deviceName = deviceName;
+}
+void KNetworkInterface::setIpAddress(const QString &ipAddress){
+ KNetworkInterface::ipAddress = ipAddress;
+}
+void KNetworkInterface::setNetmask(const QString &netmask){
+ KNetworkInterface::netmask = netmask;
+}
+void KNetworkInterface::setNetwork(const QString &network){
+ KNetworkInterface::network = network;
+}
+void KNetworkInterface::setOnBoot(const QString &onBoot){
+ KNetworkInterface::onBoot = onBoot;
+}
+void KNetworkInterface::setGateway(const QString &gateway){
+ KNetworkInterface::gateway = gateway;
+}
+bool KNetworkInterface::isActive(){
+ return active;
+}
+void KNetworkInterface::setActive(bool active){
+ KNetworkInterface::active = active;
+}
+/** No descriptions */
+QString KNetworkInterface::getMacAddress(){
+ return hwAddress;
+}
+/** No descriptions */
+void KNetworkInterface::setMacAddress(const QString &addr){
+ KNetworkInterface::hwAddress = addr;
+}
+/** No descriptions */
+QString KNetworkInterface::getDescription(){
+ return description;
+}
+/** No descriptions */
+void KNetworkInterface::setDescription(const QString &desc){
+ KNetworkInterface::description = desc;
+}
+
+/** No descriptions */
+QString KNetworkInterface::getType(){
+ return type;
+}
+/** No descriptions */
+void KNetworkInterface::setType(const QString &type){
+ KNetworkInterface::type = type;
+}