![]() |
TrinityCore
|
#include <SupportMgr.h>
Inheritance diagram for Ticket:Public Member Functions | |
| Ticket () | |
| Ticket (Player *player) | |
| Ticket (Ticket const &)=delete | |
| Ticket (Ticket &&)=delete | |
| Ticket & | operator= (Ticket const &)=delete |
| Ticket & | operator= (Ticket &&)=delete |
| virtual | ~Ticket () |
| bool | IsClosed () const |
| bool | IsFromPlayer (ObjectGuid guid) const |
| bool | IsAssigned () const |
| bool | IsAssignedTo (ObjectGuid guid) const |
| bool | IsAssignedNotTo (ObjectGuid guid) const |
| uint32 | GetId () const |
| ObjectGuid | GetPlayerGuid () const |
| Player * | GetPlayer () const |
| std::string | GetPlayerName () const |
| Player * | GetAssignedPlayer () const |
| ObjectGuid | GetAssignedToGUID () const |
| std::string | GetAssignedToName () const |
| std::string const & | GetComment () const |
| virtual void | SetAssignedTo (ObjectGuid guid, bool=false) |
| virtual void | SetUnassigned () |
| void | SetClosedBy (ObjectGuid value) |
| void | SetComment (std::string const &comment) |
| void | SetPosition (uint32 mapId, Position const &pos) |
| void | SetFacing (float facing) |
| virtual void | LoadFromDB (Field *fields)=0 |
| virtual void | SaveToDB () const =0 |
| virtual void | DeleteFromDB ()=0 |
| void | TeleportTo (Player *player) const |
| virtual std::string | FormatViewMessageString (ChatHandler &handler, bool detailed=false) const =0 |
| virtual std::string | FormatViewMessageString (ChatHandler &handler, const char *szClosedName, const char *szAssignedToName, const char *szUnassignedName, const char *szDeletedName) const |
Protected Attributes | |
| uint32 | _id |
| ObjectGuid | _playerGuid |
| uint16 | _mapId |
| Position | _pos |
| uint64 | _createTime |
| ObjectGuid | _closedBy |
| ObjectGuid | _assignedTo |
| std::string | _comment |
Definition at line 97 of file SupportMgr.h.
| Ticket::Ticket | ( | ) |
Definition at line 33 of file SupportMgr.cpp.
| Ticket::Ticket | ( | Player * | player | ) |
Definition at line 35 of file SupportMgr.cpp.
References _playerGuid, and BaseEntity::GetGUID().
|
delete |
|
delete |
|
virtual |
Definition at line 40 of file SupportMgr.cpp.
|
pure virtual |
Implemented in BugTicket, ComplaintTicket, and SuggestionTicket.
|
pure virtual |
Implemented in BugTicket, ComplaintTicket, SuggestionTicket, BugTicket, ComplaintTicket, and SuggestionTicket.
|
virtual |
Reimplemented in BugTicket, ComplaintTicket, and SuggestionTicket.
Definition at line 75 of file SupportMgr.cpp.
References _id, GetPlayerName(), LANG_COMMAND_TICKETCLOSED, LANG_COMMAND_TICKETDELETED, LANG_COMMAND_TICKETLISTASSIGNEDTO, LANG_COMMAND_TICKETLISTGUID, LANG_COMMAND_TICKETLISTNAME, LANG_COMMAND_TICKETLISTUNASSIGNED, and ChatHandler::PGetParseString().
| Player * Ticket::GetAssignedPlayer | ( | ) | const |
Definition at line 56 of file SupportMgr.cpp.
References _assignedTo, and ObjectAccessor::FindConnectedPlayer().
|
inline |
Definition at line 119 of file SupportMgr.h.
| std::string Ticket::GetAssignedToName | ( | ) | const |
Definition at line 61 of file SupportMgr.cpp.
References _assignedTo, ObjectGuid::IsEmpty(), and sCharacterCache.
Referenced by BugTicket::FormatViewMessageString(), ComplaintTicket::FormatViewMessageString(), and SuggestionTicket::FormatViewMessageString().
|
inline |
Definition at line 121 of file SupportMgr.h.
|
inline |
Definition at line 114 of file SupportMgr.h.
Referenced by SupportMgr::AddTicket(), SupportMgr::AddTicket(), SupportMgr::AddTicket(), SupportMgr::LoadBugTickets(), SupportMgr::LoadComplaintTickets(), and SupportMgr::LoadSuggestionTickets().
| Player * Ticket::GetPlayer | ( | ) | const |
Definition at line 42 of file SupportMgr.cpp.
References _playerGuid, and ObjectAccessor::FindConnectedPlayer().
|
inline |
Definition at line 115 of file SupportMgr.h.
| std::string Ticket::GetPlayerName | ( | ) | const |
Definition at line 47 of file SupportMgr.cpp.
References _playerGuid, ObjectGuid::IsEmpty(), and sCharacterCache.
Referenced by BugTicket::FormatViewMessageString(), ComplaintTicket::FormatViewMessageString(), SuggestionTicket::FormatViewMessageString(), and FormatViewMessageString().
|
inline |
Definition at line 110 of file SupportMgr.h.
|
inline |
Definition at line 112 of file SupportMgr.h.
|
inline |
Definition at line 111 of file SupportMgr.h.
|
inline |
Definition at line 108 of file SupportMgr.h.
Referenced by SupportMgr::AddTicket(), SupportMgr::AddTicket(), SupportMgr::AddTicket(), SupportMgr::LoadBugTickets(), SupportMgr::LoadComplaintTickets(), and SupportMgr::LoadSuggestionTickets().
|
inline |
Definition at line 109 of file SupportMgr.h.
|
pure virtual |
Implemented in BugTicket, ComplaintTicket, and SuggestionTicket.
|
pure virtual |
Implemented in BugTicket, ComplaintTicket, and SuggestionTicket.
|
inlinevirtual |
Definition at line 123 of file SupportMgr.h.
|
inline |
Definition at line 125 of file SupportMgr.h.
|
inline |
Definition at line 126 of file SupportMgr.h.
|
inline |
Definition at line 132 of file SupportMgr.h.
Referenced by WorldSession::HandleSubmitUserFeedback(), and WorldSession::HandleSupportTicketSubmitComplaint().
Definition at line 127 of file SupportMgr.h.
Referenced by WorldSession::HandleSubmitUserFeedback(), and WorldSession::HandleSupportTicketSubmitComplaint().
|
inlinevirtual |
Definition at line 124 of file SupportMgr.h.
| void Ticket::TeleportTo | ( | Player * | player | ) | const |
Definition at line 70 of file SupportMgr.cpp.
References _mapId, _pos, Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), and Player::TeleportTo().
|
protected |
Definition at line 150 of file SupportMgr.h.
Referenced by BugTicket::FormatViewMessageString(), ComplaintTicket::FormatViewMessageString(), SuggestionTicket::FormatViewMessageString(), GetAssignedPlayer(), GetAssignedToName(), BugTicket::LoadFromDB(), ComplaintTicket::LoadFromDB(), SuggestionTicket::LoadFromDB(), ComplaintTicket::SaveToDB(), and SuggestionTicket::SaveToDB().
|
protected |
Definition at line 149 of file SupportMgr.h.
Referenced by BugTicket::LoadFromDB(), ComplaintTicket::LoadFromDB(), SuggestionTicket::LoadFromDB(), ComplaintTicket::SaveToDB(), and SuggestionTicket::SaveToDB().
|
protected |
Definition at line 151 of file SupportMgr.h.
Referenced by BugTicket::FormatViewMessageString(), ComplaintTicket::FormatViewMessageString(), SuggestionTicket::FormatViewMessageString(), BugTicket::LoadFromDB(), ComplaintTicket::LoadFromDB(), SuggestionTicket::LoadFromDB(), ComplaintTicket::SaveToDB(), and SuggestionTicket::SaveToDB().
|
protected |
Definition at line 148 of file SupportMgr.h.
Referenced by BugTicket::FormatViewMessageString(), ComplaintTicket::FormatViewMessageString(), SuggestionTicket::FormatViewMessageString(), BugTicket::LoadFromDB(), ComplaintTicket::LoadFromDB(), SuggestionTicket::LoadFromDB(), BugTicket::SaveToDB(), ComplaintTicket::SaveToDB(), and SuggestionTicket::SaveToDB().
|
protected |
Definition at line 144 of file SupportMgr.h.
Referenced by BugTicket::BugTicket(), ComplaintTicket::ComplaintTicket(), BugTicket::DeleteFromDB(), ComplaintTicket::DeleteFromDB(), SuggestionTicket::DeleteFromDB(), BugTicket::FormatViewMessageString(), ComplaintTicket::FormatViewMessageString(), SuggestionTicket::FormatViewMessageString(), FormatViewMessageString(), BugTicket::LoadFromDB(), ComplaintTicket::LoadFromDB(), SuggestionTicket::LoadFromDB(), BugTicket::SaveToDB(), ComplaintTicket::SaveToDB(), SuggestionTicket::SaveToDB(), and SuggestionTicket::SuggestionTicket().
|
protected |
Definition at line 146 of file SupportMgr.h.
Referenced by BugTicket::LoadFromDB(), ComplaintTicket::LoadFromDB(), SuggestionTicket::LoadFromDB(), BugTicket::SaveToDB(), ComplaintTicket::SaveToDB(), SuggestionTicket::SaveToDB(), and TeleportTo().
|
protected |
Definition at line 145 of file SupportMgr.h.
Referenced by GetPlayer(), GetPlayerName(), BugTicket::LoadFromDB(), ComplaintTicket::LoadFromDB(), SuggestionTicket::LoadFromDB(), BugTicket::SaveToDB(), ComplaintTicket::SaveToDB(), SuggestionTicket::SaveToDB(), and Ticket().
|
protected |
Definition at line 147 of file SupportMgr.h.
Referenced by BugTicket::LoadFromDB(), ComplaintTicket::LoadFromDB(), SuggestionTicket::LoadFromDB(), BugTicket::SaveToDB(), ComplaintTicket::SaveToDB(), SuggestionTicket::SaveToDB(), and TeleportTo().