96 bool IsClosed()
const {
return !_closedBy.IsEmpty(); }
98 bool IsAssigned()
const {
return !_assignedTo.IsEmpty(); }
105 std::string GetPlayerName()
const;
106 Player* GetAssignedPlayer()
const;
108 std::string GetAssignedToName()
const;
114 void SetComment(std::string
const& comment) { _comment = comment; }
120 void SetFacing(
float facing) { _pos.SetOrientation(facing); }
126 void TeleportTo(
Player* player)
const;
129 virtual std::string FormatViewMessageString(
ChatHandler& handler,
const char* szClosedName,
const char* szAssignedToName,
const char* szUnassignedName,
const char* szDeletedName)
const;
149 std::string
const&
GetNote()
const {
return _note; }
151 void SetNote(std::string
const& note) { _note = note; }
153 void LoadFromDB(
Field* fields)
override;
155 void DeleteFromDB()
override;
158 std::string FormatViewMessageString(
ChatHandler& handler,
bool detailed =
false)
const override;
175 std::string
const&
GetNote()
const {
return _note; }
179 _targetCharacterGuid = targetCharacterGuid;
185 void SetNote(std::string
const& note) { _note = note; }
187 void LoadFromDB(
Field* fields)
override;
188 void LoadChatLineFromDB(
Field* fields);
190 void DeleteFromDB()
override;
193 std::string FormatViewMessageString(
ChatHandler& handler,
bool detailed =
false)
const override;
211 std::string
const&
GetNote()
const {
return _note; }
212 void SetNote(std::string
const& note) { _note = note; }
214 void LoadFromDB(
Field* fields)
override;
216 void DeleteFromDB()
override;
219 std::string FormatViewMessageString(
ChatHandler& handler,
bool detailed =
false)
const override;
260 void LoadBugTickets();
261 void LoadComplaintTickets();
262 void LoadSuggestionTickets();
286 void UpdateLastChange();
310#define sSupportMgr SupportMgr::instance()
static void SaveToDB(QuestPool const &pool, CharacterDatabaseTransaction trans)
@ 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
uint32 _openSuggestionTicketCount
bool GetComplaintSystemStatus() const
void CloseTicket(uint32 ticketId, ObjectGuid closedBy)
bool GetTicketSystemStatus() const
void ShowClosedList(ChatHandler &handler) const
ComplaintTicketList _complaintTicketList
uint32 GetOpenTicketCount() const
bool GetBugSystemStatus() const
T * GetTicket(uint32 ticketId)
SuggestionTicketList _suggestionTicketList
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
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
virtual void SaveToDB() const =0
virtual void DeleteFromDB()=0
TC_GAME_API Player * GetPlayer(Map const *, ObjectGuid const &guid)