console: add basic code.
This commit is contained in:
29
Console/Helper.h
Normal file
29
Console/Helper.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef CONSOLE_HELPER_H
|
||||
#define CONSOLE_HELPER_H
|
||||
|
||||
#include <ClientCore.h>
|
||||
|
||||
class ConsoleHelper : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ConsoleHelper(QObject* parent = nullptr);
|
||||
~ConsoleHelper() override;
|
||||
|
||||
public:
|
||||
void RunWorker(ClientCore* clientCore);
|
||||
void SetIpPort(const QString& ip, quint16 port);
|
||||
void Connect();
|
||||
|
||||
signals:
|
||||
void sigDoConnect(const QString& ip, quint16 port);
|
||||
|
||||
private:
|
||||
QString ip_;
|
||||
quint16 port_{};
|
||||
SocketWorker* sockWorker_{};
|
||||
ClientCore* clientCore_;
|
||||
};
|
||||
|
||||
#endif // CONSOLE_HELPER_H
|
||||
Reference in New Issue
Block a user