1 /* 2 3 Firewall Builder 4 5 Copyright (C) 2008 NetCitadel, LLC 6 7 Author: Vadim Kurland vadim@fwbuilder.org 8 9 $Id$ 10 11 This program is free software which we release under the GNU General Public 12 License. You may redistribute and/or modify this program under the terms 13 of that license as published by the Free Software Foundation; either 14 version 2 of the License, or (at your option) any later version. 15 16 This program is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License for more details. 20 21 To get a copy of the GNU General Public License, write to the Free Software 22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 24 */ 25 26 27 #ifndef __FIREWALLINSTALLERCISCO_H_ 28 #define __FIREWALLINSTALLERCISCO_H_ 29 30 31 #include "config.h" 32 33 #include "FirewallInstaller.h" 34 35 #include <qstring.h> 36 #include <qstringlist.h> 37 #include <qprocess.h> 38 #include <qobject.h> 39 #include <QStringList> 40 41 namespace libfwbuilder 42 { 43 class Firewall; 44 } 45 46 class FirewallInstallerCisco : public FirewallInstaller 47 { 48 Q_OBJECT; 49 50 protected: 51 QStringList config_lines; 52 53 virtual QString getDestinationDir(const QString &dir); 54 55 virtual bool readManifest(const QString &conffie, 56 QMap<QString, QString> *all_files); 57 public: 58 59 FirewallInstallerCisco(instDialog *_dlg, instConf *_cnf, const QString &_p); 60 61 virtual bool packInstallJobsList(libfwbuilder::Firewall*); 62 virtual void activatePolicy(const QString &script, const QString &args); 63 64 }; 65 66 67 #endif 68