AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "TicketMgr.h"
Public Member Functions | |
void | LoadTickets () |
void | LoadSurveys () |
GmTicket * | GetTicket (uint32 ticketId) |
GmTicket * | GetTicketByPlayer (ObjectGuid playerGuid) |
GmTicket * | GetOldestOpenTicket () |
void | AddTicket (GmTicket *ticket) |
void | CloseTicket (uint32 ticketId, ObjectGuid source=ObjectGuid::Empty) |
void | ResolveAndCloseTicket (uint32 ticketId, ObjectGuid source) |
void | RemoveTicket (uint32 ticketId) |
bool | GetStatus () const |
void | SetStatus (bool status) |
uint64 | GetLastChange () const |
void | UpdateLastChange () |
uint32 | GenerateTicketId () |
uint32 | GetOpenTicketCount () const |
uint32 | GetNextSurveyID () |
void | Initialize () |
void | ResetTickets () |
void | ShowList (ChatHandler &handler, bool onlineOnly) const |
void | ShowClosedList (ChatHandler &handler) const |
void | ShowEscalatedList (ChatHandler &handler) const |
void | SendTicket (WorldSession *session, GmTicket *ticket) const |
Static Public Member Functions | |
static TicketMgr * | instance () |
Protected Member Functions | |
void | _RemoveTicket (uint32 ticketId, int64 source=-1, bool permanently=false) |
Protected Attributes | |
GmTicketList | _ticketList |
bool | _status |
uint32 | _lastTicketId |
uint32 | _lastSurveyId |
uint32 | _openTicketCount |
uint64 | _lastChange |
Private Member Functions | |
TicketMgr () | |
~TicketMgr () | |
|
private |
|
private |
References _ticketList.
|
protected |
void TicketMgr::AddTicket | ( | GmTicket * | ticket | ) |
References _openTicketCount, _ticketList, GmTicket::GetId(), GmTicket::IsClosed(), and GmTicket::SaveToDB().
void TicketMgr::CloseTicket | ( | uint32 | ticketId, |
ObjectGuid | source = ObjectGuid::Empty |
||
) |
References _openTicketCount, and GetTicket().
|
inline |
References _lastTicketId.
|
inline |
References _lastChange.
|
inline |
References _lastSurveyId.
|
inline |
References _ticketList.
|
inline |
References _openTicketCount.
References _ticketList.
Referenced by CloseTicket(), RemoveTicket(), and ResolveAndCloseTicket().
|
inline |
References _ticketList.
void TicketMgr::Initialize | ( | ) |
References CONFIG_ALLOW_TICKETS, SetStatus(), and sWorld.
|
static |
void TicketMgr::LoadSurveys | ( | ) |
References _lastSurveyId, CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), and LOG_INFO.
void TicketMgr::LoadTickets | ( | ) |
References _lastTicketId, _openTicketCount, _ticketList, CHAR_SEL_GM_TICKETS, CharacterDatabase, GmTicket::GetId(), getMSTime(), GetMSTimeDiffToNow(), GmTicket::IsClosed(), GmTicket::LoadFromDB(), LOG_INFO, and LOG_WARN.
void TicketMgr::RemoveTicket | ( | uint32 | ticketId | ) |
References _ticketList, and GetTicket().
void TicketMgr::ResetTickets | ( | ) |
References _lastTicketId, _ticketList, CHAR_DEL_ALL_GM_TICKETS, CharacterDatabase, and sTicketMgr.
void TicketMgr::ResolveAndCloseTicket | ( | uint32 | ticketId, |
ObjectGuid | source | ||
) |
References _openTicketCount, and GetTicket().
void TicketMgr::SendTicket | ( | WorldSession * | session, |
GmTicket * | ticket | ||
) | const |
References GMTICKET_STATUS_DEFAULT, WorldSession::SendPacket(), SMSG_GMTICKET_GETTICKET, and GmTicket::WritePacket().
|
inline |
void TicketMgr::ShowClosedList | ( | ChatHandler & | handler | ) | const |
References _ticketList, LANG_COMMAND_TICKETSHOWCLOSEDLIST, and ChatHandler::SendSysMessage().
void TicketMgr::ShowEscalatedList | ( | ChatHandler & | handler | ) | const |
References _ticketList, LANG_COMMAND_TICKETSHOWESCALATEDLIST, ChatHandler::SendSysMessage(), and TICKET_IN_ESCALATION_QUEUE.
void TicketMgr::ShowList | ( | ChatHandler & | handler, |
bool | onlineOnly | ||
) | const |
References _ticketList, LANG_COMMAND_TICKETSHOWLIST, LANG_COMMAND_TICKETSHOWONLINELIST, and ChatHandler::SendSysMessage().
void TicketMgr::UpdateLastChange | ( | ) |
References _lastChange, and GameTime::GetGameTime().
|
protected |
Referenced by GetLastChange(), and UpdateLastChange().
|
protected |
Referenced by GetNextSurveyID(), and LoadSurveys().
|
protected |
Referenced by GenerateTicketId(), LoadTickets(), and ResetTickets().
|
protected |
Referenced by AddTicket(), CloseTicket(), GetOpenTicketCount(), LoadTickets(), and ResolveAndCloseTicket().
|
protected |
Referenced by GetStatus(), and SetStatus().
|
protected |