1 /*
2 
3                           Firewall Builder
4 
5                  Copyright (C) 2004 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 __INSTCONF_H_
28 #define __INSTCONF_H_
29 
30 #include <qstring.h>
31 #include <string>
32 
33 namespace libfwbuilder {
34     class Firewall;
35 };
36 
37 class instConf {
38 
39  public:
40     bool      quiet;
41     bool      verbose;
42     int       debug;
43     bool      incremental;
44     bool      dry_run;
45     bool      save_diff;
46     bool      no_gui;
47     bool      backup;
48     bool      stripComments;
49     bool      compressScript;
50     bool      copyFWB;
51     bool      saveStandby;
52     bool      batchInstall;
53     bool      useSCPForRouter; // use scp for cisco ios, pix and hp procurve
54     bool      useNXOSSession; // use NXOS Session Manager
55 
56     QString   pgm;
57     QString   wdir;
58     QString   diff_pgm;
59     QString   user;
60     QString   activationCmd;
61     QString   pwd;
62     QString   epwd;
63     QString   maddr;
64     QString   putty_session;
65     QString   sshArgs;
66     QString   scpArgs;
67     QString   fwdir;
68     QString   fwscript;
69 
70     libfwbuilder::Firewall  *fwobj;
71 
72     QString   fwbfile;
73     QString   script;
74     QString   remote_script;
75     QString   backup_file;
76     QString   diff_file;
77 
78     instConf();
79 
80     QString getCmdFromResource(const QString &resource_name);
81     void clear();
82 
83 };
84 
85 #endif
86