mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 12:49:54 +00:00
31 lines
509 B
C++
31 lines
509 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, 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
|