Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
GmTicket Class Reference

#include <TicketInfo.h>

Inheritance diagram for GmTicket:
Collaboration diagram for GmTicket:

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
PlayerGetAssignedPlayer () const
uint64 GetAssignedToGUID () const
std::string GetAssignedToName () const
std::string const & GetComment () const
uint32 GetMapId () const
PlayerGetPlayer () 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

Detailed Description

Definition at line 122 of file TicketInfo.h.

Constructor & Destructor Documentation

◆ GmTicket() [1/2]

GmTicket::GmTicket ( )

◆ GmTicket() [2/2]

◆ ~GmTicket()

GmTicket::~GmTicket ( )

Definition at line 65 of file TicketInfo.cpp.

Member Function Documentation

◆ AppendResponse()

void GmTicket::AppendResponse ( std::string const & response)
inline

Definition at line 129 of file TicketInfo.h.

References _response.

Referenced by ticket_commandscript::_HandleGMTicketResponseAppendCommand().

◆ DeleteFromDB()

void GmTicket::DeleteFromDB ( )
virtual

◆ FormatMessageString() [1/2]

◆ FormatMessageString() [2/2]

std::string GmTicket::FormatMessageString ( ChatHandler & handler,
const char * szClosedName,
const char * szAssignedToName,
const char * szUnassignedName,
const char * szDeletedName ) const
overridevirtual

◆ GetChatLog()

std::string const & GmTicket::GetChatLog ( ) const
inline

Definition at line 149 of file TicketInfo.h.

References _chatLog.

◆ GetEscalatedStatus()

GMTicketEscalationStatus GmTicket::GetEscalatedStatus ( ) const
inline

◆ GetLastModifiedTime()

uint64 GmTicket::GetLastModifiedTime ( ) const
inline

Definition at line 152 of file TicketInfo.h.

References _lastModifiedTime.

◆ GetMessage()

std::string const & GmTicket::GetMessage ( ) const
inline

Definition at line 148 of file TicketInfo.h.

References _message, and GetMessage().

Referenced by GetMessage(), TicketMgr::SendGmResponsee(), and TicketMgr::SendGmTicket().

◆ GetResponse()

std::string const & GmTicket::GetResponse ( ) const
inline

Definition at line 150 of file TicketInfo.h.

References _response.

Referenced by TicketMgr::SendGmResponsee().

◆ GetViewed()

bool GmTicket::GetViewed ( ) const
inline

Definition at line 139 of file TicketInfo.h.

References _viewed.

Referenced by TicketMgr::SendGmTicket().

◆ IsCompleted()

◆ LoadFromDB()

void GmTicket::LoadFromDB ( Field * fields)
virtual

◆ SaveToDB()

◆ SetChatLog()

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().

◆ SetCompleted()

void GmTicket::SetCompleted ( )
inline

Definition at line 134 of file TicketInfo.h.

References _completed.

Referenced by ticket_commandscript::HandleGMTicketCompleteCommand().

◆ SetEscalatedStatus()

void GmTicket::SetEscalatedStatus ( GMTicketEscalationStatus escalatedStatus)
inline

Definition at line 130 of file TicketInfo.h.

References _escalatedStatus.

Referenced by ticket_commandscript::HandleGMTicketEscalateCommand().

◆ SetGmAction()

void GmTicket::SetGmAction ( bool needResponse,
bool haveTicket )

Definition at line 95 of file TicketInfo.cpp.

References _haveTicket, and _needResponse.

Referenced by WorldSession::HandleGMTicketCreateOpcode().

◆ SetMessage()

void GmTicket::SetMessage ( std::string const & message)

Definition at line 89 of file TicketInfo.cpp.

References _lastModifiedTime, and _message.

Referenced by WorldSession::HandleGMTicketCreateOpcode().

◆ SetUnassigned()

void GmTicket::SetUnassigned ( )
overridevirtual

◆ SetViewed()

void GmTicket::SetViewed ( )
inline

Member Data Documentation

◆ _chatLog

std::string GmTicket::_chatLog
private

Definition at line 165 of file TicketInfo.h.

Referenced by GetChatLog(), and SetChatLog().

◆ _completed

bool GmTicket::_completed
private

Definition at line 159 of file TicketInfo.h.

Referenced by GmTicket(), GmTicket(), IsCompleted(), SaveToDB(), and SetCompleted().

◆ _escalatedStatus

GMTicketEscalationStatus GmTicket::_escalatedStatus
private

◆ _haveTicket

bool GmTicket::_haveTicket
private
Todo
find out the use of this, and then store it in DB

Definition at line 162 of file TicketInfo.h.

Referenced by GmTicket(), GmTicket(), SaveToDB(), and SetGmAction().

◆ _lastModifiedTime

uint64 GmTicket::_lastModifiedTime
private

◆ _message

std::string GmTicket::_message
private

Definition at line 163 of file TicketInfo.h.

Referenced by FormatMessageString(), GetMessage(), LoadFromDB(), SaveToDB(), and SetMessage().

◆ _needResponse

bool GmTicket::_needResponse
private

Definition at line 161 of file TicketInfo.h.

Referenced by GmTicket(), GmTicket(), and SetGmAction().

◆ _openedByGmStatus

GMTicketOpenedByGMStatus GmTicket::_openedByGmStatus
private

Definition at line 158 of file TicketInfo.h.

Referenced by GmTicket(), and GmTicket().

◆ _response

std::string GmTicket::_response
private

Definition at line 164 of file TicketInfo.h.

Referenced by AppendResponse(), FormatMessageString(), GetResponse(), and SaveToDB().

◆ _viewed

bool GmTicket::_viewed
private

Definition at line 160 of file TicketInfo.h.

Referenced by GetViewed(), GmTicket(), GmTicket(), SaveToDB(), and SetViewed().


The documentation for this class was generated from the following files: