|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <TicketMgr.h>
Public Member Functions | |
| void | AddTicket (BugTicket *ticket) |
| void | AddTicket (GmTicket *ticket) |
| void | AddTicket (SuggestTicket *ticket) |
| template<> | |
| void | CloseTicket (uint32 ticketId, int64 closedBy) |
| template<> | |
| void | CloseTicket (uint32 ticketId, int64 closedBy) |
| template<> | |
| void | CloseTicket (uint32 ticketId, int64 closedBy) |
| template<typename T> | |
| void | CloseTicket (uint32 ticketId, int64 closedBy) |
| uint32 | GenerateBugId () |
| uint32 | GenerateGmTicketId () |
| uint32 | GenerateSuggestId () |
| bool | GetFeedBackSystemStatus () const |
| GmTicket * | GetGmTicketByPlayerGuid (ObjectGuid playerGuid) const |
| bool | GetGmTicketSystemStatus () const |
| uint64 | GetLastChange () const |
| uint32 | GetNextSurveyID () |
| GmTicket * | GetOldestOpenTicket () |
| template<> | |
| uint32 | GetOpenTicketCount () const |
| template<> | |
| uint32 | GetOpenTicketCount () const |
| template<> | |
| uint32 | GetOpenTicketCount () const |
| template<typename T> | |
| uint32 | GetOpenTicketCount () const |
| template<> | |
| BugTicket * | GetTicket (uint32 bugId) |
| template<> | |
| SuggestTicket * | GetTicket (uint32 ticketId) |
| template<> | |
| GmTicket * | GetTicket (uint32 ticketId) |
| GmTicket * | GetTicket (uint32 ticketId) |
| template<typename T> | |
| T * | GetTicket (uint32 ticketId) |
| void | Initialize () |
| void | LoadBugTickets () |
| void | LoadGmTickets () |
| void | LoadSuggestTickets () |
| void | LoadSurveys () |
| template<> | |
| void | RemoveTicket (uint32 ticketId) |
| template<> | |
| void | RemoveTicket (uint32 ticketId) |
| template<> | |
| void | RemoveTicket (uint32 ticketId) |
| template<typename T> | |
| void | RemoveTicket (uint32 ticketId) |
| template<> | |
| void | ResetTickets () |
| template<> | |
| void | ResetTickets () |
| template<> | |
| void | ResetTickets () |
| template<typename T> | |
| void | ResetTickets () |
| void | SendGmResponsee (WorldSession *session, GmTicket *ticket) const |
| void | SendGmTicket (WorldSession *session, GmTicket *ticket) const |
| @ response Packets | |
| void | SendGmTicketUpdate (Opcodes opcode, GMTicketResponse response, Player *player) const |
| void | SetFeedBackSystemStatus (bool status) |
| void | SetGmTicketSystemStatus (bool status) |
| template<> | |
| void | ShowClosedList (ChatHandler &handler) const |
| template<> | |
| void | ShowClosedList (ChatHandler &handler) const |
| template<> | |
| void | ShowClosedList (ChatHandler &handler) const |
| template<typename T> | |
| void | ShowClosedList (ChatHandler &handler) const |
| void | ShowGmEscalatedList (ChatHandler &handler) const |
| template<> | |
| void | ShowList (ChatHandler &handler) const |
| template<> | |
| void | ShowList (ChatHandler &handler) const |
| template<> | |
| void | ShowList (ChatHandler &handler) const |
| template<typename T> | |
| void | ShowList (ChatHandler &handler) const |
| template<> | |
| void | ShowList (ChatHandler &handler, bool onlineOnly) const |
| template<typename T> | |
| void | ShowList (ChatHandler &handler, bool onlineOnly) const |
| void | UpdateLastChange () |
Static Public Member Functions | |
| static TicketMgr * | instance () |
Private Member Functions | |
| TicketMgr () | |
| ~TicketMgr () | |
Friends | |
| class | Skyfire::Singleton< TicketMgr, Skyfire::NullMutex > |
Definition at line 19 of file TicketMgr.h.
|
private |
Definition at line 20 of file TicketMgr.cpp.
References _feedbackSystemStatus, _gmTicketSystemStatus, _lastBugId, _lastChange, _lastGmTicketId, _lastSuggestId, _lastSurveyId, _openBugTicketCount, _openGmTicketCount, and _openSuggestTicketCount.
Referenced by instance().
|
private |
Definition at line 24 of file TicketMgr.cpp.
References _bugTicketList, _gmTicketList, and _suggestTicketList.
| void TicketMgr::AddTicket | ( | BugTicket * | ticket | ) |
Definition at line 188 of file TicketMgr.cpp.
References _bugTicketList, _openBugTicketCount, TicketInfo::GetTicketId(), TicketInfo::IsClosed(), and BugTicket::SaveToDB().
| void TicketMgr::AddTicket | ( | GmTicket * | ticket | ) |
Definition at line 178 of file TicketMgr.cpp.
References _gmTicketList, _openGmTicketCount, TicketInfo::GetTicketId(), TicketInfo::IsClosed(), and GmTicket::SaveToDB().
| void TicketMgr::AddTicket | ( | SuggestTicket * | ticket | ) |
Definition at line 198 of file TicketMgr.cpp.
References _openSuggestTicketCount, _suggestTicketList, TicketInfo::GetTicketId(), TicketInfo::IsClosed(), and SuggestTicket::SaveToDB().
Definition at line 306 of file TicketMgr.cpp.
References _openSuggestTicketCount, and GetTicket().
Definition at line 293 of file TicketMgr.cpp.
References _openBugTicketCount, and GetTicket().
Definition at line 280 of file TicketMgr.cpp.
References _openGmTicketCount, and GetTicket().
|
inline |
Definition at line 97 of file TicketMgr.h.
References _lastBugId.
|
inline |
Definition at line 96 of file TicketMgr.h.
References _lastGmTicketId.
|
inline |
Definition at line 98 of file TicketMgr.h.
References _lastSuggestId.
|
inline |
Definition at line 66 of file TicketMgr.h.
References _feedbackSystemStatus.
|
inline |
Definition at line 39 of file TicketMgr.h.
References _gmTicketList.
|
inline |
Definition at line 67 of file TicketMgr.h.
References _gmTicketSystemStatus.
|
inline |
Definition at line 69 of file TicketMgr.h.
References _lastChange.
|
inline |
Definition at line 99 of file TicketMgr.h.
References _lastSurveyId.
|
inline |
Definition at line 57 of file TicketMgr.h.
References _gmTicketList.
| uint32 TicketMgr::GetOpenTicketCount | ( | ) | const |
Definition at line 218 of file TicketMgr.cpp.
References _openSuggestTicketCount.
| uint32 TicketMgr::GetOpenTicketCount | ( | ) | const |
Definition at line 213 of file TicketMgr.cpp.
References _openBugTicketCount.
| uint32 TicketMgr::GetOpenTicketCount | ( | ) | const |
Definition at line 208 of file TicketMgr.cpp.
References _openGmTicketCount.
| uint32 TicketMgr::GetOpenTicketCount | ( | ) | const |
Definition at line 232 of file TicketMgr.cpp.
References _bugTicketList.
| SuggestTicket * TicketMgr::GetTicket | ( | uint32 | ticketId | ) |
Definition at line 241 of file TicketMgr.cpp.
References _suggestTicketList.
Definition at line 223 of file TicketMgr.cpp.
References _gmTicketList.
Definition at line 48 of file TicketMgr.h.
References _gmTicketList.
| T * TicketMgr::GetTicket | ( | uint32 | ticketId | ) |
Referenced by CloseTicket(), and RemoveTicket().
| void TicketMgr::Initialize | ( | ) |
Definition at line 36 of file TicketMgr.cpp.
References CONFIG_TICKETS_FEEDBACK_SYSTEM_ENABLED, CONFIG_TICKETS_GM_ENABLED, SetFeedBackSystemStatus(), SetGmTicketSystemStatus(), and sWorld.
|
inlinestatic |
Definition at line 28 of file TicketMgr.h.
References instance(), and TicketMgr().
Referenced by instance().
| void TicketMgr::LoadBugTickets | ( | ) |
Definition at line 83 of file TicketMgr.cpp.
References _bugTicketList, _lastBugId, _openBugTicketCount, CHAR_SEL_GM_BUGS, CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), TicketInfo::GetTicketId(), TicketInfo::IsClosed(), BugTicket::LoadFromDB(), and SF_LOG_INFO.
| void TicketMgr::LoadGmTickets | ( | ) |
Definition at line 42 of file TicketMgr.cpp.
References _gmTicketList, _lastGmTicketId, _openGmTicketCount, CHAR_SEL_GM_TICKETS, CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), TicketInfo::GetTicketId(), TicketInfo::IsClosed(), GmTicket::LoadFromDB(), and SF_LOG_INFO.
| void TicketMgr::LoadSuggestTickets | ( | ) |
Definition at line 124 of file TicketMgr.cpp.
References _lastSuggestId, _openSuggestTicketCount, _suggestTicketList, CHAR_SEL_GM_SUGGESTS, CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), TicketInfo::GetTicketId(), TicketInfo::IsClosed(), SuggestTicket::LoadFromDB(), and SF_LOG_INFO.
| void TicketMgr::LoadSurveys | ( | ) |
Definition at line 165 of file TicketMgr.cpp.
References _lastSurveyId, CharacterDatabase, getMSTime(), GetMSTimeDiffToNow(), and SF_LOG_INFO.
| void TicketMgr::RemoveTicket | ( | uint32 | ticketId | ) |
Definition at line 270 of file TicketMgr.cpp.
References _suggestTicketList, and GetTicket().
| void TicketMgr::RemoveTicket | ( | uint32 | ticketId | ) |
Definition at line 260 of file TicketMgr.cpp.
References _bugTicketList, and GetTicket().
| void TicketMgr::RemoveTicket | ( | uint32 | ticketId | ) |
Definition at line 250 of file TicketMgr.cpp.
References _gmTicketList, and GetTicket().
| void TicketMgr::RemoveTicket | ( | uint32 | ticketId | ) |
| void TicketMgr::ResetTickets | ( | ) |
Definition at line 345 of file TicketMgr.cpp.
References _lastSuggestId, _suggestTicketList, CHAR_DEL_ALL_GM_SUGGESTS, and CharacterDatabase.
| void TicketMgr::ResetTickets | ( | ) |
Definition at line 332 of file TicketMgr.cpp.
References _bugTicketList, _lastBugId, CHAR_DEL_ALL_GM_BUGS, and CharacterDatabase.
| void TicketMgr::ResetTickets | ( | ) |
Definition at line 319 of file TicketMgr.cpp.
References _gmTicketList, _lastGmTicketId, CHAR_DEL_ALL_GM_TICKETS, and CharacterDatabase.
| void TicketMgr::ResetTickets | ( | ) |
| void TicketMgr::SendGmResponsee | ( | WorldSession * | session, |
| GmTicket * | ticket ) const |
Definition at line 461 of file TicketMgr.cpp.
References ByteBuffer::FlushBits(), GmTicket::GetMessage(), GmTicket::GetResponse(), TicketInfo::GetTicketId(), WorldSession::SendPacket(), SMSG_GM_TICKET_RESPONSE, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteString().
| void TicketMgr::SendGmTicket | ( | WorldSession * | session, |
| GmTicket * | ticket ) const |
@ response Packets
Definition at line 425 of file TicketMgr.cpp.
References ByteBuffer::FlushBits(), GetAge(), GmTicket::GetEscalatedStatus(), TicketInfo::GetMapId(), GmTicket::GetMessage(), TicketInfo::GetTicketId(), GmTicket::GetViewed(), GMTICKET_OPENEDBYGM_STATUS_NOT_OPENED, GMTICKET_OPENEDBYGM_STATUS_OPENED, GMTICKET_STATUS_DEFAULT, GMTICKET_STATUS_HASTEXT, WorldSession::SendPacket(), SMSG_GM_TICKET_GET_TICKET, sTicketMgr, TICKET_IN_ESCALATION_QUEUE, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), and ByteBuffer::WriteString().
| void TicketMgr::SendGmTicketUpdate | ( | Opcodes | opcode, |
| GMTicketResponse | response, | ||
| Player * | player ) const |
Definition at line 483 of file TicketMgr.cpp.
References Player::GetSession(), Object::IsInWorld(), and WorldSession::SendPacket().
|
inline |
Definition at line 71 of file TicketMgr.h.
References _feedbackSystemStatus.
Referenced by Initialize().
|
inline |
Definition at line 72 of file TicketMgr.h.
References _gmTicketSystemStatus.
Referenced by Initialize().
| void TicketMgr::ShowClosedList | ( | ChatHandler & | handler | ) | const |
Definition at line 407 of file TicketMgr.cpp.
References _suggestTicketList, LANG_COMMAND_TICKETSHOWCLOSEDLIST, and ChatHandler::SendSysMessage().
| void TicketMgr::ShowClosedList | ( | ChatHandler & | handler | ) | const |
Definition at line 399 of file TicketMgr.cpp.
References _bugTicketList, LANG_COMMAND_TICKETSHOWCLOSEDLIST, and ChatHandler::SendSysMessage().
| void TicketMgr::ShowClosedList | ( | ChatHandler & | handler | ) | const |
Definition at line 391 of file TicketMgr.cpp.
References _gmTicketList, LANG_COMMAND_TICKETSHOWCLOSEDLIST, and ChatHandler::SendSysMessage().
| void TicketMgr::ShowClosedList | ( | ChatHandler & | handler | ) | const |
| void TicketMgr::ShowGmEscalatedList | ( | ChatHandler & | handler | ) | const |
Definition at line 415 of file TicketMgr.cpp.
References _gmTicketList, LANG_COMMAND_TICKETSHOWESCALATEDLIST, ChatHandler::SendSysMessage(), and TICKET_IN_ESCALATION_QUEUE.
| void TicketMgr::ShowList | ( | ChatHandler & | handler | ) | const |
Definition at line 383 of file TicketMgr.cpp.
References _suggestTicketList, LANG_COMMAND_TICKETSHOWLIST, and ChatHandler::SendSysMessage().
| void TicketMgr::ShowList | ( | ChatHandler & | handler | ) | const |
Definition at line 375 of file TicketMgr.cpp.
References _bugTicketList, LANG_COMMAND_TICKETSHOWLIST, and ChatHandler::SendSysMessage().
| void TicketMgr::ShowList | ( | ChatHandler & | handler | ) | const |
Definition at line 367 of file TicketMgr.cpp.
References _gmTicketList, LANG_COMMAND_TICKETSHOWLIST, and ChatHandler::SendSysMessage().
| void TicketMgr::ShowList | ( | ChatHandler & | handler | ) | const |
| void TicketMgr::ShowList | ( | ChatHandler & | handler, |
| bool | onlineOnly ) const |
Definition at line 358 of file TicketMgr.cpp.
References _gmTicketList, LANG_COMMAND_TICKETSHOWLIST, LANG_COMMAND_TICKETSHOWONLINELIST, and ChatHandler::SendSysMessage().
| void TicketMgr::ShowList | ( | ChatHandler & | handler, |
| bool | onlineOnly ) const |
|
inline |
Definition at line 94 of file TicketMgr.h.
References _lastChange.
|
friend |
Definition at line 17 of file TicketMgr.h.
|
private |
Definition at line 105 of file TicketMgr.h.
Referenced by AddTicket(), GetTicket(), LoadBugTickets(), RemoveTicket(), ResetTickets(), ShowClosedList(), ShowList(), and ~TicketMgr().
|
private |
Definition at line 102 of file TicketMgr.h.
Referenced by GetFeedBackSystemStatus(), SetFeedBackSystemStatus(), and TicketMgr().
|
private |
Definition at line 104 of file TicketMgr.h.
Referenced by AddTicket(), GetGmTicketByPlayerGuid(), GetOldestOpenTicket(), GetTicket(), LoadGmTickets(), RemoveTicket(), ResetTickets(), ShowClosedList(), ShowGmEscalatedList(), ShowList(), ShowList(), and ~TicketMgr().
|
private |
Definition at line 103 of file TicketMgr.h.
Referenced by GetGmTicketSystemStatus(), SetGmTicketSystemStatus(), and TicketMgr().
|
private |
Definition at line 109 of file TicketMgr.h.
Referenced by GenerateBugId(), LoadBugTickets(), ResetTickets(), and TicketMgr().
|
private |
Definition at line 111 of file TicketMgr.h.
Referenced by GetLastChange(), TicketMgr(), and UpdateLastChange().
|
private |
Definition at line 107 of file TicketMgr.h.
Referenced by GenerateGmTicketId(), LoadGmTickets(), ResetTickets(), and TicketMgr().
|
private |
Definition at line 110 of file TicketMgr.h.
Referenced by GenerateSuggestId(), LoadSuggestTickets(), ResetTickets(), and TicketMgr().
|
private |
Definition at line 108 of file TicketMgr.h.
Referenced by GetNextSurveyID(), LoadSurveys(), and TicketMgr().
|
private |
Definition at line 113 of file TicketMgr.h.
Referenced by AddTicket(), CloseTicket(), GetOpenTicketCount(), LoadBugTickets(), and TicketMgr().
|
private |
Definition at line 112 of file TicketMgr.h.
Referenced by AddTicket(), CloseTicket(), GetOpenTicketCount(), LoadGmTickets(), and TicketMgr().
|
private |
Definition at line 114 of file TicketMgr.h.
Referenced by AddTicket(), CloseTicket(), GetOpenTicketCount(), LoadSuggestTickets(), and TicketMgr().
|
private |
Definition at line 106 of file TicketMgr.h.
Referenced by AddTicket(), GetTicket(), LoadSuggestTickets(), RemoveTicket(), ResetTickets(), ShowClosedList(), ShowList(), and ~TicketMgr().