EvEmu
0.8.4
11 September 2021
|
#include "LSCDB.h"
Public Member Functions | |
uint32 | StoreMail (uint32 senderID, uint32 recipID, const char *subject, const char *message, int64 sentTime) |
PyObject * | GetMailHeaders (uint32 recID) |
PyRep * | GetMailDetails (uint32 messageID, uint32 readerID) |
bool | MarkMessageRead (uint32 messageID) |
bool | DeleteMessage (uint32 messageID, uint32 readerID) |
void | GetChannelNames (uint32 charID, std::vector< std::string > &names) |
int32 | GetNextAvailableChannelID () |
bool | IsChannelNameAvailable (std::string name) |
bool | IsChannelIDAvailable (int32 channel_ID) |
bool | IsChannelSubscribedByThisChar (uint32 char_ID, int32 channel_ID) |
std::string | GetRegionName (uint32 id) |
std::string | GetConstellationName (uint32 id) |
std::string | GetSolarSystemName (uint32 id) |
std::string | GetCorporationName (uint32 id) |
std::string | GetAllianceName (uint32 id) |
std::string | GetCharacterName (uint32 id) |
int32 | GetChannelID (std::string &name) |
void | GetChannelInformation (int32 channelID, std::string &name, std::string &motd, uint32 &ownerid, std::string &compkey, bool &memberless, std::string &password, bool &maillist, uint32 &cspa) |
void | GetChannelSubscriptions (uint32 charID, std::vector< long > &ids, std::vector< std::string > &names, std::vector< std::string > &MOTDs, std::vector< unsigned long > &ownerids, std::vector< std::string > &compkeys, std::vector< int > &memberless, std::vector< std::string > &passwords, std::vector< int > &maillists, std::vector< int > &cspas, int &channelCount) |
bool | GetChannelInfo (int32 channelID, std::string &name, std::string &motd) |
int32 | GetChannelIDFromComparisonKey (std::string compkey) |
void | UpdateChannelInfo (LSCChannel *channel) |
void | UpdateSubscription (int32 channelID, Client *pClient) |
void | DeleteChannel (int32 channelID) |
void | DeleteSubscription (int32 channelID, uint32 charID) |
![]() | |
uint32 | GetStationOwner (uint32 stationID) |
Protected Member Functions | |
std::string | GetChannelName (uint32 id, const char *table, const char *column, const char *key) |
![]() | |
void | ProcessStringChange (const char *key, const std::string &oldValue, std::string newValue, PyDict *notif, std::vector< std::string > &dbQ) |
void | ProcessRealChange (const char *key, double oldValue, double newValue, PyDict *notif, std::vector< std::string > &dbQ) |
void | ProcessIntChange (const char *key, uint32 oldValue, uint32 newValue, PyDict *notif, std::vector< std::string > &dbQ) |
void | ProcessLongChange (const char *key, int64 oldValue, int64 newValue, PyDict *notif, std::vector< std::string > &dbQ) |
Additional Inherited Members | |
![]() | |
static bool | GetAccountInformation (CryptoChallengePacket &ccp, AccountData &aData, std::string &failMsg) |
static bool | UpdateAccountHash (const char *username, std::string &hash) |
static bool | IncrementLoginCount (uint32 accountID) |
static void | UpdatePassword (uint32 accountID, const char *pass) |
static void | SaveKillOrLoss (CharKillData &data) |
static bool | GetConstant (const char *name, uint32 &into) |
static void | SetServerOnlineStatus (bool online=false) |
static void | SetCharacterOnlineStatus (uint32 char_id, bool online=false) |
static void | SetAccountOnlineStatus (uint32 accountID, bool online=false) |
static void | SetAccountBanStatus (uint32 accountID, bool banned=false) |
static void | SaveServerStats (double threads, float rss, float vm, float user, float kernel, uint32 items, uint32 bubbles) |
static uint32 | SetClientSeed () |
static PyRep * | LookupChars (const char *match, bool exact=false) |
static PyRep * | LookupOwners (const char *match, bool exact=false) |
static PyRep * | LookupCorporations (const std::string &) |
static PyRep * | LookupFactions (const std::string &) |
static PyRep * | LookupCorporationTickers (const std::string &) |
static PyRep * | LookupStations (const std::string &) |
static PyRep * | LookupKnownLocationsByGroup (const std::string &, uint32) |
static PyRep * | PrimeOwners (std::vector< int32 > &itemIDs) |
static bool | ValidateAccountName (CryptoChallengePacket &ccp, std::string &failMsg) |
static void | GetCorpHangarNames (uint32 corpID, std::map< uint8, std::string > &hangarNames) |
![]() | |
static uint32 | CreateNewAccount (const char *login, const char *pass, const char *passHash, int64 role) |
void LSCDB::DeleteChannel | ( | int32 | channelID | ) |
Definition at line 522 of file LSCDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
Definition at line 136 of file LSCDB.cpp.
References sDatabase.
|
inline |
Definition at line 56 of file LSCDB.h.
References GetChannelName().
Referenced by LSCService::CreateSystemChannel().
int32 LSCDB::GetChannelID | ( | std::string & | name | ) |
Definition at line 222 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), and sDatabase.
int32 LSCDB::GetChannelIDFromComparisonKey | ( | std::string | compkey | ) |
Definition at line 365 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), and sDatabase.
bool LSCDB::GetChannelInfo | ( | int32 | channelID, |
std::string & | name, | ||
std::string & | motd | ||
) |
Definition at line 344 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetText(), and sDatabase.
void LSCDB::GetChannelInformation | ( | int32 | channelID, |
std::string & | name, | ||
std::string & | motd, | ||
uint32 & | ownerid, | ||
std::string & | compkey, | ||
bool & | memberless, | ||
std::string & | password, | ||
bool & | maillist, | ||
uint32 & | cspa | ||
) |
Definition at line 240 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBResultRow::GetBool(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), DBResultRow::IsNull(), and sDatabase.
|
protected |
Definition at line 382 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetText(), and sDatabase.
Referenced by GetAllianceName(), GetCharacterName(), GetConstellationName(), GetCorporationName(), GetRegionName(), and GetSolarSystemName().
void LSCDB::GetChannelNames | ( | uint32 | charID, |
std::vector< std::string > & | names | ||
) |
Definition at line 33 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetText(), and sDatabase.
void LSCDB::GetChannelSubscriptions | ( | uint32 | charID, |
std::vector< long > & | ids, | ||
std::vector< std::string > & | names, | ||
std::vector< std::string > & | MOTDs, | ||
std::vector< unsigned long > & | ownerids, | ||
std::vector< std::string > & | compkeys, | ||
std::vector< int > & | memberless, | ||
std::vector< std::string > & | passwords, | ||
std::vector< int > & | maillists, | ||
std::vector< int > & | cspas, | ||
int & | channelCount | ||
) |
Definition at line 285 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), and sDatabase.
|
inline |
Definition at line 57 of file LSCDB.h.
References GetChannelName().
|
inline |
Definition at line 53 of file LSCDB.h.
References GetChannelName().
Referenced by LSCService::CreateSystemChannel().
|
inline |
Definition at line 55 of file LSCDB.h.
References GetChannelName().
Referenced by LSCService::CreateSystemChannel().
Definition at line 462 of file LSCDB.cpp.
References _log, DBerror::c_str(), codelog, DBQueryResult::error, DBResultRow::GetInt(), DBResultRow::GetInt64(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), and sDatabase.
Definition at line 446 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBResultToRowset(), DBQueryResult::error, and sDatabase.
int32 LSCDB::GetNextAvailableChannelID | ( | ) |
Definition at line 58 of file LSCDB.cpp.
References _log, LSCService::BASE_CHANNEL_ID, DBerror::c_str(), DBQueryResult::error, DBResultRow::GetInt(), DBQueryResult::GetRow(), LSCService::MAX_CHANNEL_ID, and sDatabase.
|
inline |
Definition at line 52 of file LSCDB.h.
References GetChannelName().
Referenced by LSCService::CreateSystemChannel().
|
inline |
Definition at line 54 of file LSCDB.h.
References GetChannelName().
Referenced by LSCService::CreateSystemChannel().
bool LSCDB::IsChannelIDAvailable | ( | int32 | channel_ID | ) |
Definition at line 172 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), and sDatabase.
bool LSCDB::IsChannelNameAvailable | ( | std::string | name | ) |
Definition at line 145 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), and sDatabase.
Definition at line 198 of file LSCDB.cpp.
References _log, DBerror::c_str(), DBQueryResult::error, DBQueryResult::GetRow(), and sDatabase.
bool LSCDB::MarkMessageRead | ( | uint32 | messageID | ) |
Definition at line 505 of file LSCDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
uint32 LSCDB::StoreMail | ( | uint32 | senderID, |
uint32 | recipID, | ||
const char * | subject, | ||
const char * | message, | ||
int64 | sentTime | ||
) |
Definition at line 399 of file LSCDB.cpp.
References _log, DBerror::c_str(), and sDatabase.
Referenced by LSCService::SendMail().
void LSCDB::UpdateChannelInfo | ( | LSCChannel * | channel | ) |
Definition at line 88 of file LSCDB.cpp.
References _log, DBerror::c_str(), LSCChannel::GetChannelID(), LSCChannel::GetComparisonKey(), LSCChannel::GetCSPA(), LSCChannel::GetDisplayName(), LSCChannel::GetMailingList(), LSCChannel::GetMemberless(), LSCChannel::GetMOTD(), LSCChannel::GetOwnerID(), LSCChannel::GetPassword(), and sDatabase.
Definition at line 121 of file LSCDB.cpp.
References Client::GetAccountRole(), Client::GetAllianceID(), Client::GetCharacterID(), Client::GetCorporationID(), and sDatabase.