diff options
Diffstat (limited to 'knetworkconf/knetworkconf/kknownhostinfo.cpp')
-rw-r--r-- | knetworkconf/knetworkconf/kknownhostinfo.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/knetworkconf/knetworkconf/kknownhostinfo.cpp b/knetworkconf/knetworkconf/kknownhostinfo.cpp new file mode 100644 index 0000000..7e779f1 --- /dev/null +++ b/knetworkconf/knetworkconf/kknownhostinfo.cpp @@ -0,0 +1,42 @@ +/*************************************************************************** + KKnownHostInfo.cpp - description + ------------------- + begin : Sun May 11 2003 + copyright : (C) 2003 by Juan Luis Baptiste + email : juancho@linuxmail.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 "kknownhostinfo.h" + +KKnownHostInfo::KKnownHostInfo(){ +} +KKnownHostInfo::~KKnownHostInfo(){ +} +/** No descriptions */ +QString KKnownHostInfo::getIpAddress(){ + return ipAddress; +} + +QStringList KKnownHostInfo::getAliases(){ + return aliases; +} +void KKnownHostInfo::setIpAddress(QString ipAddress){ + KKnownHostInfo::ipAddress = ipAddress; +} + +void KKnownHostInfo::addAlias(QString alias){ + KKnownHostInfo::aliases.append(alias); +} + +void KKnownHostInfo::setAliases(QStringList aliases){ + KKnownHostInfo::aliases = aliases; +} |