EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AccountDB.h
Go to the documentation of this file.
1 /*
2  ------------------------------------------------------------------------------------
3  LICENSE:
4  ------------------------------------------------------------------------------------
5  This file is part of EVEmu: EVE Online Server Emulator
6  Copyright 2006 - 2021 The EVEmu Team
7  For the latest information visit https://evemu.dev
8  ------------------------------------------------------------------------------------
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU Lesser General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License along with
19  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20  Place - Suite 330, Boston, MA 02111-1307, USA, or go to
21  http://www.gnu.org/copyleft/lesser.txt.
22  ------------------------------------------------------------------------------------
23  Author: Zhur
24  Updates: Allan
25 */
26 #ifndef EVE_ACCOUNT_DB_H
27 #define EVE_ACCOUNT_DB_H
28 
29 #include "ServiceDB.h"
30 
31 
32 class AccountDB
33 {
34 public:
36 
37  PyRep* GetJournal(uint32 ownerID, int8 entryTypeID, uint16 accountKey, int64 fromDate, bool reverse = false);
38 
39  static double OfflineFundXfer(uint32 charID, double amount, uint8 type=Account::CreditType::ISK);
40  static double GetCorpBalance(uint32 corpID, uint16 accountKey);
41  static void UpdateCorpBalance(uint32 corpID, uint16 accountKey, double amount);
42 
43  static void AddJournalEntry(uint32 ownerID, int8 entryTypeID, uint32 ownerFromID, uint32 ownerToID, int8 currency, uint16 accountKey, \
44  double amount, double newBalance, std::string description, uint32 referenceID = 0);
45 
46 };
47 
48 
49 #endif // EVE_ACCOUNT_DB_H
Base Python wire object.
Definition: PyRep.h:66
unsigned __int8 uint8
Definition: eve-compat.h:46
static void AddJournalEntry(uint32 ownerID, int8 entryTypeID, uint32 ownerFromID, uint32 ownerToID, int8 currency, uint16 accountKey, double amount, double newBalance, std::string description, uint32 referenceID=0)
Definition: AccountDB.cpp:166
signed __int8 int8
Definition: eve-compat.h:45
PyRep * GetWalletDivisionsInfo(uint32 corpID)
Definition: AccountDB.cpp:109
unsigned __int32 uint32
Definition: eve-compat.h:50
signed __int64 int64
Definition: eve-compat.h:51
static void UpdateCorpBalance(uint32 corpID, uint16 accountKey, double amount)
Definition: AccountDB.cpp:92
static double GetCorpBalance(uint32 corpID, uint16 accountKey)
Definition: AccountDB.cpp:69
unsigned __int16 uint16
Definition: eve-compat.h:48
static double OfflineFundXfer(uint32 charID, double amount, uint8 type=Account::CreditType::ISK)
Definition: AccountDB.cpp:46
PyRep * GetJournal(uint32 ownerID, int8 entryTypeID, uint16 accountKey, int64 fromDate, bool reverse=false)
Definition: AccountDB.cpp:135