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

#include <SupportMgr.h>

+ Inheritance diagram for SuggestionTicket:

Public Member Functions

 SuggestionTicket ()
 
 SuggestionTicket (Player *player)
 
 ~SuggestionTicket ()
 
std::string const & GetNote () const
 
void SetNote (std::string const &note)
 
void LoadFromDB (Field *fields) override
 
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

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 216 of file SupportMgr.h.

Constructor & Destructor Documentation

◆ SuggestionTicket() [1/2]

SuggestionTicket::SuggestionTicket ( )

Definition at line 310 of file SupportMgr.cpp.

◆ SuggestionTicket() [2/2]

SuggestionTicket::SuggestionTicket ( Player *  player)

Definition at line 312 of file SupportMgr.cpp.

References Ticket::_id, and sSupportMgr.

◆ ~SuggestionTicket()

SuggestionTicket::~SuggestionTicket ( )

Definition at line 317 of file SupportMgr.cpp.

Member Function Documentation

◆ DeleteFromDB()

void SuggestionTicket::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.

◆ GetNote()

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

Definition at line 223 of file SupportMgr.h.

◆ LoadFromDB()

◆ SaveToDB()

◆ SetNote()

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

Definition at line 224 of file SupportMgr.h.

Referenced by WorldSession::HandleSubmitUserFeedback().

Member Data Documentation

◆ _note

std::string SuggestionTicket::_note
private

Definition at line 234 of file SupportMgr.h.

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


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