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

vpnc.h

00001 /*
00002  * $Id: vpnc.h,v 1.4 2005/07/01 17:14:34 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 VPNC_H
00022 #define VPNC_H
00023 
00029 class Connection;
00030 class QString;
00031 
00032 class Vpnc
00033 {
00034 public:
00035 
00037     typedef enum
00038     {
00039         ST_DISCONNECTED,
00040         ST_CONNECTING,
00041         ST_CONNECTED,
00042         ST_DISCONNECTING
00043     } State;
00044 
00046     static bool activate(const Connection &conn, const QString &pwd);
00047 
00049     static void deactivate();
00050 
00052     static State getState();
00053 
00054 private:
00055     static const char PID_FILE[];
00056     static const char SCRIPT[];
00057 };
00058 
00059 #endif // VPNC_H

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