SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AuthDBSyncHandler.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #pragma once
9 
10 #include "AuthDBSyncContext.h"
11 #include "EventProcessor.h"
12 
13 #include <QThreadStorage>
14 
15 struct CreateAccountMessage;
16 struct RetrieveAccountRequest;
17 struct ValidatePasswordRequest;
18 
19 class AuthDBSyncHandler final : public EventProcessor
20 {
23  QThreadStorage<AuthDbSyncContext> m_db_context;
24  // EventProcessor interface
25  bool per_thread_setup() override;
26  void dispatch(SEGSEvent *ev) override;
27 
28  // Event handlers
29  void on_create_account(CreateAccountMessage *msg);
30  void on_retrieve_account(RetrieveAccountRequest *msg);
31  void on_validate_password(ValidatePasswordRequest *msg);
32 public:
34 };
AuthDBSyncHandler()
Definition: AuthDBSyncHandler.cpp:90
Definition: SEGSEvent.h:32
Definition: AuthDBSyncHandler.h:19
Definition: EventProcessor.h:13