mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 16:32:16 -07:00
Benchmark test.
Took 2 hours 18 minutes Took 51 seconds
This commit is contained in:
parent
a46ab5cd68
commit
857c44f9ac
121 changed files with 565 additions and 285 deletions
|
|
@ -4,7 +4,7 @@ set(CMAKE_AUTORCC ON)
|
|||
|
||||
set(HEADERS abstract_client.h)
|
||||
|
||||
set(SOURCES abstract_client.cpp)
|
||||
set(SOURCES abstract_client.cpp client_status.h)
|
||||
|
||||
if(Qt6_FOUND)
|
||||
qt6_wrap_cpp(MOC_SOURCES ${HEADERS})
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
#ifndef ABSTRACTCLIENT_H
|
||||
#define ABSTRACTCLIENT_H
|
||||
|
||||
#include "client_status.h"
|
||||
|
||||
#include <QMutex>
|
||||
#include <QVariant>
|
||||
#include <libcockatrice/protocol/pb/response.pb.h>
|
||||
|
|
@ -31,22 +33,6 @@ class Event_ConnectionClosed;
|
|||
class Event_ServerShutdown;
|
||||
class Event_ReplayAdded;
|
||||
class FeatureSet;
|
||||
|
||||
enum ClientStatus
|
||||
{
|
||||
StatusDisconnected,
|
||||
StatusDisconnecting,
|
||||
StatusConnecting,
|
||||
StatusRegistering,
|
||||
StatusActivating,
|
||||
StatusLoggingIn,
|
||||
StatusLoggedIn,
|
||||
StatusRequestingForgotPassword,
|
||||
StatusSubmitForgotPasswordReset,
|
||||
StatusSubmitForgotPasswordChallenge,
|
||||
StatusGettingPasswordSalt,
|
||||
};
|
||||
|
||||
class AbstractClient : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef COCKATRICE_CLIENT_STATUS_H
|
||||
#define COCKATRICE_CLIENT_STATUS_H
|
||||
|
||||
enum ClientStatus
|
||||
{
|
||||
StatusDisconnected,
|
||||
StatusDisconnecting,
|
||||
StatusConnecting,
|
||||
StatusRegistering,
|
||||
StatusActivating,
|
||||
StatusLoggingIn,
|
||||
StatusLoggedIn,
|
||||
StatusRequestingForgotPassword,
|
||||
StatusSubmitForgotPasswordReset,
|
||||
StatusSubmitForgotPasswordChallenge,
|
||||
StatusGettingPasswordSalt,
|
||||
};
|
||||
|
||||
#endif // COCKATRICE_CLIENT_STATUS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue