![]() |
TrinityCore
|
#include <CalendarMgr.h>
Public Member Functions | |
| CalendarEvent (CalendarEvent const &calendarEvent, uint64 eventId) | |
| CalendarEvent (uint64 eventId, ObjectGuid ownerGUID, ObjectGuid::LowType guildId, CalendarEventType type, int32 textureId, time_t date, uint32 flags, std::string title, std::string description, time_t lockDate) | |
| CalendarEvent () | |
| CalendarEvent (CalendarEvent const &)=delete | |
| CalendarEvent (CalendarEvent &&)=delete | |
| CalendarEvent & | operator= (CalendarEvent const &)=delete |
| CalendarEvent & | operator= (CalendarEvent &&)=delete |
| ~CalendarEvent () | |
| void | SetEventId (uint64 eventId) |
| uint64 | GetEventId () const |
| void | SetOwnerGUID (ObjectGuid guid) |
| ObjectGuid | GetOwnerGUID () const |
| void | SetGuildId (ObjectGuid::LowType guildId) |
| ObjectGuid::LowType | GetGuildId () const |
| void | SetTitle (std::string const &title) |
| std::string | GetTitle () const |
| void | SetDescription (std::string const &description) |
| std::string | GetDescription () const |
| void | SetType (CalendarEventType eventType) |
| CalendarEventType | GetType () const |
| void | SetTextureId (int32 textureId) |
| int32 | GetTextureId () const |
| void | SetDate (time_t date) |
| time_t | GetDate () const |
| void | SetFlags (uint32 flags) |
| uint32 | GetFlags () const |
| bool | IsGuildEvent () const |
| bool | IsGuildAnnouncement () const |
| bool | IsLocked () const |
| void | SetLockDate (time_t lockDate) |
| time_t | GetLockDate () const |
| std::string | BuildCalendarMailSubject (ObjectGuid remover) const |
| std::string | BuildCalendarMailBody (Player const *invitee) const |
Static Public Member Functions | |
| static bool | IsGuildEvent (uint32 flags) |
| static bool | IsGuildAnnouncement (uint32 flags) |
Private Attributes | |
| uint64 | _eventId |
| ObjectGuid | _ownerGUID |
| ObjectGuid::LowType | _eventGuildId |
| CalendarEventType | _eventType |
| int32 | _textureId |
| time_t | _date |
| uint32 | _flags |
| std::string | _title |
| std::string | _description |
| time_t | _lockDate |
Definition at line 202 of file CalendarMgr.h.
|
inline |
Definition at line 205 of file CalendarMgr.h.
|
inline |
Definition at line 210 of file CalendarMgr.h.
|
inline |
Definition at line 215 of file CalendarMgr.h.
|
delete |
|
delete |
| CalendarEvent::~CalendarEvent | ( | ) |
Definition at line 44 of file CalendarMgr.cpp.
References _eventId, and sCalendarMgr.
| std::string CalendarEvent::BuildCalendarMailBody | ( | Player const * | invitee | ) | const |
Definition at line 475 of file CalendarMgr.cpp.
References _date, WowTime::GetPackedTime(), Player::GetSession(), WorldSession::GetTimezoneOffset(), WowTime::SetUtcTimeFromUnixTime(), and Trinity::ToString().
Referenced by CalendarMgr::RemoveEvent().
| std::string CalendarEvent::BuildCalendarMailSubject | ( | ObjectGuid | remover | ) | const |
Definition at line 470 of file CalendarMgr.cpp.
References _title, Trinity::StringFormat(), and ObjectGuid::ToString().
Referenced by CalendarMgr::RemoveEvent().
|
inline |
Definition at line 248 of file CalendarMgr.h.
Referenced by CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventInviteRemoveAlert(), CalendarMgr::SendCalendarEventRemovedAlert(), CalendarMgr::SendCalendarEventStatus(), CalendarMgr::SendCalendarEventUpdateAlert(), and CalendarMgr::UpdateEvent().
|
inline |
Definition at line 239 of file CalendarMgr.h.
Referenced by CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventUpdateAlert(), and CalendarMgr::UpdateEvent().
|
inline |
Definition at line 227 of file CalendarMgr.h.
Referenced by CalendarMgr::GetAllEventRelatives(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCalendarCopyEvent(), CalendarMgr::RemoveEvent(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventInviteRemove(), CalendarMgr::SendCalendarEventInviteRemoveAlert(), CalendarMgr::SendCalendarEventModeratorStatusAlert(), CalendarMgr::SendCalendarEventRemovedAlert(), CalendarMgr::SendCalendarEventStatus(), CalendarMgr::SendCalendarEventUpdateAlert(), and CalendarMgr::UpdateEvent().
|
inline |
Definition at line 251 of file CalendarMgr.h.
Referenced by CalendarMgr::RemoveInvite(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventInviteRemoveAlert(), CalendarMgr::SendCalendarEventStatus(), CalendarMgr::SendCalendarEventUpdateAlert(), and CalendarMgr::UpdateEvent().
|
inline |
Definition at line 233 of file CalendarMgr.h.
Referenced by CalendarMgr::GetAllEventRelatives(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInviteAlert(), and CalendarMgr::SendCalendarEventUpdateAlert().
|
inline |
Definition at line 258 of file CalendarMgr.h.
Referenced by CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventUpdateAlert(), and CalendarMgr::UpdateEvent().
|
inline |
Definition at line 230 of file CalendarMgr.h.
Referenced by CalendarMgr::AddEvent(), CalendarMgr::AddInvite(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventRemovedAlert(), CalendarMgr::SendCalendarEventUpdateAlert(), and CalendarMgr::UpdateEvent().
|
inline |
Definition at line 245 of file CalendarMgr.h.
Referenced by CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventUpdateAlert(), and CalendarMgr::UpdateEvent().
|
inline |
Definition at line 236 of file CalendarMgr.h.
Referenced by CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventUpdateAlert(), and CalendarMgr::UpdateEvent().
|
inline |
Definition at line 242 of file CalendarMgr.h.
Referenced by CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventUpdateAlert(), and CalendarMgr::UpdateEvent().
|
inline |
Definition at line 254 of file CalendarMgr.h.
References CALENDAR_FLAG_WITHOUT_INVITES.
Referenced by CalendarMgr::AddInvite(), CalendarMgr::GetAllEventRelatives(), WorldSession::HandleCalendarAddEvent(), and CalendarMgr::SendCalendarEventInviteAlert().
|
inlinestatic |
Definition at line 261 of file CalendarMgr.h.
References CALENDAR_FLAG_WITHOUT_INVITES, and flags.
|
inline |
Definition at line 253 of file CalendarMgr.h.
References CALENDAR_FLAG_GUILD_EVENT.
Referenced by CalendarMgr::AddInvite(), CalendarMgr::GetAllEventRelatives(), WorldSession::HandleCalendarAddEvent(), CalendarMgr::RemoveInvite(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), and CalendarMgr::SendCalendarEventInviteAlert().
|
inlinestatic |
Definition at line 260 of file CalendarMgr.h.
References CALENDAR_FLAG_GUILD_EVENT, and flags.
|
inline |
Definition at line 255 of file CalendarMgr.h.
References CALENDAR_FLAG_INVITES_LOCKED.
|
delete |
|
delete |
|
inline |
Definition at line 247 of file CalendarMgr.h.
Referenced by WorldSession::HandleCalendarCopyEvent().
|
inline |
Definition at line 238 of file CalendarMgr.h.
|
inline |
Definition at line 226 of file CalendarMgr.h.
|
inline |
Definition at line 250 of file CalendarMgr.h.
References flags.
|
inline |
Definition at line 232 of file CalendarMgr.h.
Referenced by WorldSession::HandleCalendarAddEvent().
|
inline |
Definition at line 257 of file CalendarMgr.h.
|
inline |
Definition at line 229 of file CalendarMgr.h.
|
inline |
Definition at line 244 of file CalendarMgr.h.
|
inline |
Definition at line 235 of file CalendarMgr.h.
|
inline |
Definition at line 241 of file CalendarMgr.h.
|
private |
Definition at line 272 of file CalendarMgr.h.
Referenced by BuildCalendarMailBody().
|
private |
Definition at line 275 of file CalendarMgr.h.
|
private |
Definition at line 269 of file CalendarMgr.h.
|
private |
Definition at line 267 of file CalendarMgr.h.
Referenced by ~CalendarEvent().
|
private |
Definition at line 270 of file CalendarMgr.h.
|
private |
Definition at line 273 of file CalendarMgr.h.
|
private |
Definition at line 276 of file CalendarMgr.h.
|
private |
Definition at line 268 of file CalendarMgr.h.
|
private |
Definition at line 271 of file CalendarMgr.h.
|
private |
Definition at line 274 of file CalendarMgr.h.
Referenced by BuildCalendarMailSubject().