Esempio n. 1
0
//Called by UI thread.
//create a thread to get online ips.
void Hacker::getOnlineIPs(int startIP, int endIP)
{
    getOnlineIPsThread->setIpRange(startIP, endIP);

    //When one ip is found or scan is finished, tell the UI.
    connect(getOnlineIPsThread, SIGNAL(foundOneOnlineIP(QString)), main_ui, SLOT(oneOnlineIPFound(QString)));
    connect(getOnlineIPsThread, SIGNAL(scanHasFinished()), main_ui, SLOT(scanDone()));
    connect(getOnlineIPsThread, SIGNAL(scanProgressForward(int)), main_ui, SLOT(updateProgress(int)));

    getOnlineIPsThread->start();
}
Esempio n. 2
0
void QNetworkManagerInterfaceDeviceWireless::scanIsDone()
{
    Q_EMIT scanDone();
}