1
/***************************************************************************
2
smb4kipaddressscanner_p - Private classes for the IP address scanner
6
copyright : (C) 2009-2011 by Alexander Reinholdt
7
email : alexander.reinholdt@kdemail.net
8
***************************************************************************/
10
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
* This program is distributed in the hope that it will be useful, but *
17
* WITHOUT ANY WARRANTY; without even the implied warranty of *
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
19
* General Public License for more details. *
21
* You should have received a copy of the GNU General Public License *
22
* along with this program; if not, write to the *
23
* Free Software Foundation, 51 Franklin Street, Suite 500, Boston, *
24
* MA 02110-1335, USA *
25
***************************************************************************/
27
#ifndef SMB4KIPADDRESSSCANNER_P_H
28
#define SMB4KIPADDRESSSCANNER_P_H
40
// application specific includes
41
#include <smb4kipaddressscanner.h>
42
#include <smb4kprocess.h>
44
class Smb4KIPLookupJob : public KJob
52
Smb4KIPLookupJob( QObject *parent = 0 );
60
* Returns TRUE if the job has been started and FALSE otherwise
62
* @returns TRUE if the job has been started
64
bool isStarted() { return m_started; }
72
* Set up the lookup job. You need to set the host, the
73
* parent widget is optional.
75
* You must run this function before start() is called.
77
* @param host The host
79
* @param parent The parent widget
81
void setupLookup( Smb4KHost *host,
82
QWidget *parentWidget = 0 );
86
* This signal is emitted when a lookup process is about to be started.
87
* It passes the host to the receiver.
89
* @param host The host
91
void aboutToStart( Smb4KHost *host );
94
* This signal is emitted when a lookup process has finished. It passes
95
* the host to the receiver.
97
* @param host The host
99
void finished( Smb4KHost *host );
102
* This signal is emitted when an IP address was successfully looked
105
* @param host The host
107
void ipAddress( Smb4KHost *host );
113
void slotStartLookup();
114
void slotReadStandardOutput();
115
void slotReadStandardError();
116
void slotProcessFinished( int exitCode, QProcess::ExitStatus status );
121
QWidget *m_parent_widget;
122
Smb4KProcess *m_proc;
126
class Smb4KIPAddressScannerPrivate
129
Smb4KIPAddressScannerPrivate();
130
~Smb4KIPAddressScannerPrivate();
131
Smb4KIPAddressScanner instance;