Main Page | Alphabetical List | Class List | File List | Class Members

connection.h

00001 /*
00002  * $Id: connection.h,v 1.3 2005/08/19 20:12:37 akos Exp $
00003  *
00004  * Copyright (C) 2005 by Akos Polster <akos@pipacs.com>
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful, but
00012  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00013  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00014  * for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License along
00017  * with this program; if not, write to the Free Software Foundation, Inc.,
00018  * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019  */
00020 
00021 #ifndef CONNECTION_H
00022 #define CONNECTION_H
00023 
00024 #include <qtopia/config.h>
00025 #include <qstring.h>
00026 #include <qwidget.h>
00027 
00035 class Connection
00036 {
00037 public:
00039     enum Err
00040     {
00041         OK,                     
00042         ERR_IPSEC_GATEWAY,      
00043         ERR_NAME_SERVER_1,      
00044         ERR_NAME_SERVER_2       
00045     };
00046 
00048     Connection();
00049 
00051     Connection(Config &cfg);
00052 
00054     ~Connection();
00055 
00057     Err verify();
00058 
00060     void store(Config &cfg) const;
00061 
00062     QString name;
00063     QString ipsecGateway;
00064     QString ipsecId;
00065     QString ipsecSecret;
00066     QString xauthUser;
00067     QString xauthPassword;
00068     QString domain;
00069     bool interactive;
00070     bool singleDes;
00071     bool udp;
00072     bool disableNatT;
00073 };
00074 
00075 #endif // CONNECTION_H

Generated on Fri Aug 19 23:02:10 2005 for Viperin-Z by  doxygen 1.4.4