#include <abstract_client.h>
◆ AbstractClient()
| AbstractClient::AbstractClient |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ ~AbstractClient()
| AbstractClient::~AbstractClient |
( |
| ) |
|
|
override |
◆ activateAccepted
| void AbstractClient::activateAccepted |
( |
| ) |
|
|
signal |
◆ addToListEventReceived
| void AbstractClient::addToListEventReceived |
( |
const Event_AddToList & | event | ) |
|
|
signal |
◆ buddyListReceived
| void AbstractClient::buddyListReceived |
( |
const QList< ServerInfo_User > & | buddyList | ) |
|
|
signal |
◆ clearLatencyStats()
| void AbstractClient::clearLatencyStats |
( |
| ) |
|
Drops all recorded round-trip samples and resets the stats emission throttle, emitting zeroed stats so that UI listeners can clear their display.
Must be called from the client thread (as RemoteClient's disconnect path does). The tracker is deliberately lock-free.
◆ connectionClosedEventReceived
◆ gameEventContainerReceived
◆ gameJoinedEventReceived
◆ getNewCmdId()
| int AbstractClient::getNewCmdId |
( |
| ) |
|
|
inlineprotected |
◆ getServerSupportsPasswordHash()
| bool AbstractClient::getServerSupportsPasswordHash |
( |
| ) |
const |
|
inline |
◆ getStatus()
◆ getUserName()
| const QString & AbstractClient::getUserName |
( |
| ) |
const |
|
inline |
◆ ignoreListReceived
| void AbstractClient::ignoreListReceived |
( |
const QList< ServerInfo_User > & | ignoreList | ) |
|
|
signal |
◆ listRoomsEventReceived
| void AbstractClient::listRoomsEventReceived |
( |
const Event_ListRooms & | event | ) |
|
|
signal |
◆ maxPingTime
| void AbstractClient::maxPingTime |
( |
int | seconds, |
|
|
int | maxSeconds ) |
|
signal |
◆ notifyUserEventReceived
◆ pingStatsUpdated
| void AbstractClient::pingStatsUpdated |
( |
const LatencyTracker::Stats & | stats, |
|
|
const QList< int > & | samplesMs ) |
|
signal |
Aggregated round-trip statistics and a chronological snapshot of the rolling window, emitted at most once per second.
All values in the stats struct are in milliseconds; sampleCount is the number of samples currently in the rolling window. The samples list is ordered oldest first so graphs can redraw without polling the tracker across threads. Emitted from the client thread. The connection to UI objects is automatically queued across threads.
◆ prepareAdminCommand()
| PendingCommand * AbstractClient::prepareAdminCommand |
( |
const ::google::protobuf::Message & | cmd | ) |
|
|
static |
◆ prepareModeratorCommand()
| PendingCommand * AbstractClient::prepareModeratorCommand |
( |
const ::google::protobuf::Message & | cmd | ) |
|
|
static |
◆ prepareRoomCommand()
| PendingCommand * AbstractClient::prepareRoomCommand |
( |
const ::google::protobuf::Message & | cmd, |
|
|
int | roomId ) |
|
static |
◆ prepareSessionCommand()
| PendingCommand * AbstractClient::prepareSessionCommand |
( |
const ::google::protobuf::Message & | cmd | ) |
|
|
static |
◆ processProtocolItem
| void AbstractClient::processProtocolItem |
( |
const ServerMessage & | item | ) |
|
|
protectedslot |
◆ queuePendingCommand
◆ recordLatency()
◆ registerAccepted
| void AbstractClient::registerAccepted |
( |
| ) |
|
|
signal |
◆ registerAcceptedNeedsActivate
| void AbstractClient::registerAcceptedNeedsActivate |
( |
| ) |
|
|
signal |
◆ removeFromListEventReceived
◆ replayAddedEventReceived
◆ roomEventReceived
| void AbstractClient::roomEventReceived |
( |
const RoomEvent & | event | ) |
|
|
signal |
◆ sendCommand() [1/2]
◆ sendCommand() [2/2]
◆ sendCommandContainer()
| virtual void AbstractClient::sendCommandContainer |
( |
const CommandContainer & | cont | ) |
|
|
protectedpure virtual |
◆ serverIdentificationEventReceived
◆ serverMessageEventReceived
◆ serverName()
| virtual QString AbstractClient::serverName |
( |
| ) |
const |
|
inlinevirtual |
Returns the server address configured for the current connection.
May be empty for clients that have no server counterpart (e.g. local test clients).
Reimplemented in RemoteClient.
◆ serverPort()
| virtual quint16 AbstractClient::serverPort |
( |
| ) |
const |
|
inlinevirtual |
◆ serverShutdownEventReceived
◆ setStatus()
◆ sigQueuePendingCommand
◆ statusChanged
◆ userInfoChanged
◆ userJoinedEventReceived
◆ userLeftEventReceived
| void AbstractClient::userLeftEventReceived |
( |
const Event_UserLeft & | event | ) |
|
|
signal |
◆ userMessageEventReceived
◆ clientFeatures
| QMap<QString, bool> AbstractClient::clientFeatures |
◆ clientMutex
| QMutex AbstractClient::clientMutex |
|
mutableprivate |
◆ country
| QString AbstractClient::country |
|
protected |
◆ email
| QString AbstractClient::email |
|
protected |
◆ latencyTracker
◆ nextCmdId
| int AbstractClient::nextCmdId |
|
private |
◆ password
| QString AbstractClient::password |
|
protected |
◆ pendingCommands
◆ realName
| QString AbstractClient::realName |
|
protected |
◆ serverSupportsPasswordHash
| bool AbstractClient::serverSupportsPasswordHash |
|
protected |
◆ statsEmitClock
| QElapsedTimer AbstractClient::statsEmitClock |
|
private |
◆ statsEmitClockStarted
| bool AbstractClient::statsEmitClockStarted = false |
|
private |
◆ status
◆ token
| QString AbstractClient::token |
|
protected |
◆ userName
| QString AbstractClient::userName |
|
protected |
The documentation for this class was generated from the following files: