1
/***************************************************************************
2
* Copyright (C) 2011 by Francesco Cecconi *
3
* francesco.cecconi@gmail.com *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License. *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program; if not, write to the *
16
* Free Software Foundation, Inc., *
17
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
18
***************************************************************************/
22
void nmapClass::startProfile_ui() // start preference UI
24
mainProfile dialogPreference_(this);
25
connect(&dialogPreference_, SIGNAL(accepted()),
26
this, SLOT(readProfile()));
28
dialogPreference_.exec();
31
void nmapClass::exit()
33
_monitor->clearHostMonitor();
35
if (!FileName.isNull())
38
QFile *tmpFile = new QFile();
39
QString newFile = logPath;
41
newFile = QDir::toNativeSeparators(newFile);
42
newFile.append(FileName);
43
tmpFile->setFileName(newFile);
45
if ((checkLog) && (tmpFile->exists()))
50
else if ((!checkLog) && (tmpFile->exists()))
51
{ // if log check is disable but the file exist
59
// Save window size and position and NSS info
64
void nmapClass::stop_scan()
66
// stop and clear clear thread
67
_monitor->clearHostMonitor();