108 bool IsClosed()
const {
return !_closedBy.IsEmpty(); }
116 Player* GetPlayer()
const;
117 std::string GetPlayerName()
const;
118 Player* GetAssignedPlayer()
const;
120 std::string GetAssignedToName()
const;
126 void SetComment(std::string
const& comment) { _comment = comment; }
132 void SetFacing(
float facing) { _pos.SetOrientation(facing); }
138 void TeleportTo(
Player* player)
const;
141 virtual std::string FormatViewMessageString(
ChatHandler& handler,
const char* szClosedName,
const char* szAssignedToName,
const char* szUnassignedName,
const char* szDeletedName)
const;
161 std::string
const&
GetNote()
const {
return _note; }
163 void SetNote(std::string
const& note) { _note = note; }
165 void LoadFromDB(
Field* fields)
override;
167 void DeleteFromDB()
override;
170 std::string FormatViewMessageString(
ChatHandler& handler,
bool detailed =
false)
const override;
187 std::string
const&
GetNote()
const {
return _note; }
191 _targetCharacterGuid = targetCharacterGuid;
197 void SetNote(std::string
const& note) { _note = note; }
199 void LoadFromDB(
Field* fields)
override;
200 void LoadChatLineFromDB(
Field* fields);
202 void DeleteFromDB()
override;
205 std::string FormatViewMessageString(
ChatHandler& handler,
bool detailed =
false)
const override;
223 std::string
const&
GetNote()
const {
return _note; }
224 void SetNote(std::string
const& note) { _note = note; }
226 void LoadFromDB(
Field* fields)
override;
228 void DeleteFromDB()
override;
231 std::string FormatViewMessageString(
ChatHandler& handler,
bool detailed =
false)
const override;
277 void LoadBugTickets();
278 void LoadComplaintTickets();
279 void LoadSuggestionTickets();
303 void UpdateLastChange();
327#define sSupportMgr SupportMgr::instance()
static void SaveToDB(QuestPool const &pool, CharacterDatabaseTransaction trans)
@ TerroristAndViolentExtremistContent
@ ChildSexualExploitationAndAbuse
@ SUPPORT_SPAM_TYPE_CALENDAR
@ GMTICKET_QUEUE_STATUS_ENABLED
@ GMTICKET_QUEUE_STATUS_DISABLED
std::map< uint32, ComplaintTicket * > ComplaintTicketList
std::map< uint32, SuggestionTicket * > SuggestionTicketList
@ InappropriateCommunication
std::map< uint32, BugTicket * > BugTicketList
void SetNote(std::string const ¬e)
std::string const & GetNote() const
void SetTargetCharacterGuid(ObjectGuid targetCharacterGuid)
ReportMajorCategory _majorCategory
ObjectGuid GetTargetCharacterGuid() const
void SetNote(std::string const ¬e)
ReportMinorCategory _minorCategoryFlags
std::string const & GetNote() const
void SetMinorCategoryFlags(ReportMinorCategory minorCategoryFlags)
ReportType GetReportType() const
ReportMinorCategory GetMinorCategoryFlags() const
ObjectGuid _targetCharacterGuid
ReportMajorCategory GetMajorCategory() const
void SetMajorCategory(ReportMajorCategory majorCategory)
void SetChatLog(ChatLog const &log)
void SetReportType(ReportType reportType)
Class used to access individual fields of database query result.
void SetNote(std::string const ¬e)
std::string const & GetNote() const
void ShowList(ChatHandler &handler) const
bool _suggestionSystemStatus
uint32 _openBugTicketCount
SupportMgr & operator=(SupportMgr const &)=delete
uint32 _openSuggestionTicketCount
bool GetComplaintSystemStatus() const
void CloseTicket(uint32 ticketId, ObjectGuid closedBy)
SupportMgr(SupportMgr &&)=delete
bool GetTicketSystemStatus() const
void ShowClosedList(ChatHandler &handler) const
ComplaintTicketList _complaintTicketList
SupportMgr(SupportMgr const &)=delete
uint32 GetOpenTicketCount() const
bool GetBugSystemStatus() const
T * GetTicket(uint32 ticketId)
SuggestionTicketList _suggestionTicketList
SupportMgr & operator=(SupportMgr &&)=delete
void SetBugSystemStatus(bool status)
bool GetSuggestionSystemStatus() const
void SetSuggestionSystemStatus(bool status)
void RemoveTicket(uint32 ticketId)
void SetTicketSystemStatus(bool status)
bool _complaintSystemStatus
uint32 _openComplaintTicketCount
bool _supportSystemStatus
uint32 GenerateComplaintId()
void SetSupportSystemStatus(bool status)
uint64 GetLastChange() const
uint32 GenerateSuggestionId()
bool GetSupportSystemStatus() const
void ShowList(ChatHandler &handler, bool onlineOnly) const
void SetComplaintSystemStatus(bool status)
BugTicketList _bugTicketList
ObjectGuid GetAssignedToGUID() const
Ticket & operator=(Ticket &&)=delete
virtual void SetUnassigned()
bool IsAssignedTo(ObjectGuid guid) const
bool IsFromPlayer(ObjectGuid guid) const
void SetClosedBy(ObjectGuid value)
void SetFacing(float facing)
void SetComment(std::string const &comment)
virtual void LoadFromDB(Field *fields)=0
virtual void SetAssignedTo(ObjectGuid guid, bool=false)
std::string const & GetComment() const
bool IsAssignedNotTo(ObjectGuid guid) const
void SetPosition(uint32 mapId, Position const &pos)
virtual std::string FormatViewMessageString(ChatHandler &handler, bool detailed=false) const =0
ObjectGuid GetPlayerGuid() const
Ticket(Ticket const &)=delete
virtual void SaveToDB() const =0
Ticket & operator=(Ticket const &)=delete
virtual void DeleteFromDB()=0