TrinityCore
SupportMgr Class Reference

#include <SupportMgr.h>

Public Member Functions

template<typename T >
T * GetTicket (uint32 ticketId)
 
ComplaintTicketList GetComplaintsByPlayerGuid (ObjectGuid playerGuid) const
 
void Initialize ()
 
bool GetSupportSystemStatus () const
 
bool GetTicketSystemStatus () const
 
bool GetBugSystemStatus () const
 
bool GetComplaintSystemStatus () const
 
bool GetSuggestionSystemStatus () const
 
uint64 GetLastChange () const
 
template<typename T >
uint32 GetOpenTicketCount () const
 
void SetSupportSystemStatus (bool status)
 
void SetTicketSystemStatus (bool status)
 
void SetBugSystemStatus (bool status)
 
void SetComplaintSystemStatus (bool status)
 
void SetSuggestionSystemStatus (bool status)
 
void LoadBugTickets ()
 
void LoadComplaintTickets ()
 
void LoadSuggestionTickets ()
 
void AddTicket (BugTicket *ticket)
 
void AddTicket (ComplaintTicket *ticket)
 
void AddTicket (SuggestionTicket *ticket)
 
template<typename T >
void RemoveTicket (uint32 ticketId)
 
template<typename T >
void CloseTicket (uint32 ticketId, ObjectGuid closedBy)
 
template<typename T >
void ResetTickets ()
 
template<typename T >
void ShowList (ChatHandler &handler) const
 
template<typename T >
void ShowList (ChatHandler &handler, bool onlineOnly) const
 
template<typename T >
void ShowClosedList (ChatHandler &handler) const
 
void UpdateLastChange ()
 
uint32 GenerateBugId ()
 
uint32 GenerateComplaintId ()
 
uint32 GenerateSuggestionId ()
 
template<>
TC_GAME_API BugTicketGetTicket (uint32 bugId)
 
template<>
TC_GAME_API ComplaintTicketGetTicket (uint32 complaintId)
 
template<>
TC_GAME_API SuggestionTicketGetTicket (uint32 suggestionId)
 
template<>
TC_GAME_API uint32 GetOpenTicketCount () const
 
template<>
TC_GAME_API uint32 GetOpenTicketCount () const
 
template<>
TC_GAME_API uint32 GetOpenTicketCount () const
 
template<>
TC_GAME_API void RemoveTicket (uint32 ticketId)
 
template<>
TC_GAME_API void RemoveTicket (uint32 ticketId)
 
template<>
TC_GAME_API void RemoveTicket (uint32 ticketId)
 
template<>
TC_GAME_API void CloseTicket (uint32 ticketId, ObjectGuid closedBy)
 
template<>
TC_GAME_API void CloseTicket (uint32 ticketId, ObjectGuid closedBy)
 
template<>
TC_GAME_API void CloseTicket (uint32 ticketId, ObjectGuid closedBy)
 
template<>
TC_GAME_API void ResetTickets ()
 
template<>
TC_GAME_API void ResetTickets ()
 
template<>
TC_GAME_API void ResetTickets ()
 
template<>
TC_GAME_API void ShowList (ChatHandler &handler) const
 
template<>
TC_GAME_API void ShowList (ChatHandler &handler) const
 
template<>
TC_GAME_API void ShowList (ChatHandler &handler) const
 
template<>
TC_GAME_API void ShowClosedList (ChatHandler &handler) const
 
template<>
TC_GAME_API void ShowClosedList (ChatHandler &handler) const
 
template<>
TC_GAME_API void ShowClosedList (ChatHandler &handler) const
 

Static Public Member Functions

static SupportMgrinstance ()
 

Private Member Functions

 SupportMgr ()
 
 ~SupportMgr ()
 

Private Attributes

bool _supportSystemStatus
 
bool _ticketSystemStatus
 
bool _bugSystemStatus
 
bool _complaintSystemStatus
 
bool _suggestionSystemStatus
 
BugTicketList _bugTicketList
 
ComplaintTicketList _complaintTicketList
 
SuggestionTicketList _suggestionTicketList
 
uint32 _lastBugId
 
uint32 _lastComplaintId
 
uint32 _lastSuggestionId
 
uint64 _lastChange
 
uint32 _openBugTicketCount
 
uint32 _openComplaintTicketCount
 
uint32 _openSuggestionTicketCount
 

Detailed Description

Definition at line 229 of file SupportMgr.h.

Constructor & Destructor Documentation

◆ SupportMgr()

SupportMgr::SupportMgr ( )
private

Definition at line 397 of file SupportMgr.cpp.

◆ ~SupportMgr()

SupportMgr::~SupportMgr ( )
private

Definition at line 401 of file SupportMgr.cpp.

Member Function Documentation

◆ AddTicket() [1/3]

void SupportMgr::AddTicket ( BugTicket ticket)

Definition at line 614 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ AddTicket() [2/3]

void SupportMgr::AddTicket ( ComplaintTicket ticket)

Definition at line 623 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ AddTicket() [3/3]

void SupportMgr::AddTicket ( SuggestionTicket ticket)

Definition at line 632 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ CloseTicket() [1/4]

template<>
TC_GAME_API void SupportMgr::CloseTicket ( uint32  ticketId,
ObjectGuid  closedBy 
)

Definition at line 675 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ CloseTicket() [2/4]

template<>
TC_GAME_API void SupportMgr::CloseTicket ( uint32  ticketId,
ObjectGuid  closedBy 
)

Definition at line 687 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ CloseTicket() [3/4]

template<>
TC_GAME_API void SupportMgr::CloseTicket ( uint32  ticketId,
ObjectGuid  closedBy 
)

Definition at line 699 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ CloseTicket() [4/4]

template<typename T >
void SupportMgr::CloseTicket ( uint32  ticketId,
ObjectGuid  closedBy 
)

◆ GenerateBugId()

uint32 SupportMgr::GenerateBugId ( )
inline

Definition at line 288 of file SupportMgr.h.

◆ GenerateComplaintId()

uint32 SupportMgr::GenerateComplaintId ( )
inline

Definition at line 289 of file SupportMgr.h.

◆ GenerateSuggestionId()

uint32 SupportMgr::GenerateSuggestionId ( )
inline

Definition at line 290 of file SupportMgr.h.

◆ GetBugSystemStatus()

bool SupportMgr::GetBugSystemStatus ( ) const
inline

Definition at line 247 of file SupportMgr.h.

◆ GetComplaintsByPlayerGuid()

ComplaintTicketList SupportMgr::GetComplaintsByPlayerGuid ( ObjectGuid  playerGuid) const

Definition at line 451 of file SupportMgr.cpp.

◆ GetComplaintSystemStatus()

bool SupportMgr::GetComplaintSystemStatus ( ) const
inline

Definition at line 248 of file SupportMgr.h.

◆ GetLastChange()

uint64 SupportMgr::GetLastChange ( ) const
inline

Definition at line 250 of file SupportMgr.h.

◆ GetOpenTicketCount() [1/4]

template<>
TC_GAME_API uint32 SupportMgr::GetOpenTicketCount ( ) const

Definition at line 471 of file SupportMgr.cpp.

◆ GetOpenTicketCount() [2/4]

template<>
TC_GAME_API uint32 SupportMgr::GetOpenTicketCount ( ) const

Definition at line 474 of file SupportMgr.cpp.

◆ GetOpenTicketCount() [3/4]

template<>
TC_GAME_API uint32 SupportMgr::GetOpenTicketCount ( ) const

Definition at line 477 of file SupportMgr.cpp.

◆ GetOpenTicketCount() [4/4]

template<typename T >
uint32 SupportMgr::GetOpenTicketCount ( ) const

◆ GetSuggestionSystemStatus()

bool SupportMgr::GetSuggestionSystemStatus ( ) const
inline

Definition at line 249 of file SupportMgr.h.

◆ GetSupportSystemStatus()

bool SupportMgr::GetSupportSystemStatus ( ) const
inline

Definition at line 245 of file SupportMgr.h.

◆ GetTicket() [1/4]

template<>
TC_GAME_API BugTicket * SupportMgr::GetTicket ( uint32  bugId)

Definition at line 420 of file SupportMgr.cpp.

◆ GetTicket() [2/4]

template<>
TC_GAME_API ComplaintTicket * SupportMgr::GetTicket ( uint32  complaintId)

Definition at line 431 of file SupportMgr.cpp.

◆ GetTicket() [3/4]

template<>
TC_GAME_API SuggestionTicket * SupportMgr::GetTicket ( uint32  suggestionId)

Definition at line 441 of file SupportMgr.cpp.

◆ GetTicket() [4/4]

template<typename T >
T * SupportMgr::GetTicket ( uint32  ticketId)

◆ GetTicketSystemStatus()

bool SupportMgr::GetTicketSystemStatus ( ) const
inline

Definition at line 246 of file SupportMgr.h.

◆ Initialize()

void SupportMgr::Initialize ( )

Definition at line 461 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ instance()

SupportMgr * SupportMgr::instance ( )
static

Definition at line 413 of file SupportMgr.cpp.

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

◆ LoadBugTickets()

void SupportMgr::LoadBugTickets ( )

Definition at line 479 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ LoadComplaintTickets()

void SupportMgr::LoadComplaintTickets ( )

Definition at line 519 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ LoadSuggestionTickets()

void SupportMgr::LoadSuggestionTickets ( )

Definition at line 574 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ RemoveTicket() [1/4]

template<>
TC_GAME_API void SupportMgr::RemoveTicket ( uint32  ticketId)

Definition at line 642 of file SupportMgr.cpp.

◆ RemoveTicket() [2/4]

template<>
TC_GAME_API void SupportMgr::RemoveTicket ( uint32  ticketId)

Definition at line 653 of file SupportMgr.cpp.

◆ RemoveTicket() [3/4]

template<>
TC_GAME_API void SupportMgr::RemoveTicket ( uint32  ticketId)

Definition at line 664 of file SupportMgr.cpp.

◆ RemoveTicket() [4/4]

template<typename T >
void SupportMgr::RemoveTicket ( uint32  ticketId)

◆ ResetTickets() [1/4]

template<>
TC_GAME_API void SupportMgr::ResetTickets ( )

Definition at line 711 of file SupportMgr.cpp.

◆ ResetTickets() [2/4]

template<>
TC_GAME_API void SupportMgr::ResetTickets ( )

Definition at line 724 of file SupportMgr.cpp.

◆ ResetTickets() [3/4]

template<>
TC_GAME_API void SupportMgr::ResetTickets ( )

Definition at line 739 of file SupportMgr.cpp.

◆ ResetTickets() [4/4]

template<typename T >
void SupportMgr::ResetTickets ( )

◆ SetBugSystemStatus()

void SupportMgr::SetBugSystemStatus ( bool  status)
inline

Definition at line 256 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ SetComplaintSystemStatus()

void SupportMgr::SetComplaintSystemStatus ( bool  status)
inline

Definition at line 257 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ SetSuggestionSystemStatus()

void SupportMgr::SetSuggestionSystemStatus ( bool  status)
inline

Definition at line 258 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ SetSupportSystemStatus()

void SupportMgr::SetSupportSystemStatus ( bool  status)
inline

Definition at line 254 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ SetTicketSystemStatus()

void SupportMgr::SetTicketSystemStatus ( bool  status)
inline

Definition at line 255 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ ShowClosedList() [1/4]

template<>
TC_GAME_API void SupportMgr::ShowClosedList ( ChatHandler handler) const

Definition at line 779 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ ShowClosedList() [2/4]

template<>
TC_GAME_API void SupportMgr::ShowClosedList ( ChatHandler handler) const

Definition at line 788 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ ShowClosedList() [3/4]

template<>
TC_GAME_API void SupportMgr::ShowClosedList ( ChatHandler handler) const

Definition at line 797 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ ShowClosedList() [4/4]

template<typename T >
void SupportMgr::ShowClosedList ( ChatHandler handler) const

◆ ShowList() [1/5]

template<>
TC_GAME_API void SupportMgr::ShowList ( ChatHandler handler) const

Definition at line 752 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ ShowList() [2/5]

template<>
TC_GAME_API void SupportMgr::ShowList ( ChatHandler handler) const

Definition at line 761 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ ShowList() [3/5]

template<>
TC_GAME_API void SupportMgr::ShowList ( ChatHandler handler) const

Definition at line 770 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ ShowList() [4/5]

template<typename T >
void SupportMgr::ShowList ( ChatHandler handler) const

◆ ShowList() [5/5]

template<typename T >
void SupportMgr::ShowList ( ChatHandler handler,
bool  onlineOnly 
) const

◆ UpdateLastChange()

void SupportMgr::UpdateLastChange ( )

Definition at line 805 of file SupportMgr.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _bugSystemStatus

bool SupportMgr::_bugSystemStatus
private

Definition at line 295 of file SupportMgr.h.

◆ _bugTicketList

BugTicketList SupportMgr::_bugTicketList
private

Definition at line 298 of file SupportMgr.h.

◆ _complaintSystemStatus

bool SupportMgr::_complaintSystemStatus
private

Definition at line 296 of file SupportMgr.h.

◆ _complaintTicketList

ComplaintTicketList SupportMgr::_complaintTicketList
private

Definition at line 299 of file SupportMgr.h.

◆ _lastBugId

uint32 SupportMgr::_lastBugId
private

Definition at line 301 of file SupportMgr.h.

◆ _lastChange

uint64 SupportMgr::_lastChange
private

Definition at line 304 of file SupportMgr.h.

◆ _lastComplaintId

uint32 SupportMgr::_lastComplaintId
private

Definition at line 302 of file SupportMgr.h.

◆ _lastSuggestionId

uint32 SupportMgr::_lastSuggestionId
private

Definition at line 303 of file SupportMgr.h.

◆ _openBugTicketCount

uint32 SupportMgr::_openBugTicketCount
private

Definition at line 305 of file SupportMgr.h.

◆ _openComplaintTicketCount

uint32 SupportMgr::_openComplaintTicketCount
private

Definition at line 306 of file SupportMgr.h.

◆ _openSuggestionTicketCount

uint32 SupportMgr::_openSuggestionTicketCount
private

Definition at line 307 of file SupportMgr.h.

◆ _suggestionSystemStatus

bool SupportMgr::_suggestionSystemStatus
private

Definition at line 297 of file SupportMgr.h.

◆ _suggestionTicketList

SuggestionTicketList SupportMgr::_suggestionTicketList
private

Definition at line 300 of file SupportMgr.h.

◆ _supportSystemStatus

bool SupportMgr::_supportSystemStatus
private

Definition at line 293 of file SupportMgr.h.

◆ _ticketSystemStatus

bool SupportMgr::_ticketSystemStatus
private

Definition at line 294 of file SupportMgr.h.


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