TrinityCore
Loading...
Searching...
No Matches
GmTicket Class Reference

#include <TicketMgr.h>

Public Member Functions

 GmTicket ()
 
 GmTicket (Player *player)
 
 ~GmTicket ()
 
bool IsClosed () const
 
bool IsCompleted () const
 
bool IsFromPlayer (ObjectGuid guid) const
 
bool IsAssigned () const
 
bool IsAssignedTo (ObjectGuid guid) const
 
bool IsAssignedNotTo (ObjectGuid guid) const
 
uint32 GetId () const
 
PlayerGetPlayer () const
 
std::string const & GetPlayerName () const
 
std::string const & GetMessage () const
 
PlayerGetAssignedPlayer () const
 
ObjectGuid GetAssignedToGUID () const
 
std::string GetAssignedToName () const
 
uint64 GetLastModifiedTime () const
 
GMTicketEscalationStatus GetEscalatedStatus () const
 
void SetEscalatedStatus (GMTicketEscalationStatus escalatedStatus)
 
void SetAssignedTo (ObjectGuid guid, bool isAdmin)
 
void SetClosedBy (ObjectGuid value)
 
void SetResolvedBy (ObjectGuid value)
 
void SetCompleted ()
 
void SetMessage (std::string const &message)
 
void SetComment (std::string const &comment)
 
void SetViewed ()
 
void SetUnassigned ()
 
void SetPosition (uint32 mapId, float x, float y, float z)
 
void SetGmAction (uint32 needResponse, bool needMoreHelp)
 
void AppendResponse (std::string const &response)
 
bool LoadFromDB (Field *fields)
 
void SaveToDB (CharacterDatabaseTransaction trans) const
 
void DeleteFromDB ()
 
void WritePacket (WorldPacket &data) const
 
void SendResponse (WorldSession *session) const
 
void TeleportTo (Player *player) const
 
std::string FormatMessageString (ChatHandler &handler, bool detailed=false) const
 
std::string FormatMessageString (ChatHandler &handler, char const *szClosedName, char const *szAssignedToName, char const *szUnassignedName, char const *szDeletedName, char const *szCompletedName) const
 
void SetChatLog (std::list< uint32 > time, std::string const &log)
 
std::string const & GetChatLog () const
 

Private Attributes

uint32 _id
 
TicketType _type
 
ObjectGuid _playerGuid
 
std::string _playerName
 
float _posX
 
float _posY
 
float _posZ
 
uint16 _mapId
 
std::string _message
 
uint64 _createTime
 
uint64 _lastModifiedTime
 
ObjectGuid _closedBy
 
ObjectGuid _resolvedBy
 
ObjectGuid _assignedTo
 
std::string _comment
 
bool _completed
 
GMTicketEscalationStatus _escalatedStatus
 
bool _viewed
 
bool _needResponse
 
bool _needMoreHelp
 
std::string _response
 
std::string _chatLog
 

Detailed Description

Definition at line 90 of file TicketMgr.h.

Constructor & Destructor Documentation

◆ GmTicket() [1/2]

GmTicket::GmTicket ( )

Definition at line 37 of file TicketMgr.cpp.

◆ GmTicket() [2/2]

GmTicket::GmTicket ( Player player)

Definition at line 41 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ ~GmTicket()

GmTicket::~GmTicket ( )

Definition at line 50 of file TicketMgr.cpp.

Member Function Documentation

◆ AppendResponse()

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

Definition at line 133 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ DeleteFromDB()

void GmTicket::DeleteFromDB ( )

Definition at line 121 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ FormatMessageString() [1/2]

std::string GmTicket::FormatMessageString ( ChatHandler handler,
bool  detailed = false 
) const

Definition at line 174 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FormatMessageString() [2/2]

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

Definition at line 199 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ GetAssignedPlayer()

Player * GmTicket::GetAssignedPlayer ( ) const

Definition at line 59 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAssignedToGUID()

ObjectGuid GmTicket::GetAssignedToGUID ( ) const
inline

Definition at line 109 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ GetAssignedToName()

std::string GmTicket::GetAssignedToName ( ) const

Definition at line 458 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetChatLog()

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

Definition at line 147 of file TicketMgr.h.

◆ GetEscalatedStatus()

GMTicketEscalationStatus GmTicket::GetEscalatedStatus ( ) const
inline

Definition at line 112 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ GetId()

uint32 GmTicket::GetId ( ) const
inline

Definition at line 104 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ GetLastModifiedTime()

uint64 GmTicket::GetLastModifiedTime ( ) const
inline

Definition at line 111 of file TicketMgr.h.

◆ GetMessage()

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

Definition at line 107 of file TicketMgr.h.

◆ GetPlayer()

Player * GmTicket::GetPlayer ( ) const

Definition at line 54 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPlayerName()

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

Definition at line 106 of file TicketMgr.h.

◆ IsAssigned()

bool GmTicket::IsAssigned ( ) const
inline

Definition at line 100 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ IsAssignedNotTo()

bool GmTicket::IsAssignedNotTo ( ObjectGuid  guid) const
inline

Definition at line 102 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ IsAssignedTo()

bool GmTicket::IsAssignedTo ( ObjectGuid  guid) const
inline

Definition at line 101 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ IsClosed()

bool GmTicket::IsClosed ( ) const
inline

Definition at line 97 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ IsCompleted()

bool GmTicket::IsCompleted ( ) const
inline

Definition at line 98 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ IsFromPlayer()

bool GmTicket::IsFromPlayer ( ObjectGuid  guid) const
inline

Definition at line 99 of file TicketMgr.h.

◆ LoadFromDB()

bool GmTicket::LoadFromDB ( Field fields)

Definition at line 64 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SaveToDB()

void GmTicket::SaveToDB ( CharacterDatabaseTransaction  trans) const

Definition at line 91 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendResponse()

void GmTicket::SendResponse ( WorldSession session) const

Definition at line 147 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetAssignedTo()

void GmTicket::SetAssignedTo ( ObjectGuid  guid,
bool  isAdmin 
)
inline

Definition at line 115 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ SetChatLog()

void GmTicket::SetChatLog ( std::list< uint32 time,
std::string const &  log 
)

Definition at line 256 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetClosedBy()

void GmTicket::SetClosedBy ( ObjectGuid  value)
inline

Definition at line 123 of file TicketMgr.h.

◆ SetComment()

void GmTicket::SetComment ( std::string const &  comment)
inline

Definition at line 127 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ SetCompleted()

void GmTicket::SetCompleted ( )
inline

Definition at line 125 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ SetEscalatedStatus()

void GmTicket::SetEscalatedStatus ( GMTicketEscalationStatus  escalatedStatus)
inline

Definition at line 114 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ SetGmAction()

void GmTicket::SetGmAction ( uint32  needResponse,
bool  needMoreHelp 
)

Definition at line 245 of file TicketMgr.cpp.

+ Here is the caller graph for this function:

◆ SetMessage()

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

Definition at line 217 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetPosition()

void GmTicket::SetPosition ( uint32  mapId,
float  x,
float  y,
float  z 
)

Definition at line 237 of file TicketMgr.cpp.

+ Here is the caller graph for this function:

◆ SetResolvedBy()

void GmTicket::SetResolvedBy ( ObjectGuid  value)
inline

Definition at line 124 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ SetUnassigned()

void GmTicket::SetUnassigned ( )

Definition at line 223 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetViewed()

void GmTicket::SetViewed ( )
inline

Definition at line 128 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ TeleportTo()

void GmTicket::TeleportTo ( Player player) const

Definition at line 251 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ WritePacket()

void GmTicket::WritePacket ( WorldPacket data) const

Definition at line 128 of file TicketMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _assignedTo

ObjectGuid GmTicket::_assignedTo
private

Definition at line 163 of file TicketMgr.h.

◆ _chatLog

std::string GmTicket::_chatLog
private

Definition at line 171 of file TicketMgr.h.

◆ _closedBy

ObjectGuid GmTicket::_closedBy
private

Definition at line 161 of file TicketMgr.h.

◆ _comment

std::string GmTicket::_comment
private

Definition at line 164 of file TicketMgr.h.

◆ _completed

bool GmTicket::_completed
private

Definition at line 165 of file TicketMgr.h.

◆ _createTime

uint64 GmTicket::_createTime
private

Definition at line 159 of file TicketMgr.h.

◆ _escalatedStatus

GMTicketEscalationStatus GmTicket::_escalatedStatus
private

Definition at line 166 of file TicketMgr.h.

◆ _id

uint32 GmTicket::_id
private

Definition at line 150 of file TicketMgr.h.

◆ _lastModifiedTime

uint64 GmTicket::_lastModifiedTime
private

Definition at line 160 of file TicketMgr.h.

◆ _mapId

uint16 GmTicket::_mapId
private

Definition at line 157 of file TicketMgr.h.

◆ _message

std::string GmTicket::_message
private

Definition at line 158 of file TicketMgr.h.

◆ _needMoreHelp

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

Definition at line 169 of file TicketMgr.h.

◆ _needResponse

bool GmTicket::_needResponse
private

Definition at line 168 of file TicketMgr.h.

◆ _playerGuid

ObjectGuid GmTicket::_playerGuid
private

Definition at line 152 of file TicketMgr.h.

◆ _playerName

std::string GmTicket::_playerName
private

Definition at line 153 of file TicketMgr.h.

◆ _posX

float GmTicket::_posX
private

Definition at line 154 of file TicketMgr.h.

◆ _posY

float GmTicket::_posY
private

Definition at line 155 of file TicketMgr.h.

◆ _posZ

float GmTicket::_posZ
private

Definition at line 156 of file TicketMgr.h.

◆ _resolvedBy

ObjectGuid GmTicket::_resolvedBy
private

Definition at line 162 of file TicketMgr.h.

◆ _response

std::string GmTicket::_response
private

Definition at line 170 of file TicketMgr.h.

◆ _type

TicketType GmTicket::_type
private

Definition at line 151 of file TicketMgr.h.

◆ _viewed

bool GmTicket::_viewed
private

Definition at line 167 of file TicketMgr.h.


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