TrinityCore
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)
 
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

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

◆ ~SuggestionTicket()

SuggestionTicket::~SuggestionTicket ( )

Definition at line 317 of file SupportMgr.cpp.

Member Function Documentation

◆ DeleteFromDB()

void SuggestionTicket::DeleteFromDB ( )
overridevirtual

Implements Ticket.

Definition at line 369 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ FormatViewMessageString() [1/3]

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

Implements Ticket.

Definition at line 376 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.

◆ GetNote()

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

Definition at line 211 of file SupportMgr.h.

◆ LoadFromDB()

void SuggestionTicket::LoadFromDB ( Field fields)
overridevirtual

Implements Ticket.

Definition at line 319 of file SupportMgr.cpp.

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

◆ SaveToDB()

void SuggestionTicket::SaveToDB ( ) const
overridevirtual

Implements Ticket.

Definition at line 349 of file SupportMgr.cpp.

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

◆ SetNote()

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

Definition at line 212 of file SupportMgr.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _note

std::string SuggestionTicket::_note
private

Definition at line 222 of file SupportMgr.h.


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