forked from teamnwah/openmw-tes3coop
d03722b3f4
(cherry picked from commits5c79e7106f
,57353cdfff
,15723adb9a
,01a5196a92
,ed75563a94
,3839a2dcfd
,1fd16ba69c
,66283943c5
,ba8613a179
,5b8f4f3e92
,35b771b19e
,043eb224e2
,05fac2f67d
)
31 lines
516 B
C++
31 lines
516 B
C++
//
|
|
// Created by koncord on 02.05.17.
|
|
//
|
|
|
|
#ifndef OPENMW_PINGUPDATER_HPP
|
|
#define OPENMW_PINGUPDATER_HPP
|
|
|
|
#include <QObject>
|
|
#include <QVector>
|
|
|
|
#include "Types.hpp"
|
|
|
|
class PingUpdater : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
void addServer(int row, const AddrPair &addrPair);
|
|
public slots:
|
|
void stop();
|
|
void process();
|
|
signals:
|
|
void start();
|
|
void updateModel(int row, unsigned ping);
|
|
void finished();
|
|
private:
|
|
QVector<ServerRow> servers;
|
|
bool run;
|
|
};
|
|
|
|
|
|
#endif //OPENMW_PINGUPDATER_HPP
|