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

#include <TicketMgr.h>

Public Member Functions

void LoadTickets ()
 
void LoadSurveys ()
 
GmTicketGetTicket (uint32 ticketId)
 
GmTicketGetTicketByPlayer (ObjectGuid playerGuid)
 
GmTicketGetOldestOpenTicket ()
 
void AddTicket (GmTicket *ticket)
 
void CloseTicket (uint32 ticketId, ObjectGuid source)
 
void ResolveAndCloseTicket (uint32 ticketId, ObjectGuid source)
 
void RemoveTicket (uint32 ticketId)
 
bool GetStatus () const
 
void SetStatus (bool status)
 
uint64 GetLastChange () const
 
void UpdateLastChange ()
 
uint32 GenerateTicketId ()
 
uint32 GetOpenTicketCount () const
 
uint32 GetNextSurveyID ()
 
void Initialize ()
 
void ResetTickets ()
 
void ShowList (ChatHandler &handler, bool onlineOnly) const
 
void ShowClosedList (ChatHandler &handler) const
 
void ShowEscalatedList (ChatHandler &handler) const
 
void SendTicket (WorldSession *session, GmTicket *ticket) const
 

Static Public Member Functions

static TicketMgrinstance ()
 

Private Member Functions

 TicketMgr ()
 
 ~TicketMgr ()
 

Private Attributes

GmTicketList _ticketList
 
bool _status
 
uint32 _lastTicketId
 
uint32 _lastSurveyId
 
uint32 _openTicketCount
 
uint64 _lastChange
 

Detailed Description

Definition at line 175 of file TicketMgr.h.

Constructor & Destructor Documentation

◆ TicketMgr()

TicketMgr::TicketMgr ( )
private

Definition at line 272 of file TicketMgr.cpp.

◆ ~TicketMgr()

TicketMgr::~TicketMgr ( )
private

Definition at line 275 of file TicketMgr.cpp.

Member Function Documentation

◆ AddTicket()

void TicketMgr::AddTicket ( GmTicket ticket)

Definition at line 372 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ CloseTicket()

void TicketMgr::CloseTicket ( uint32  ticketId,
ObjectGuid  source 
)

Definition at line 381 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ GenerateTicketId()

uint32 TicketMgr::GenerateTicketId ( )
inline

Definition at line 225 of file TicketMgr.h.

◆ GetLastChange()

uint64 TicketMgr::GetLastChange ( ) const
inline

Definition at line 222 of file TicketMgr.h.

◆ GetNextSurveyID()

uint32 TicketMgr::GetNextSurveyID ( )
inline

Definition at line 227 of file TicketMgr.h.

◆ GetOldestOpenTicket()

GmTicket * TicketMgr::GetOldestOpenTicket ( )
inline

Definition at line 205 of file TicketMgr.h.

◆ GetOpenTicketCount()

uint32 TicketMgr::GetOpenTicketCount ( ) const
inline

Definition at line 226 of file TicketMgr.h.

◆ GetStatus()

bool TicketMgr::GetStatus ( ) const
inline

Definition at line 219 of file TicketMgr.h.

◆ GetTicket()

GmTicket * TicketMgr::GetTicket ( uint32  ticketId)
inline

Definition at line 187 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ GetTicketByPlayer()

GmTicket * TicketMgr::GetTicketByPlayer ( ObjectGuid  playerGuid)
inline

Definition at line 196 of file TicketMgr.h.

◆ Initialize()

void TicketMgr::Initialize ( )

Definition at line 281 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ instance()

TicketMgr * TicketMgr::instance ( )
static

Definition at line 307 of file TicketMgr.cpp.

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

◆ LoadSurveys()

void TicketMgr::LoadSurveys ( )

Definition at line 359 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ LoadTickets()

void TicketMgr::LoadTickets ( )

Definition at line 313 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ RemoveTicket()

void TicketMgr::RemoveTicket ( uint32  ticketId)

Definition at line 406 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ ResetTickets()

void TicketMgr::ResetTickets ( )

Definition at line 286 of file TicketMgr.cpp.

◆ ResolveAndCloseTicket()

void TicketMgr::ResolveAndCloseTicket ( uint32  ticketId,
ObjectGuid  source 
)

Definition at line 393 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ SendTicket()

void TicketMgr::SendTicket ( WorldSession session,
GmTicket ticket 
) const

Definition at line 446 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ SetStatus()

void TicketMgr::SetStatus ( bool  status)
inline

Definition at line 220 of file TicketMgr.h.

+ Here is the caller graph for this function:

◆ ShowClosedList()

void TicketMgr::ShowClosedList ( ChatHandler handler) const

Definition at line 430 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ ShowEscalatedList()

void TicketMgr::ShowEscalatedList ( ChatHandler handler) const

Definition at line 438 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ ShowList()

void TicketMgr::ShowList ( ChatHandler handler,
bool  onlineOnly 
) const

Definition at line 421 of file TicketMgr.cpp.

+ Here is the call graph for this function:

◆ UpdateLastChange()

void TicketMgr::UpdateLastChange ( )

Definition at line 416 of file TicketMgr.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _lastChange

uint64 TicketMgr::_lastChange
private

Definition at line 245 of file TicketMgr.h.

◆ _lastSurveyId

uint32 TicketMgr::_lastSurveyId
private

Definition at line 243 of file TicketMgr.h.

◆ _lastTicketId

uint32 TicketMgr::_lastTicketId
private

Definition at line 242 of file TicketMgr.h.

◆ _openTicketCount

uint32 TicketMgr::_openTicketCount
private

Definition at line 244 of file TicketMgr.h.

◆ _status

bool TicketMgr::_status
private

Definition at line 241 of file TicketMgr.h.

◆ _ticketList

GmTicketList TicketMgr::_ticketList
private

Definition at line 239 of file TicketMgr.h.


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