From d08a0ede1d2cb15bb14b0ff75eacf5c682b1fa0a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 6 Dec 2011 12:36:58 -0600 Subject: Initial import of year-and-a-half-old upstream version 0.9.6a --- src/vpnaccountdata.h | 689 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 689 insertions(+) create mode 100644 src/vpnaccountdata.h (limited to 'src/vpnaccountdata.h') diff --git a/src/vpnaccountdata.h b/src/vpnaccountdata.h new file mode 100644 index 0000000..ed83ce7 --- /dev/null +++ b/src/vpnaccountdata.h @@ -0,0 +1,689 @@ +/*************************************************************************** +* Copyright (C) 2004 by Christoph Thielecke * +* crissi99@gmx.de * +* * +* 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. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program; if not, write to the * +* Free Software Foundation, Inc., * +* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * +***************************************************************************/ +#ifndef VPNACCOUNTDATA_H +#define VPNACCOUNTDATA_H + +#include +#include +#include + +/** +* holds the data for a account +* @author Christoph Thielecke +*/ +class VpnAccountData : public QObject +{ +public: + enum ConnectionType {cisco=0, racoon=1, freeswan=2, pptp=3,openvpn=4,l2tpd_racoon=5,l2tpd_freeswan=6,ciscoorig=7,vtun=8,ssh=9,other=99}; + enum AuthenticationType {cert=0, psk=1, hybrid=2, unknownauth=99}; + enum L2tpDaemonType { l2tpd=0, openl2tp=1}; + + /** + * Konstruktor + * @param ConnType Type (cisco, freeswan,racoon, etc) + * @param Name The name of the account + * @param Gateway The hostname/IP of the VPN gateway + * @return nothing + */ + VpnAccountData( ConnectionType ConnType, const QString &Name); + + /** + * Destruktor + */ + ~VpnAccountData(); + + /* + Copy constructor + */ + VpnAccountData(const VpnAccountData&); + + ConnectionType getConnectionType() const; //< returns Connection type + QString getName() const; //< returns Name + QString getGateway() const; //< returns Gateway + QString getID() const; //< returns ID + QString getUserName() const; //< returns UserName + QString getUserPassword() const; //< returns UserPassword + QString getIkeGroup() const; //< returns IkeGroup + QString getEncryptionAlgorithm() const; //< returns EncryptionAlgorithm + QString getAuthenticationAlgorithm() const; //< returns AuthenticationAlgorithm + QString getPerfectForwardSecrety() const; //< returns PerfectForwardSecrecy + QString getNtDomainName() const; //< returns NtDomainName + QString getApplicationVersion() const; //< returns ApplicationVersion + QString getRemoteNetAddr() const; //