forked from teamnwah/openmw-tes3coop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
516 B
C++
32 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
|