Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
local_client.h
Go to the documentation of this file.
1
6
7#ifndef LOCALCLIENT_H
8#define LOCALCLIENT_H
9
11
12#include <QLoggingCategory>
13#include <QString>
14#include <qtmetamacros.h>
15
16class QObject;
17class ServerMessage;
18
19inline Q_LOGGING_CATEGORY(LocalClientLog, "local_client");
20
22
24{
25 Q_OBJECT
26private:
28
29public:
31 const QString &_playerName,
32 const QString &_clientId,
33 QObject *parent = nullptr);
34 ~LocalClient() override;
35
36 void sendCommandContainer(const CommandContainer &cont) override;
37private slots:
38 void itemFromServer(const ServerMessage &item);
39};
40
41#endif
AbstractClient(QObject *parent=nullptr)
Definition abstract_client.cpp:43
void itemFromServer(const ServerMessage &item)
Definition local_client.cpp:47
LocalClient(LocalServerInterface *_lsi, const QString &_playerName, const QString &_clientId, QObject *parent=nullptr)
Definition local_client.cpp:16
LocalServerInterface * lsi
Definition local_client.h:27
void sendCommandContainer(const CommandContainer &cont) override
Definition local_client.cpp:40
Definition local_server_interface.h:20
Q_LOGGING_CATEGORY(CrashReportLog, "crash_report")
Definition commands.proto:8
Definition server_message.proto:6