![]() |
TrinityCore
|
#include <PetitionMgr.h>
Public Member Functions | |
| bool | IsPetitionSignedByAccount (uint32 accountId) const |
| void | AddSignature (uint32 accountId, ObjectGuid playerGuid, bool isLoading) |
| void | UpdateName (std::string const &newName) |
| void | RemoveSignatureBySigner (ObjectGuid playerGuid) |
Public Attributes | |
| ObjectGuid | PetitionGuid |
| ObjectGuid | OwnerGuid |
| std::string | PetitionName |
| SignaturesVector | Signatures |
Definition at line 53 of file PetitionMgr.h.
| void Petition::AddSignature | ( | uint32 | accountId, |
| ObjectGuid | playerGuid, | ||
| bool | isLoading | ||
| ) |
Definition at line 186 of file PetitionMgr.cpp.
References CHAR_INS_PETITION_SIGNATURE, CharacterDatabase, ObjectGuid::GetCounter(), OwnerGuid, PetitionGuid, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), and Signatures.
Referenced by WorldSession::HandleSignPetition(), and PetitionMgr::LoadSignatures().
| bool Petition::IsPetitionSignedByAccount | ( | uint32 | accountId | ) | const |
Definition at line 177 of file PetitionMgr.cpp.
References Signatures.
Referenced by WorldSession::HandleSignPetition().
| void Petition::RemoveSignatureBySigner | ( | ObjectGuid | playerGuid | ) |
Definition at line 213 of file PetitionMgr.cpp.
References ObjectAccessor::FindConnectedPlayer(), OwnerGuid, PetitionGuid, and Signatures.
| void Petition::UpdateName | ( | std::string const & | newName | ) |
Definition at line 203 of file PetitionMgr.cpp.
References CHAR_UPD_PETITION_NAME, CharacterDatabase, ObjectGuid::GetCounter(), PetitionGuid, PetitionName, PreparedStatementBase::setString(), and PreparedStatementBase::setUInt64().
Referenced by WorldSession::HandlePetitionRenameGuild().
| ObjectGuid Petition::OwnerGuid |
Definition at line 56 of file PetitionMgr.h.
Referenced by PetitionMgr::AddPetition(), AddSignature(), WorldSession::HandleSignPetition(), WorldSession::HandleTurnInPetition(), RemoveSignatureBySigner(), WorldSession::SendPetitionQueryOpcode(), and WorldSession::SendPetitionSigns().
| ObjectGuid Petition::PetitionGuid |
Definition at line 55 of file PetitionMgr.h.
Referenced by PetitionMgr::AddPetition(), AddSignature(), RemoveSignatureBySigner(), WorldSession::SendPetitionSigns(), and UpdateName().
| std::string Petition::PetitionName |
Definition at line 57 of file PetitionMgr.h.
Referenced by PetitionMgr::AddPetition(), WorldSession::HandleTurnInPetition(), WorldSession::SendPetitionQueryOpcode(), and UpdateName().
| SignaturesVector Petition::Signatures |
Definition at line 58 of file PetitionMgr.h.
Referenced by PetitionMgr::AddPetition(), AddSignature(), WorldSession::HandleSignPetition(), WorldSession::HandleTurnInPetition(), IsPetitionSignedByAccount(), RemoveSignatureBySigner(), and WorldSession::SendPetitionSigns().