blob: 009c35dddaa0e481515062f35ee03655b8b1afe6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
/***************************************************************************
* *
* Copyright (C) 2005, 2006 by Kevin Gilbert *
* kev.gilbert@cdu.edu.au *
* *
* 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 _SIMPLEOPTIONS_H_
#define _SIMPLEOPTIONS_H_
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <qwidget.h>
#include "global.h"
// forward class definitions
// =========================
class QCheckBox;
class KConfig;
// SimpleOptions class definition
// ==============================
class SimpleOptions : public QWidget
{ Q_OBJECT
public:
SimpleOptions( QWidget* parent, const char* name = NULL );
void finaliseInitialisation( );
bool getOptions( bool& needRoot );
void readProfile( KConfig* config );
void saveProfile( KConfig* config );
void setInitialValues( );
bool allPortsState( ) const { return m_allPortsState; }
bool fastScanState( ) const { return m_fastScanState; }
bool ipV6State( ) const { return m_ipV6State; }
bool noRandomPortsState( ) const { return m_noRandomPortsState; }
bool osDetectionState( ) const { return m_osDetectionState; }
bool osScanLimitState( ) const { return m_osScanLimitState; }
bool packetTraceState( ) const { return m_packetTraceState; }
bool prepackagedState( ) const { return m_prepackagedState; }
bool privilegedState( ) const { return m_privilegedState; }
bool randomizeHostsState( ) const { return m_randomizeHostsState; }
bool sendEthState( ) const { return m_sendEthState; }
bool sendIPState( ) const { return m_sendIPState; }
bool verboseState( ) const { return m_verboseState; }
signals:
void disablePortRanges( );
void displayDocBook( const QString& );
void displayHelp( const QString& );
void displayUnknown( );
void optionsDirty( );
public slots:
void slotDisableFastScan( );
private slots:
void slotFastScanCheckBoxClicked( );
void slotWhatsThisClicked( );
private:
void createLayout( );
QCheckBox* m_allPortsCheckBox;
bool m_allPortsState;
QCheckBox* m_fastScanCheckBox;
bool m_fastScanState;
QCheckBox* m_ipV6CheckBox;
bool m_ipV6State;
QCheckBox* m_noRandomPortsCheckBox;
bool m_noRandomPortsState;
QCheckBox* m_osDetectionCheckBox;
bool m_osDetectionState;
QCheckBox* m_osScanLimitCheckBox;
bool m_osScanLimitState;
QCheckBox* m_packetTraceCheckBox;
bool m_packetTraceState;
QCheckBox* m_prepackagedCheckBox;
bool m_prepackagedState;
QCheckBox* m_privilegedCheckBox;
bool m_privilegedState;
QCheckBox* m_randomizeHostsCheckBox;
bool m_randomizeHostsState;
QCheckBox* m_sendEthCheckBox;
bool m_sendEthState;
QCheckBox* m_sendIPCheckBox;
bool m_sendIPState;
QCheckBox* m_verboseCheckBox;
bool m_verboseState;
};
#endif // _SIMPLEOPTIONS_H_
|