|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <TicketInfo.h>
Public Member Functions | |
| void | AppendResponse (std::string const &response) |
| void | DeleteFromDB () OVERRIDE |
| std::string | FormatMessageString (ChatHandler &handler, bool detailed=false) const override |
| std::string | FormatMessageString (ChatHandler &handler, const char *szClosedName, const char *szAssignedToName, const char *szUnassignedName, const char *szDeletedName) const override |
| std::string const & | GetChatLog () const |
| GMTicketEscalationStatus | GetEscalatedStatus () const |
| uint64 | GetLastModifiedTime () const |
| std::string const & | GetMessage () const |
| std::string const & | GetResponse () const |
| bool | GetViewed () const |
| GmTicket () | |
| GmTicket (Player *player) | |
| bool | IsCompleted () const |
| void | LoadFromDB (Field *fields) OVERRIDE |
| void | SaveToDB (SQLTransaction &trans) const OVERRIDE |
| void | SetChatLog (std::list< uint32 > time, std::string const &log) |
| void | SetCompleted () |
| void | SetEscalatedStatus (GMTicketEscalationStatus escalatedStatus) |
| void | SetGmAction (bool needResponse, bool haveTicket) |
| void | SetMessage (std::string const &message) |
| void | SetUnassigned () override |
| void | SetViewed () |
| ~GmTicket () | |
| Public Member Functions inherited from TicketInfo | |
| Player * | GetAssignedPlayer () const |
| uint64 | GetAssignedToGUID () const |
| std::string | GetAssignedToName () const |
| std::string const & | GetComment () const |
| uint32 | GetMapId () const |
| Player * | GetPlayer () const |
| uint64 | GetPlayerGuid () const |
| std::string const & | GetPlayerName () const |
| uint32 | GetTicketId () const |
| bool | IsAssigned () const |
| bool | IsAssignedNotTo (uint64 guid) const |
| bool | IsAssignedTo (uint64 guid) const |
| bool | IsClosed () const |
| bool | IsFromPlayer (uint64 guid) const |
| virtual void | SetAssignedTo (uint64 assignedTo, bool=false) |
| void | SetClosedBy (uint64 closer) |
| void | SetComment (std::string &comment) |
| void | SetComment (std::string comment) |
| void | SetPosition (uint32 MapID, G3D::Vector3 pos) |
| void | TeleportTo (Player *player) const |
| TicketInfo () | |
| TicketInfo (Player *player) | |
| virtual | ~TicketInfo () |
Private Attributes | |
| std::string | _chatLog |
| bool | _completed |
| GMTicketEscalationStatus | _escalatedStatus |
| bool | _haveTicket |
| uint64 | _lastModifiedTime |
| std::string | _message |
| bool | _needResponse |
| GMTicketOpenedByGMStatus | _openedByGmStatus |
| std::string | _response |
| bool | _viewed |
Additional Inherited Members | |
| Protected Attributes inherited from TicketInfo | |
| uint64 | _assignedTo |
| uint64 | _closedBy |
| std::string | _comment |
| uint32 | _mapId |
| uint64 | _playerGuid |
| std::string | _playerName |
| G3D::Vector3 | _pos |
| uint32 | _ticketCreateTime |
| uint32 | _ticketId |
Definition at line 122 of file TicketInfo.h.
| GmTicket::GmTicket | ( | ) |
Definition at line 53 of file TicketInfo.cpp.
References _completed, _escalatedStatus, _haveTicket, _lastModifiedTime, _needResponse, _openedByGmStatus, _viewed, and TICKET_UNASSIGNED.
| GmTicket::GmTicket | ( | Player * | player | ) |
Definition at line 57 of file TicketInfo.cpp.
References _completed, _escalatedStatus, _haveTicket, _lastModifiedTime, _needResponse, _openedByGmStatus, TicketInfo::_playerName, TicketInfo::_ticketId, _viewed, WorldObject::GetName(), sTicketMgr, TICKET_UNASSIGNED, and TicketInfo::TicketInfo().
| GmTicket::~GmTicket | ( | ) |
Definition at line 65 of file TicketInfo.cpp.
|
inline |
Definition at line 129 of file TicketInfo.h.
References _response.
Referenced by ticket_commandscript::_HandleGMTicketResponseAppendCommand().
|
virtual |
Implements TicketInfo.
Definition at line 155 of file TicketInfo.cpp.
References TicketInfo::_ticketId, CHAR_DEL_GM_TICKET, CharacterDatabase, and PreparedStatement::setUInt32().
|
overridevirtual |
Implements TicketInfo.
Definition at line 178 of file TicketInfo.cpp.
References TicketInfo::_assignedTo, TicketInfo::_comment, _lastModifiedTime, _message, _response, TicketInfo::_ticketCreateTime, TicketInfo::_ticketId, WorldObject::GetName(), TicketInfo::GetPlayer(), LANG_COMMAND_TICKETLISTAGE, LANG_COMMAND_TICKETLISTAGECREATE, LANG_COMMAND_TICKETLISTASSIGNEDTO, LANG_COMMAND_TICKETLISTCOMMENT, LANG_COMMAND_TICKETLISTGUID, LANG_COMMAND_TICKETLISTMESSAGE, LANG_COMMAND_TICKETLISTNAME, LANG_COMMAND_TICKETLISTRESPONSE, ChatHandler::PGetParseString(), secsToTimeString(), and sObjectMgr.
Referenced by ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketCloseByIdCommand(), ticket_commandscript::HandleGMTicketCommentCommand(), ticket_commandscript::HandleGMTicketDeleteByIdCommand(), ticket_commandscript::HandleGMTicketGetByIdCommand(), ticket_commandscript::HandleGMTicketGetByNameCommand(), and ticket_commandscript::HandleGMTicketUnAssignCommand().
|
overridevirtual |
Reimplemented from TicketInfo.
Definition at line 204 of file TicketInfo.cpp.
References TicketInfo::_playerName, TicketInfo::_ticketId, LANG_COMMAND_TICKETCLOSED, LANG_COMMAND_TICKETDELETED, LANG_COMMAND_TICKETLISTASSIGNEDTO, LANG_COMMAND_TICKETLISTGUID, LANG_COMMAND_TICKETLISTNAME, LANG_COMMAND_TICKETLISTUNASSIGNED, and ChatHandler::PGetParseString().
|
inline |
Definition at line 149 of file TicketInfo.h.
References _chatLog.
|
inline |
Definition at line 153 of file TicketInfo.h.
References _escalatedStatus.
Referenced by ticket_commandscript::HandleGMTicketEscalateCommand(), and TicketMgr::SendGmTicket().
|
inline |
Definition at line 152 of file TicketInfo.h.
References _lastModifiedTime.
|
inline |
Definition at line 148 of file TicketInfo.h.
References _message, and GetMessage().
Referenced by GetMessage(), TicketMgr::SendGmResponsee(), and TicketMgr::SendGmTicket().
|
inline |
Definition at line 150 of file TicketInfo.h.
References _response.
Referenced by TicketMgr::SendGmResponsee().
|
inline |
Definition at line 139 of file TicketInfo.h.
References _viewed.
Referenced by TicketMgr::SendGmTicket().
|
inline |
Definition at line 138 of file TicketInfo.h.
References _completed.
Referenced by ticket_commandscript::HandleGMTicketCloseByIdCommand(), ticket_commandscript::HandleGMTicketCompleteCommand(), WorldSession::HandleGMTicketCreateOpcode(), ticket_commandscript::HandleGMTicketEscalateCommand(), and ticket_commandscript::HandleGMTicketGetByIdCommand().
|
virtual |
Implements TicketInfo.
Definition at line 101 of file TicketInfo.cpp.
References _message, TicketInfo::_playerGuid, TicketInfo::_playerName, TicketInfo::_ticketId, Field::GetString(), Field::GetUInt32(), HIGHGUID_PLAYER, and MAKE_NEW_GUID().
Referenced by TicketMgr::LoadGmTickets().
|
virtual |
Implements TicketInfo.
Definition at line 129 of file TicketInfo.cpp.
References TicketInfo::_assignedTo, TicketInfo::_closedBy, TicketInfo::_comment, _completed, _escalatedStatus, _haveTicket, _lastModifiedTime, TicketInfo::_mapId, _message, TicketInfo::_playerGuid, TicketInfo::_playerName, TicketInfo::_pos, _response, TicketInfo::_ticketCreateTime, TicketInfo::_ticketId, _viewed, CHAR_REP_GM_TICKET, CharacterDatabase, GUID_LOPART(), PreparedStatement::setBool(), PreparedStatement::setFloat(), PreparedStatement::setInt64(), PreparedStatement::setString(), PreparedStatement::setUInt16(), PreparedStatement::setUInt32(), PreparedStatement::setUInt64(), and PreparedStatement::setUInt8().
Referenced by ticket_commandscript::_HandleGMTicketResponseAppendCommand(), TicketMgr::AddTicket(), ticket_commandscript::HandleGMTicketAssignToCommand(), ticket_commandscript::HandleGMTicketCommentCommand(), ticket_commandscript::HandleGMTicketCompleteCommand(), ticket_commandscript::HandleGMTicketGetByIdCommand(), ticket_commandscript::HandleGMTicketGetByNameCommand(), and ticket_commandscript::HandleGMTicketUnAssignCommand().
| void GmTicket::SetChatLog | ( | std::list< uint32 > | time, |
| std::string const & | log ) |
Definition at line 75 of file TicketInfo.cpp.
References _chatLog, and secsToTimeString().
Referenced by WorldSession::HandleGMTicketCreateOpcode().
|
inline |
Definition at line 134 of file TicketInfo.h.
References _completed.
Referenced by ticket_commandscript::HandleGMTicketCompleteCommand().
|
inline |
Definition at line 130 of file TicketInfo.h.
References _escalatedStatus.
Referenced by ticket_commandscript::HandleGMTicketEscalateCommand().
| void GmTicket::SetGmAction | ( | bool | needResponse, |
| bool | haveTicket ) |
Definition at line 95 of file TicketInfo.cpp.
References _haveTicket, and _needResponse.
Referenced by WorldSession::HandleGMTicketCreateOpcode().
| void GmTicket::SetMessage | ( | std::string const & | message | ) |
Definition at line 89 of file TicketInfo.cpp.
References _lastModifiedTime, and _message.
Referenced by WorldSession::HandleGMTicketCreateOpcode().
|
overridevirtual |
Reimplemented from TicketInfo.
Definition at line 67 of file TicketInfo.cpp.
References TicketInfo::_assignedTo, _escalatedStatus, TICKET_IN_ESCALATION_QUEUE, and TICKET_UNASSIGNED.
Referenced by ticket_commandscript::HandleGMTicketUnAssignCommand().
|
inline |
Definition at line 131 of file TicketInfo.h.
References _viewed.
Referenced by ticket_commandscript::HandleGMTicketGetByIdCommand(), and ticket_commandscript::HandleGMTicketGetByNameCommand().
|
private |
Definition at line 165 of file TicketInfo.h.
Referenced by GetChatLog(), and SetChatLog().
|
private |
Definition at line 159 of file TicketInfo.h.
Referenced by GmTicket(), GmTicket(), IsCompleted(), SaveToDB(), and SetCompleted().
|
private |
Definition at line 157 of file TicketInfo.h.
Referenced by GetEscalatedStatus(), GmTicket(), GmTicket(), SaveToDB(), SetEscalatedStatus(), and SetUnassigned().
|
private |
Definition at line 162 of file TicketInfo.h.
Referenced by GmTicket(), GmTicket(), SaveToDB(), and SetGmAction().
|
private |
Definition at line 156 of file TicketInfo.h.
Referenced by FormatMessageString(), GetLastModifiedTime(), GmTicket(), GmTicket(), SaveToDB(), and SetMessage().
|
private |
Definition at line 163 of file TicketInfo.h.
Referenced by FormatMessageString(), GetMessage(), LoadFromDB(), SaveToDB(), and SetMessage().
|
private |
Definition at line 161 of file TicketInfo.h.
Referenced by GmTicket(), GmTicket(), and SetGmAction().
|
private |
Definition at line 158 of file TicketInfo.h.
Referenced by GmTicket(), and GmTicket().
|
private |
Definition at line 164 of file TicketInfo.h.
Referenced by AppendResponse(), FormatMessageString(), GetResponse(), and SaveToDB().
|
private |
Definition at line 160 of file TicketInfo.h.
Referenced by GetViewed(), GmTicket(), GmTicket(), SaveToDB(), and SetViewed().