2024-11-28 17:46:42 +01:00

23 lines
423 B
C++

#pragma once
#include <QObject>
#include <QString>
#include <tasks/Task.h>
class ServerPingTask : public Task {
Q_OBJECT
public:
explicit ServerPingTask(QString domain, int port) : Task(), m_domain(domain), m_port(port) {}
~ServerPingTask() override = default;
int m_outputOnlinePlayers = -1;
private:
QString m_domain;
int m_port;
protected:
virtual void executeTask() override;
};