![]() |
TrinityCore
|
#include <PetitionMgr.h>
Public Member Functions | |
| PetitionMgr ()=default | |
| PetitionMgr (PetitionMgr const &)=delete | |
| PetitionMgr (PetitionMgr &&)=delete | |
| PetitionMgr & | operator= (PetitionMgr const &)=delete |
| PetitionMgr & | operator= (PetitionMgr &&)=delete |
| ~PetitionMgr ()=default | |
| void | LoadPetitions () |
| void | LoadSignatures () |
| void | AddPetition (ObjectGuid petitionGuid, ObjectGuid ownerGuid, std::string const &name, bool isLoading) |
| void | RemovePetition (ObjectGuid petitionGuid) |
| Petition * | GetPetition (ObjectGuid petitionGuid) |
| Petition * | GetPetitionByOwner (ObjectGuid ownerGuid) |
| void | RemovePetitionsByOwner (ObjectGuid ownerGuid) |
| void | RemoveSignaturesBySigner (ObjectGuid signerGuid) |
Static Public Member Functions | |
| static PetitionMgr * | instance () |
Definition at line 66 of file PetitionMgr.h.
|
default |
|
delete |
|
delete |
|
default |
| void PetitionMgr::AddPetition | ( | ObjectGuid | petitionGuid, |
| ObjectGuid | ownerGuid, | ||
| std::string const & | name, | ||
| bool | isLoading | ||
| ) |
Definition at line 88 of file PetitionMgr.cpp.
References CHAR_INS_PETITION, CharacterDatabase, ObjectGuid::GetCounter(), Petition::OwnerGuid, Petition::PetitionGuid, Petition::PetitionName, PreparedStatementBase::setString(), PreparedStatementBase::setUInt64(), and Petition::Signatures.
Referenced by LoadPetitions().
| Petition * PetitionMgr::GetPetition | ( | ObjectGuid | petitionGuid | ) |
Definition at line 124 of file PetitionMgr.cpp.
Referenced by LoadSignatures().
| Petition * PetitionMgr::GetPetitionByOwner | ( | ObjectGuid | ownerGuid | ) |
Definition at line 133 of file PetitionMgr.cpp.
|
static |
| void PetitionMgr::LoadPetitions | ( | ) |
Definition at line 38 of file PetitionMgr.cpp.
References AddPetition(), CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), and TC_LOG_INFO.
| void PetitionMgr::LoadSignatures | ( | ) |
Definition at line 61 of file PetitionMgr.cpp.
References Petition::AddSignature(), CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), GetPetition(), and TC_LOG_INFO.
|
delete |
|
delete |
| void PetitionMgr::RemovePetition | ( | ObjectGuid | petitionGuid | ) |
Definition at line 106 of file PetitionMgr.cpp.
References CHAR_DEL_PETITION_BY_GUID, CHAR_DEL_PETITION_SIGNATURE_BY_GUID, CharacterDatabase, ObjectGuid::GetCounter(), and PreparedStatementBase::setUInt64().
| void PetitionMgr::RemovePetitionsByOwner | ( | ObjectGuid | ownerGuid | ) |
Definition at line 142 of file PetitionMgr.cpp.
References CHAR_DEL_PETITION_BY_OWNER, CHAR_DEL_PETITION_SIGNATURE_BY_OWNER, CharacterDatabase, ObjectGuid::GetCounter(), and PreparedStatementBase::setUInt32().
| void PetitionMgr::RemoveSignaturesBySigner | ( | ObjectGuid | signerGuid | ) |
Definition at line 167 of file PetitionMgr.cpp.
References CHAR_DEL_ALL_PETITION_SIGNATURES, CharacterDatabase, ObjectGuid::GetCounter(), and PreparedStatementBase::setUInt32().