Files
RRJServer/LibServer/Systems/commonclienthandler.h
2026-02-16 09:35:38 +03:00

49 lines
1.4 KiB
C++

#ifndef COMMONCLIENTHANDLER_H
#define COMMONCLIENTHANDLER_H
#include <QObject>
#include "clienthandler.h"
class ProcessingSystem;
class DataParser;
class ClientHandler;
class Logger;
class CommonClientHandler : public QObject
{
Q_OBJECT
public:
explicit CommonClientHandler(QObject *parent = nullptr);
void initialize(QMap<int, ClientHandler*> *clientsMap,
ProcessingSystem *processingSystem,
DataParser *dataParser);
void sendNewVersionListToAllClient();
void sendCurrentVersionToAllClient();
void slot_ListsInstructorsTraineesChanged_forUserID(int id_user);
void slot_ListInstructorsChanged();
void slot_ListTraineesChanged();
void slot_ListGroupsChanged();
void slot_StatusTasksAMMofTraineeChanged(int trainee_id);
void slot_StatusTasksFIMofTraineeChanged(int trainee_id);
bool slotSendMessage(QString loginFrom, QString loginTo, QString text);
void slot_sendTaskToClient(QString fullNameClient, QString textTask);
void slot_DocsChanged();
void sendUpdatedCFI(QByteArray array);
public slots:
void slot_sendPacketToAllClients(PacketType packetType, bool flOnlyGUI);
signals:
//void sigSetServerState(PacketType packetType);
private:
QMap<int, ClientHandler*> *clientsMap;
ProcessingSystem *processingSystem;
DataParser *dataParser;
};
#endif // COMMONCLIENTHANDLER_H