![]() |
TrinityCore
|
#include <PetitionMgr.h>
Public Member Functions | |
| PetitionMgr () | |
| ~PetitionMgr () | |
| void | LoadPetitions () |
| void | LoadSignatures () |
| void | AddPetition (ObjectGuid petitionGuid, ObjectGuid ownerGuid, std::string const &name, CharterTypes type, bool isLoading) |
| void | RemovePetition (ObjectGuid petitionGuid) |
| Petition * | GetPetition (ObjectGuid petitionGuid) |
| Petition * | GetPetitionByOwnerWithType (ObjectGuid ownerGuid, CharterTypes type) |
| void | RemovePetitionsByOwnerAndType (ObjectGuid ownerGuid, CharterTypes type) |
| void | RemoveSignaturesBySignerAndType (ObjectGuid signerGuid, CharterTypes type) |
Static Public Member Functions | |
| static PetitionMgr * | instance () |
Definition at line 65 of file PetitionMgr.h.
|
inline |
Definition at line 68 of file PetitionMgr.h.
|
inline |
Definition at line 69 of file PetitionMgr.h.
| void PetitionMgr::AddPetition | ( | ObjectGuid | petitionGuid, |
| ObjectGuid | ownerGuid, | ||
| std::string const & | name, | ||
| CharterTypes | type, | ||
| bool | isLoading | ||
| ) |
Definition at line 89 of file PetitionMgr.cpp.
References CHAR_INS_PETITION, CharacterDatabase, ObjectGuid::GetCounter(), Petition::OwnerGuid, Petition::PetitionGuid, Petition::PetitionName, Petition::PetitionType, PreparedStatementBase::setString(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), and Petition::Signatures.
Referenced by LoadPetitions().
| Petition * PetitionMgr::GetPetition | ( | ObjectGuid | petitionGuid | ) |
Definition at line 127 of file PetitionMgr.cpp.
Referenced by LoadSignatures().
| Petition * PetitionMgr::GetPetitionByOwnerWithType | ( | ObjectGuid | ownerGuid, |
| CharterTypes | type | ||
| ) |
Definition at line 136 of file PetitionMgr.cpp.
|
static |
| void PetitionMgr::LoadPetitions | ( | ) |
Definition at line 39 of file PetitionMgr.cpp.
References AddPetition(), CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), and TC_LOG_INFO.
| void PetitionMgr::LoadSignatures | ( | ) |
Definition at line 62 of file PetitionMgr.cpp.
References Petition::AddSignature(), CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), GetPetition(), and TC_LOG_INFO.
| void PetitionMgr::RemovePetition | ( | ObjectGuid | petitionGuid | ) |
Definition at line 109 of file PetitionMgr.cpp.
References CHAR_DEL_PETITION_BY_GUID, CHAR_DEL_PETITION_SIGNATURE_BY_GUID, CharacterDatabase, ObjectGuid::GetCounter(), and PreparedStatementBase::setUInt32().
| void PetitionMgr::RemovePetitionsByOwnerAndType | ( | ObjectGuid | ownerGuid, |
| CharterTypes | type | ||
| ) |
Definition at line 145 of file PetitionMgr.cpp.
References CHAR_DEL_PETITION_BY_OWNER, CHAR_DEL_PETITION_BY_OWNER_AND_TYPE, CHAR_DEL_PETITION_SIGNATURE_BY_OWNER, CHAR_DEL_PETITION_SIGNATURE_BY_OWNER_AND_TYPE, CharacterDatabase, CHARTER_TYPE_ANY, ObjectGuid::GetCounter(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
| void PetitionMgr::RemoveSignaturesBySignerAndType | ( | ObjectGuid | signerGuid, |
| CharterTypes | type | ||
| ) |
Definition at line 192 of file PetitionMgr.cpp.
References CHAR_DEL_ALL_PETITION_SIGNATURES, CHAR_DEL_PETITION_SIGNATURE, CharacterDatabase, CHARTER_TYPE_ANY, ObjectGuid::GetCounter(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().