gui: single instance mode.
This commit is contained in:
@@ -1,15 +1,29 @@
|
||||
#ifndef FRELAY_CONSOLE_H
|
||||
#define FRELAY_CONSOLE_H
|
||||
#ifndef CONSOLE_H
|
||||
#define CONSOLE_H
|
||||
|
||||
#include <ClientCore.h>
|
||||
|
||||
class RelayConsole : public QObject
|
||||
class ConsoleHelper : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RelayConsole(QObject* parent = nullptr);
|
||||
~RelayConsole() override;
|
||||
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 // FRELAY_CONSOLE_H
|
||||
#endif // CONSOLE_H
|
||||
|
||||
Reference in New Issue
Block a user