EvEmu
0.8.4
11 September 2021
|
#include "AllianceDB.h"
AllianceDB.cpp | |
database methods for alliance data
| |
PyRep * | GetEmploymentRecord (uint32 corpID) |
bool | AddEmployment (uint32 allyID, uint32 corpID) |
bool | CreateAlliance (Call_CreateAlliance &allyInfo, Client *pClient, uint32 &allyID, uint32 &corpID) |
PyRep * | GetBulletins (uint32 allyID) |
void | AddBulletin (uint32 allyID, uint32 ownerID, uint32 cCharID, std::string &title, std::string &body) |
PyRep * | GetMyApplications (uint32 allyID) |
PyRep * | GetApplications (uint32 allyID) |
PyRep * | GetAlliance (uint32 allyID) |
PyRep * | GetContacts (uint32 allyID) |
void | AddContact (uint32 ownerID, Call_CorporateContactData contactData) |
void | UpdateContact (int32 relationshipID, uint32 contactID, uint32 ownerID) |
void | RemoveContact (uint32 contactID, uint32 ownerID) |
PyRep * | GetLabels (uint32 allyID) |
void | SetLabel (uint32 allyID, uint32 color, std::string name) |
void | EditLabel (uint32 allyID, uint32 labelID, uint32 color, std::string name) |
void | DeleteLabel (uint32 allyID, uint32 labelID) |
bool | InsertApplication (Alliance::ApplicationInfo &aInfo) |
bool | UpdateApplication (const Alliance::ApplicationInfo &aInfo) |
bool | DeleteApplication (const Alliance::ApplicationInfo &aInfo) |
bool | GetCurrentApplicationInfo (uint32 allyID, uint32 corpID, Alliance::ApplicationInfo &aInfo) |
bool | IsShortNameTaken (std::string shortName) |
bool | UpdateCorpAlliance (uint32 allyID, uint32 corpID) |
void | DeleteMember (uint32 allyID, uint32 corpID) |
void | DeclareExecutorSupport (uint32 corpID, uint32 chosenExecutor) |
void | UpdateAlliance (uint32 allyID, std::string description, std::string url) |
PyRep * | GetMembers (uint32 allyID) |
PyRep * | GetAllianceMembers (uint32 allyID) |
PyRep * | GetRankedAlliances () |
bool | CreateAllianceChangePacket (OnAllianceChanged &ac, uint32 oldAllyID, uint32 newAllyID) |
static void | EditBulletin (uint32 bulletinID, uint32 eCharID, int64 eDataTime, std::string &title, std::string &body) |
static void | DeleteBulletin (uint32 bulletinID) |
static uint32 | GetExecutorID (uint32 allyID) |
Definition at line 26 of file AllianceDB.h.
void AllianceDB::AddBulletin | ( | uint32 | allyID, |
uint32 | ownerID, | ||
uint32 | cCharID, | ||
std::string & | title, | ||
std::string & | body | ||
) |
Definition at line 16 of file AllianceDB.cpp.
References GetFileTimeNow(), and sDatabase.
void AllianceDB::AddContact | ( | uint32 | ownerID, |
Call_CorporateContactData | contactData | ||
) |
Definition at line 299 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, GetFileTimeNow(), and sDatabase.
bool AllianceDB::CreateAlliance | ( | Call_CreateAlliance & | allyInfo, |
Client * | pClient, | ||
uint32 & | allyID, | ||
uint32 & | corpID | ||
) |
Definition at line 430 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, RefPtr< X >::get(), Client::GetChar(), Client::GetCharacterID(), Client::GetCorporationID(), GetFileTimeNow(), and sDatabase.
bool AllianceDB::CreateAllianceChangePacket | ( | OnAllianceChanged & | ac, |
uint32 | oldAllyID, | ||
uint32 | newAllyID | ||
) |
Definition at line 518 of file AllianceDB.cpp.
References codelog, DBResultRow::GetInt(), DBResultRow::GetInt64(), DBQueryResult::GetRow(), DBResultRow::GetText(), DBResultRow::GetUInt(), PyStatic, and sDatabase.
Definition at line 392 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, and sDatabase.
bool AllianceDB::DeleteApplication | ( | const Alliance::ApplicationInfo & | aInfo | ) |
Definition at line 209 of file AllianceDB.cpp.
References Alliance::ApplicationInfo::allyID, DBerror::c_str(), codelog, Alliance::ApplicationInfo::corpID, and sDatabase.
|
static |
Definition at line 291 of file AllianceDB.cpp.
Definition at line 374 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, and sDatabase.
|
static |
Definition at line 25 of file AllianceDB.cpp.
References DBerror::c_str(), and sDatabase.
Definition at line 295 of file AllianceDB.cpp.
Definition at line 58 of file AllianceDB.cpp.
References codelog, DBRowToPackedRow(), DBQueryResult::GetRow(), and sDatabase.
Definition at line 484 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, DBResultToRowset(), DBQueryResult::error, and sDatabase.
Definition at line 108 of file AllianceDB.cpp.
References EveAlliance::AppStatus::AppAccepted, EveAlliance::AppStatus::AppRejected, DBerror::c_str(), codelog, DBResultToCIndexedRowset(), PyRep::Dump(), DBQueryResult::error, is_log_enabled, and sDatabase.
Definition at line 43 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, DBResultToCRowset(), DBQueryResult::error, and sDatabase.
Definition at line 223 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, DBResultToCIndexedRowset(), PyRep::Dump(), DBQueryResult::error, is_log_enabled, and sDatabase.
bool AllianceDB::GetCurrentApplicationInfo | ( | uint32 | allyID, |
uint32 | corpID, | ||
Alliance::ApplicationInfo & | aInfo | ||
) |
Definition at line 128 of file AllianceDB.cpp.
References Alliance::ApplicationInfo::allyID, Alliance::ApplicationInfo::appID, Alliance::ApplicationInfo::appText, Alliance::ApplicationInfo::appTime, DBerror::c_str(), codelog, Alliance::ApplicationInfo::corpID, Alliance::ApplicationInfo::deleted, DBQueryResult::error, DBResultRow::GetInt(), DBResultRow::GetInt64(), DBQueryResult::GetRow(), DBResultRow::GetText(), sDatabase, Alliance::ApplicationInfo::state, and Alliance::ApplicationInfo::valid.
Definition at line 316 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, DBResultToRowset(), DBQueryResult::error, and sDatabase.
Definition at line 334 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, DBQueryResult::error, DBQueryResult::GetRow(), DBResultRow::GetUInt(), and sDatabase.
Referenced by AllianceBound::FillOAMemberChange(), and UpdateCorpAlliance().
Definition at line 270 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, DBResultToCIndexedRowset(), DBQueryResult::error, and sDatabase.
Definition at line 461 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, DBResultToIndexRowset(), PyRep::Dump(), DBQueryResult::error, is_log_enabled, and sDatabase.
Definition at line 86 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, DBResultToCIndexedRowset(), PyRep::Dump(), DBQueryResult::error, is_log_enabled, and sDatabase.
PyRep * AllianceDB::GetRankedAlliances | ( | ) |
Definition at line 501 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, DBResultToRowset(), DBQueryResult::error, and sDatabase.
bool AllianceDB::InsertApplication | ( | Alliance::ApplicationInfo & | aInfo | ) |
Definition at line 162 of file AllianceDB.cpp.
References _log, Alliance::ApplicationInfo::allyID, Alliance::ApplicationInfo::appID, Alliance::ApplicationInfo::appText, DBerror::c_str(), codelog, Alliance::ApplicationInfo::corpID, GetFileTimeNow(), sDatabase, Alliance::ApplicationInfo::state, and Alliance::ApplicationInfo::valid.
bool AllianceDB::IsShortNameTaken | ( | std::string | shortName | ) |
Definition at line 405 of file AllianceDB.cpp.
References DBQueryResult::GetRowCount(), and sDatabase.
Definition at line 282 of file AllianceDB.cpp.
References sDatabase.
void AllianceDB::UpdateAlliance | ( | uint32 | allyID, |
std::string | description, | ||
std::string | url | ||
) |
Definition at line 412 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, and sDatabase.
bool AllianceDB::UpdateApplication | ( | const Alliance::ApplicationInfo & | aInfo | ) |
Definition at line 186 of file AllianceDB.cpp.
References _log, Alliance::ApplicationInfo::appText, DBerror::c_str(), codelog, Alliance::ApplicationInfo::corpID, sDatabase, Alliance::ApplicationInfo::state, and Alliance::ApplicationInfo::valid.
Definition at line 355 of file AllianceDB.cpp.
References DBerror::c_str(), codelog, GetExecutorID(), GetFileTimeNow(), and sDatabase.