mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
ref: clientMap to MultithreadServer
This commit is contained in:
@@ -66,7 +66,6 @@ signals:
|
||||
|
||||
public slots:
|
||||
void slot_LanguageChanged(QString language);
|
||||
void addClient(qintptr descriptor, ClientHandler *client);
|
||||
void slotUpdateListClients();
|
||||
void slot_BlockAutorization(bool block);
|
||||
void slotAddToLog(QString msg);
|
||||
@@ -74,50 +73,27 @@ public slots:
|
||||
public:
|
||||
void removeClient(int socketId);
|
||||
|
||||
void blockAutorization()
|
||||
{
|
||||
stateBlockAutorization = blocked;
|
||||
}
|
||||
void unBlockAutorization()
|
||||
{
|
||||
stateBlockAutorization = unblocked;
|
||||
}
|
||||
int hasError() const
|
||||
{
|
||||
return errorCode;
|
||||
}
|
||||
EStateBlockAutorization getStateBlockAutorization() const
|
||||
{
|
||||
return stateBlockAutorization;
|
||||
}
|
||||
|
||||
ProcessingSystem* getProcessingSystem()
|
||||
{
|
||||
return processingSystem;
|
||||
}
|
||||
|
||||
QMap<int, ClientHandler *> getClientsMap() const;
|
||||
|
||||
Logger *getLogger() const;
|
||||
|
||||
private slots:
|
||||
void on_btnStartServer_clicked();
|
||||
void on_btnStopServer_clicked();
|
||||
|
||||
private:
|
||||
bool startServer();
|
||||
bool stopServer();
|
||||
|
||||
private:
|
||||
Ui::ServerLMSWidget *ui;
|
||||
|
||||
private:
|
||||
MultiThreadServer * tcpServer;
|
||||
qint16 hostPort;
|
||||
QMap<int, ClientHandler*> clientsMap;
|
||||
EStateServer stateServer;
|
||||
EStateBlockAutorization stateBlockAutorization;
|
||||
|
||||
MultiThreadServer *server;
|
||||
QThread *updateThread;
|
||||
QThread *loggerThread;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user