mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
move ServerPingTask in its own file
This commit is contained in:
22
launcher/ui/pages/instance/ServerPingTask.h
Normal file
22
launcher/ui/pages/instance/ServerPingTask.h
Normal file
@ -0,0 +1,22 @@
|
||||
#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;
|
||||
};
|
Reference in New Issue
Block a user