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

#include <SupportMgr.h>

+ Inheritance diagram for ComplaintTicket:

Public Member Functions

 ComplaintTicket ()
 
 ComplaintTicket (Player *player)
 
 ~ComplaintTicket ()
 
ObjectGuid GetTargetCharacterGuid () const
 
ReportType GetReportType () const
 
ReportMajorCategory GetMajorCategory () const
 
ReportMinorCategory GetMinorCategoryFlags () const
 
std::string const & GetNote () const
 
void SetTargetCharacterGuid (ObjectGuid targetCharacterGuid)
 
void SetReportType (ReportType reportType)
 
void SetMajorCategory (ReportMajorCategory majorCategory)
 
void SetMinorCategoryFlags (ReportMinorCategory minorCategoryFlags)
 
void SetChatLog (ChatLog const &log)
 
void SetNote (std::string const &note)
 
void LoadFromDB (Field *fields) override
 
void LoadChatLineFromDB (Field *fields)
 
void SaveToDB () const override
 
void DeleteFromDB () override
 
std::string FormatViewMessageString (ChatHandler &handler, bool detailed=false) const override
 
virtual std::string FormatViewMessageString (ChatHandler &handler, bool detailed=false) const=0
 
virtual std::string FormatViewMessageString (ChatHandler &handler, const char *szClosedName, const char *szAssignedToName, const char *szUnassignedName, const char *szDeletedName) const
 
- Public Member Functions inherited from Ticket
 Ticket ()
 
 Ticket (Player *player)
 
 Ticket (Ticket const &)=delete
 
 Ticket (Ticket &&)=delete
 
Ticket & operator= (Ticket const &)=delete
 
Ticket & operator= (Ticket &&)=delete
 
virtual ~Ticket ()
 
bool IsClosed () const
 
bool IsFromPlayer (ObjectGuid guid) const
 
bool IsAssigned () const
 
bool IsAssignedTo (ObjectGuid guid) const
 
bool IsAssignedNotTo (ObjectGuid guid) const
 
uint32 GetId () const
 
ObjectGuid GetPlayerGuid () const
 
Player * GetPlayer () const
 
std::string GetPlayerName () const
 
Player * GetAssignedPlayer () const
 
ObjectGuid GetAssignedToGUID () const
 
std::string GetAssignedToName () const
 
std::string const & GetComment () const
 
virtual void SetAssignedTo (ObjectGuid guid, bool=false)
 
virtual void SetUnassigned ()
 
void SetClosedBy (ObjectGuid value)
 
void SetComment (std::string const &comment)
 
void SetPosition (uint32 mapId, Position const &pos)
 
void SetFacing (float facing)
 
void TeleportTo (Player *player) const
 

Private Attributes

ObjectGuid _targetCharacterGuid
 
ReportType _reportType
 
ReportMajorCategory _majorCategory
 
ReportMinorCategory _minorCategoryFlags
 
ChatLog _chatLog
 
std::string _note
 

Additional Inherited Members

- Protected Attributes inherited from Ticket
uint32 _id
 
ObjectGuid _playerGuid
 
uint16 _mapId
 
Position _pos
 
uint64 _createTime
 
ObjectGuid _closedBy
 
ObjectGuid _assignedTo
 
std::string _comment
 

Detailed Description

Definition at line 176 of file SupportMgr.h.

Constructor & Destructor Documentation

◆ ComplaintTicket() [1/2]

ComplaintTicket::ComplaintTicket ( )

Definition at line 178 of file SupportMgr.cpp.

◆ ComplaintTicket() [2/2]

ComplaintTicket::ComplaintTicket ( Player *  player)

Definition at line 183 of file SupportMgr.cpp.

References Ticket::_id, and sSupportMgr.

◆ ~ComplaintTicket()

ComplaintTicket::~ComplaintTicket ( )
default

Member Function Documentation

◆ DeleteFromDB()

void ComplaintTicket::DeleteFromDB ( )
overridevirtual

◆ FormatViewMessageString() [1/3]

◆ FormatViewMessageString() [2/3]

virtual std::string Ticket::FormatViewMessageString ( ChatHandler &  handler,
bool  detailed = false 
) const
virtual

Implements Ticket.

◆ FormatViewMessageString() [3/3]

std::string Ticket::FormatViewMessageString ( ChatHandler &  handler,
const char *  szClosedName,
const char *  szAssignedToName,
const char *  szUnassignedName,
const char *  szDeletedName 
) const
virtual

Reimplemented from Ticket.

Definition at line 141 of file SupportMgr.cpp.

◆ GetMajorCategory()

ReportMajorCategory ComplaintTicket::GetMajorCategory ( ) const
inline

Definition at line 185 of file SupportMgr.h.

◆ GetMinorCategoryFlags()

ReportMinorCategory ComplaintTicket::GetMinorCategoryFlags ( ) const
inline

Definition at line 186 of file SupportMgr.h.

◆ GetNote()

std::string const & ComplaintTicket::GetNote ( ) const
inline

Definition at line 187 of file SupportMgr.h.

◆ GetReportType()

ReportType ComplaintTicket::GetReportType ( ) const
inline

Definition at line 184 of file SupportMgr.h.

◆ GetTargetCharacterGuid()

ObjectGuid ComplaintTicket::GetTargetCharacterGuid ( ) const
inline

Definition at line 183 of file SupportMgr.h.

◆ LoadChatLineFromDB()

void ComplaintTicket::LoadChatLineFromDB ( Field *  fields)

◆ LoadFromDB()

◆ SaveToDB()

◆ SetChatLog()

void ComplaintTicket::SetChatLog ( ChatLog const &  log)
inline

Definition at line 196 of file SupportMgr.h.

Referenced by WorldSession::HandleSupportTicketSubmitComplaint().

◆ SetMajorCategory()

void ComplaintTicket::SetMajorCategory ( ReportMajorCategory  majorCategory)
inline

Definition at line 194 of file SupportMgr.h.

Referenced by WorldSession::HandleSupportTicketSubmitComplaint().

◆ SetMinorCategoryFlags()

void ComplaintTicket::SetMinorCategoryFlags ( ReportMinorCategory  minorCategoryFlags)
inline

Definition at line 195 of file SupportMgr.h.

Referenced by WorldSession::HandleSupportTicketSubmitComplaint().

◆ SetNote()

void ComplaintTicket::SetNote ( std::string const &  note)
inline

Definition at line 197 of file SupportMgr.h.

Referenced by WorldSession::HandleSupportTicketSubmitComplaint().

◆ SetReportType()

void ComplaintTicket::SetReportType ( ReportType  reportType)
inline

Definition at line 193 of file SupportMgr.h.

Referenced by WorldSession::HandleSupportTicketSubmitComplaint().

◆ SetTargetCharacterGuid()

void ComplaintTicket::SetTargetCharacterGuid ( ObjectGuid  targetCharacterGuid)
inline

Definition at line 189 of file SupportMgr.h.

Referenced by WorldSession::HandleSupportTicketSubmitComplaint().

Member Data Documentation

◆ _chatLog

ChatLog ComplaintTicket::_chatLog
private

Definition at line 212 of file SupportMgr.h.

Referenced by LoadChatLineFromDB(), LoadFromDB(), and SaveToDB().

◆ _majorCategory

ReportMajorCategory ComplaintTicket::_majorCategory
private

Definition at line 210 of file SupportMgr.h.

Referenced by LoadFromDB(), and SaveToDB().

◆ _minorCategoryFlags

ReportMinorCategory ComplaintTicket::_minorCategoryFlags
private

Definition at line 211 of file SupportMgr.h.

Referenced by LoadFromDB(), and SaveToDB().

◆ _note

std::string ComplaintTicket::_note
private

Definition at line 213 of file SupportMgr.h.

Referenced by FormatViewMessageString(), LoadFromDB(), and SaveToDB().

◆ _reportType

ReportType ComplaintTicket::_reportType
private

Definition at line 209 of file SupportMgr.h.

Referenced by LoadFromDB(), and SaveToDB().

◆ _targetCharacterGuid

ObjectGuid ComplaintTicket::_targetCharacterGuid
private

Definition at line 208 of file SupportMgr.h.

Referenced by LoadFromDB(), and SaveToDB().


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