TrinityCore
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)
 
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
 
PlayerGetPlayer () const
 
std::string GetPlayerName () const
 
PlayerGetAssignedPlayer () 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)
 
virtual void LoadFromDB (Field *fields)=0
 
virtual void SaveToDB () const =0
 
virtual void DeleteFromDB ()=0
 
void TeleportTo (Player *player) const
 
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
 

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 164 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.

◆ ~ComplaintTicket()

ComplaintTicket::~ComplaintTicket ( )
default

Member Function Documentation

◆ DeleteFromDB()

void ComplaintTicket::DeleteFromDB ( )
overridevirtual

Implements Ticket.

Definition at line 278 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ FormatViewMessageString() [1/3]

std::string ComplaintTicket::FormatViewMessageString ( ChatHandler handler,
bool  detailed = false 
) const
overridevirtual

Implements Ticket.

Definition at line 289 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ 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 129 of file SupportMgr.cpp.

◆ GetMajorCategory()

ReportMajorCategory ComplaintTicket::GetMajorCategory ( ) const
inline

Definition at line 173 of file SupportMgr.h.

◆ GetMinorCategoryFlags()

ReportMinorCategory ComplaintTicket::GetMinorCategoryFlags ( ) const
inline

Definition at line 174 of file SupportMgr.h.

◆ GetNote()

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

Definition at line 175 of file SupportMgr.h.

◆ GetReportType()

ReportType ComplaintTicket::GetReportType ( ) const
inline

Definition at line 172 of file SupportMgr.h.

◆ GetTargetCharacterGuid()

ObjectGuid ComplaintTicket::GetTargetCharacterGuid ( ) const
inline

Definition at line 171 of file SupportMgr.h.

◆ LoadChatLineFromDB()

void ComplaintTicket::LoadChatLineFromDB ( Field fields)

Definition at line 228 of file SupportMgr.cpp.

+ Here is the caller graph for this function:

◆ LoadFromDB()

void ComplaintTicket::LoadFromDB ( Field fields)
overridevirtual

Implements Ticket.

Definition at line 191 of file SupportMgr.cpp.

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

◆ SaveToDB()

void ComplaintTicket::SaveToDB ( ) const
overridevirtual

Implements Ticket.

Definition at line 233 of file SupportMgr.cpp.

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

◆ SetChatLog()

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

Definition at line 184 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ SetMajorCategory()

void ComplaintTicket::SetMajorCategory ( ReportMajorCategory  majorCategory)
inline

Definition at line 182 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ SetMinorCategoryFlags()

void ComplaintTicket::SetMinorCategoryFlags ( ReportMinorCategory  minorCategoryFlags)
inline

Definition at line 183 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ SetNote()

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

Definition at line 185 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ SetReportType()

void ComplaintTicket::SetReportType ( ReportType  reportType)
inline

Definition at line 181 of file SupportMgr.h.

+ Here is the caller graph for this function:

◆ SetTargetCharacterGuid()

void ComplaintTicket::SetTargetCharacterGuid ( ObjectGuid  targetCharacterGuid)
inline

Definition at line 177 of file SupportMgr.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _chatLog

ChatLog ComplaintTicket::_chatLog
private

Definition at line 200 of file SupportMgr.h.

◆ _majorCategory

ReportMajorCategory ComplaintTicket::_majorCategory
private

Definition at line 198 of file SupportMgr.h.

◆ _minorCategoryFlags

ReportMinorCategory ComplaintTicket::_minorCategoryFlags
private

Definition at line 199 of file SupportMgr.h.

◆ _note

std::string ComplaintTicket::_note
private

Definition at line 201 of file SupportMgr.h.

◆ _reportType

ReportType ComplaintTicket::_reportType
private

Definition at line 197 of file SupportMgr.h.

◆ _targetCharacterGuid

ObjectGuid ComplaintTicket::_targetCharacterGuid
private

Definition at line 196 of file SupportMgr.h.


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