/*************************************************************************** * 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 TQObject { 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 TQString &Name); /** * Destruktor */ ~VpnAccountData(); /* Copy constructor */ VpnAccountData(const VpnAccountData&); ConnectionType getConnectionType() const; //< returns Connection type TQString getName() const; //< returns Name TQString getGateway() const; //< returns Gateway TQString getID() const; //< returns ID TQString getUserName() const; //< returns UserName TQString getUserPassword() const; //< returns UserPassword TQString getIkeGroup() const; //< returns IkeGroup TQString getEncryptionAlgorithm() const; //< returns EncryptionAlgorithm TQString getAuthenticationAlgorithm() const; //< returns AuthenticationAlgorithm TQString getPerfectForwardSecrety() const; //< returns PerfectForwardSecrecy TQString getNtDomainName() const; //< returns NtDomainName TQString getApplicationVersion() const; //< returns ApplicationVersion TQString getRemoteNetAddr() const; //