Skip to content

Commit 81b0c09

Browse files
committed
[FireNET] Code style fixed
1 parent b87af7e commit 81b0c09

14 files changed

Lines changed: 106 additions & 106 deletions

File tree

src/server/Core/remoteserver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class RemoteServer : public QTcpServer
3939

4040
private:
4141
bool CreateServer();
42-
virtual void incomingConnection(qintptr socketDescriptor);
42+
virtual void incomingConnection(qintptr socketDescriptor);
4343
public slots:
4444
void Update();
4545
void CloseConnection();

src/server/Core/tcpconnection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public slots:
4343
void received();
4444
void sended();
4545
private:
46-
ClientQuerys* pQuery;
46+
ClientQuerys* pQuery;
4747
QSslSocket* m_Socket;
48-
SClient m_Client;
48+
SClient m_Client;
4949
std::queue<NetPacket> m_Packets;
5050
private:
5151
int m_maxPacketSize;

src/server/Core/tcpserver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TcpServer : public QTcpServer
2323
explicit TcpServer(QObject *parent = nullptr);
2424
~TcpServer();
2525
public:
26-
void SetMaxThreads(int maximum);
26+
void SetMaxThreads(int maximum);
2727
void SetMaxConnections(int value);
2828
void SetConnectionTimeout(int value);
2929
bool Listen(const QHostAddress &address, quint16 port);
@@ -63,7 +63,7 @@ public slots:
6363
void MessageSended();
6464
signals:
6565
void connecting(qintptr handle, TcpThread *runnable, TcpConnection* connection);
66-
void closing();
66+
void closing();
6767
private:
6868
int m_maxThreads;
6969
int m_maxConnections;

src/server/Core/tcpthread.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ class TcpThread : public QObject, public QRunnable
2424
explicit TcpThread(QObject *parent = nullptr);
2525
~TcpThread();
2626
public:
27-
void run();
28-
int Count();
29-
void SendGlobalMessage(NetPacket &packet);
27+
void run();
28+
int Count();
29+
void SendGlobalMessage(NetPacket &packet);
3030
private:
31-
TcpConnection* CreateConnection();
32-
void AddSignals(TcpConnection* connection);
31+
TcpConnection* CreateConnection();
32+
void AddSignals(TcpConnection* connection);
3333
public slots:
34-
void connecting(qintptr handle, TcpThread *runnable, TcpConnection* connection);
35-
void closing();
36-
void opened();
37-
void closed();
34+
void connecting(qintptr handle, TcpThread *runnable, TcpConnection* connection);
35+
void closing();
36+
void opened();
37+
void closed();
3838
signals:
39-
void started();
40-
void finished();
41-
void quit();
39+
void started();
40+
void finished();
41+
void quit();
4242
private:
4343
QEventLoop* m_loop;
4444
QReadWriteLock m_lock;

src/server/Tools/scripts.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class Scripts : public QObject
1414
explicit Scripts(QObject *parent = nullptr);
1515
~Scripts();
1616
public:
17-
void Clear();
18-
void LoadShopScript();
19-
void LoadTrustedServerList();
17+
void Clear();
18+
void LoadShopScript();
19+
void LoadTrustedServerList();
2020
public:
2121
QVector<SShopItem> GetShop();
2222
QVector<STrustedServer> GetTrustedList();

src/server/Tools/settings.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ class SettingsManager : public QObject
2828
void Clear();
2929
QVariant GetVariable(const QString &key);
3030
QString GetDescription(const QString &key);
31-
bool FindVariabelMatches(const QString &key);
32-
bool CheckVariableExists(const QString &key);
31+
bool FindVariabelMatches(const QString &key);
32+
bool CheckVariableExists(const QString &key);
3333
QStringList GetVariablesList();
3434
public:
3535
void SetVariable(const QString &key, const QVariant &value);
36-
void BlockOnlineUpdate() { bBlockOnlineUpdate = true; }
36+
void BlockOnlineUpdate() { bBlockOnlineUpdate = true; }
3737
public:
38-
void RegisterVariable(const QString &key, const QVariant &value, const QString &description, bool bCanChangeOnline, void (*pCallback)(QVariant) = nullptr);
38+
void RegisterVariable(const QString &key, const QVariant &value, const QString &description, bool bCanChangeOnline, void (*pCallback)(QVariant) = nullptr);
3939
private:
4040
QVector<SVariable> m_Variables;
41-
QMutex m_Mutex;
41+
QMutex m_Mutex;
4242
bool bBlockOnlineUpdate;
4343
};
4444

src/server/UI/mainwindow.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,24 @@ class MainWindow : public QMainWindow
2828
explicit MainWindow(QWidget *parent = nullptr);
2929
~MainWindow();
3030
public:
31-
void LogToOutput(ELogType type, const QString& msg);
31+
void LogToOutput(ELogType type, const QString& msg);
3232
private:
33-
void ClearOutput();
34-
void ClearStatus();
33+
void ClearOutput();
34+
void ClearStatus();
3535
public slots:
36-
void CleanUp();
37-
void UpdateServerStatus();
38-
void EnableStressMode();
36+
void CleanUp();
37+
void UpdateServerStatus();
38+
void EnableStressMode();
3939
private slots:
40-
void on_Input_returnPressed();
40+
void on_Input_returnPressed();
4141
signals:
42-
void stop();
43-
void scroll();
42+
void stop();
43+
void scroll();
4444
private:
4545
Ui::MainWindow* ui;
46-
int m_OutputItemID;
47-
QTimer m_UpdateTimer;
48-
QMutex m_Mutex;
46+
int m_OutputItemID;
47+
QTimer m_UpdateTimer;
48+
QMutex m_Mutex;
4949
};
5050

5151
#endif // MAINWINDOW_H

src/server/Workers/Databases/dbworker.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ class DBWorker : public QObject
1919
explicit DBWorker(QObject *parent = 0);
2020
~DBWorker();
2121
public:
22-
void Init();
23-
void Clear();
22+
void Init();
23+
void Clear();
2424
public:
25-
bool UserExists(const QString &login);
26-
bool ProfileExists(int uid);
27-
bool NicknameExists(const QString &nickname);
25+
bool UserExists(const QString &login);
26+
bool ProfileExists(int uid);
27+
bool NicknameExists(const QString &nickname);
2828
public:
29-
int GetFreeUID();
30-
int GetUIDbyNick(const QString &nickname);
31-
SUser* GetUserData(const QString &login);
32-
SProfile* GetUserProfile(int uid);
29+
int GetFreeUID();
30+
int GetUIDbyNick(const QString &nickname);
31+
SUser* GetUserData(const QString &login);
32+
SProfile* GetUserProfile(int uid);
3333
public:
34-
bool CreateUser(int uid, const QString &login, const QString &password);
35-
bool CreateProfile(SProfile *profile);
36-
bool UpdateProfile(SProfile *profile);
34+
bool CreateUser(int uid, const QString &login, const QString &password);
35+
bool CreateProfile(SProfile *profile);
36+
bool UpdateProfile(SProfile *profile);
3737
public:
3838
RedisConnector* pRedis;
3939
MySqlConnector* pMySql;

src/server/Workers/Databases/httpconnector.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ class HttpConnector : public QObject
1717
explicit HttpConnector(QObject *parent = nullptr);
1818
~HttpConnector();
1919
public:
20-
bool Login(const QString &login, const QString &password);
21-
bool Register(const QString &login, const QString &password);
20+
bool Login(const QString &login, const QString &password);
21+
bool Register(const QString &login, const QString &password);
2222
public:
23-
int GetUID();
23+
int GetUID();
2424
int GetError();
2525
private:
26-
void SendPostRequest(QUrl url, QByteArray requestData);
26+
void SendPostRequest(QUrl url, QByteArray requestData);
2727
public slots:
2828
virtual void replyFinished(QNetworkReply* reply);
2929
private:
3030
// Login error types : 0 - Login not found, 1 - Account blocked, 2 - Incorrect password, 3 - Double authorization
3131
// Register error types : 0 - Login alredy register, 1 - Can't create account, 2 - Double registration
32-
int m_lastError;
33-
int m_uid;
34-
bool bHaveResult;
35-
bool bSuccessAuth;
36-
bool bSuccessReg;
32+
int m_lastError;
33+
int m_uid;
34+
bool bHaveResult;
35+
bool bSuccessAuth;
36+
bool bSuccessReg;
3737
};
3838

3939
#endif // HTTPCONNECTOR_H

src/server/Workers/Databases/redisconnector.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ class RedisConnector : public QObject
2121
void run();
2222
bool Connect();
2323
bool IsConnected();
24-
void Disconnect();
24+
void Disconnect();
2525
public:
2626
bool HEXISTS(const QString &key, const QString &field);
27-
bool HMSET(const QString &key, const std::vector<std::pair<std::string, std::string>>& field_val);
27+
bool HMSET(const QString &key, const std::vector<std::pair<std::string, std::string>>& field_val);
2828
QVector<std::pair<std::string, std::string>> HGETALL(const QString &key);
29-
bool SET(const QString &key, const QString &value);
30-
QString GET(const QString &key);
31-
void BGSAVE();
29+
bool SET(const QString &key, const QString &value);
30+
QString GET(const QString &key);
31+
void BGSAVE();
3232
public slots:
33-
void disconnected();
33+
void disconnected();
3434
private:
35-
cpp_redis::redis_client* pClient;
35+
cpp_redis::redis_client* pClient;
3636
};
3737

3838
#endif // REDISCONNECTOR_H

0 commit comments

Comments
 (0)