Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
10
#include "
../abstract/abstract_client.h
"
11
12
#include <QLoggingCategory>
13
#include <QString>
14
#include <qtmetamacros.h>
15
16
class
QObject;
17
class
ServerMessage
;
18
19
inline
Q_LOGGING_CATEGORY
(LocalClientLog,
"local_client"
);
20
21
class
LocalServerInterface
;
22
23
class
LocalClient
:
public
AbstractClient
24
{
25
Q_OBJECT
26
private
:
27
LocalServerInterface
*
lsi
;
28
29
public
:
30
LocalClient
(
LocalServerInterface
*_lsi,
31
const
QString &_playerName,
32
const
QString &_clientId,
33
QObject *parent =
nullptr
);
34
~LocalClient
()
override
;
35
36
void
sendCommandContainer
(
const
CommandContainer
&cont)
override
;
37
private
slots:
38
void
itemFromServer
(
const
ServerMessage
&item);
39
};
40
41
#endif
abstract_client.h
AbstractClient::AbstractClient
AbstractClient(QObject *parent=nullptr)
Definition
abstract_client.cpp:43
LocalClient::itemFromServer
void itemFromServer(const ServerMessage &item)
Definition
local_client.cpp:47
LocalClient::LocalClient
LocalClient(LocalServerInterface *_lsi, const QString &_playerName, const QString &_clientId, QObject *parent=nullptr)
Definition
local_client.cpp:16
LocalClient::lsi
LocalServerInterface * lsi
Definition
local_client.h:27
LocalClient::sendCommandContainer
void sendCommandContainer(const CommandContainer &cont) override
Definition
local_client.cpp:40
LocalServerInterface
Definition
local_server_interface.h:20
Q_LOGGING_CATEGORY
Q_LOGGING_CATEGORY(CrashReportLog, "crash_report")
CommandContainer
Definition
commands.proto:8
ServerMessage
Definition
server_message.proto:6
libcockatrice_network
libcockatrice
network
client
local
local_client.h
Generated by
1.18.0