TrinityCore
BugTicket Class Reference

#include <SupportMgr.h>

+ Inheritance diagram for BugTicket:

Public Member Functions

 BugTicket ()
 
 BugTicket (Player *player)
 
 ~BugTicket ()
 
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 142 of file SupportMgr.h.

Constructor & Destructor Documentation

◆ BugTicket() [1/2]

BugTicket::BugTicket ( )

Definition at line 91 of file SupportMgr.cpp.

◆ BugTicket() [2/2]

BugTicket::BugTicket ( Player player)

Definition at line 93 of file SupportMgr.cpp.

◆ ~BugTicket()

BugTicket::~BugTicket ( )

Definition at line 98 of file SupportMgr.cpp.

Member Function Documentation

◆ DeleteFromDB()

void BugTicket::DeleteFromDB ( )
overridevirtual

Implements Ticket.

Definition at line 150 of file SupportMgr.cpp.

+ Here is the call graph for this function:

◆ FormatViewMessageString() [1/3]

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

Implements Ticket.

Definition at line 157 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 & BugTicket::GetNote ( ) const
inline

Definition at line 149 of file SupportMgr.h.

◆ LoadFromDB()

void BugTicket::LoadFromDB ( Field fields)
overridevirtual

Implements Ticket.

Definition at line 100 of file SupportMgr.cpp.

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

◆ SaveToDB()

void BugTicket::SaveToDB ( ) const
overridevirtual

Implements Ticket.

Definition at line 130 of file SupportMgr.cpp.

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

◆ SetNote()

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

Definition at line 151 of file SupportMgr.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _note

std::string BugTicket::_note
private

Definition at line 161 of file SupportMgr.h.


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