TrinityCore
CalendarMgr Class Reference

#include <CalendarMgr.h>

Public Member Functions

 CalendarMgr (CalendarMgr const &)=delete
 
 CalendarMgr (CalendarMgr &&)=delete
 
CalendarMgroperator= (CalendarMgr const &)=delete
 
CalendarMgroperator= (CalendarMgr &&)=delete
 
void LoadFromDB ()
 
CalendarEventGetEvent (uint64 eventId) const
 
CalendarEventStore const & GetEvents () const
 
CalendarEventStore GetEventsCreatedBy (ObjectGuid guid, bool includeGuildEvents=false) const
 
CalendarEventStore GetPlayerEvents (ObjectGuid guid) const
 
CalendarEventStore GetGuildEvents (ObjectGuid::LowType guildId) const
 
CalendarInviteGetInvite (uint64 inviteId) const
 
CalendarEventInviteStore const & GetInvites () const
 
CalendarInviteStore GetEventInvites (uint64 eventId) const
 
CalendarInviteStore GetPlayerInvites (ObjectGuid guid) const
 
void FreeEventId (uint64 id)
 
uint64 GetFreeEventId ()
 
void FreeInviteId (uint64 id)
 
uint64 GetFreeInviteId ()
 
void DeleteOldEvents ()
 
uint32 GetPlayerNumPending (ObjectGuid guid)
 
void AddEvent (CalendarEvent *calendarEvent, CalendarSendEventType sendType)
 
void RemoveEvent (uint64 eventId, ObjectGuid remover)
 
void RemoveEvent (CalendarEvent *calendarEvent, ObjectGuid remover)
 
void UpdateEvent (CalendarEvent *calendarEvent)
 
void AddInvite (CalendarEvent *calendarEvent, CalendarInvite *invite, CharacterDatabaseTransaction trans=nullptr)
 
void RemoveInvite (uint64 inviteId, uint64 eventId, ObjectGuid remover)
 
void UpdateInvite (CalendarInvite *invite, CharacterDatabaseTransaction trans=nullptr)
 
void RemoveAllPlayerEventsAndInvites (ObjectGuid guid)
 
void RemovePlayerGuildEventsAndSignups (ObjectGuid guid, ObjectGuid::LowType guildId)
 
void SendCalendarEvent (ObjectGuid guid, CalendarEvent const &calendarEvent, CalendarSendEventType sendType) const
 
void SendCalendarEventInvite (CalendarInvite const &invite) const
 
void SendCalendarEventInviteAlert (CalendarEvent const &calendarEvent, CalendarInvite const &invite) const
 
void SendCalendarEventInviteRemove (CalendarEvent const &calendarEvent, CalendarInvite const &invite, uint32 flags) const
 
void SendCalendarEventInviteRemoveAlert (ObjectGuid guid, CalendarEvent const &calendarEvent, CalendarInviteStatus status) const
 
void SendCalendarEventUpdateAlert (CalendarEvent const &calendarEvent, time_t originalDate) const
 
void SendCalendarEventStatus (CalendarEvent const &calendarEvent, CalendarInvite const &invite) const
 
void SendCalendarEventRemovedAlert (CalendarEvent const &calendarEvent) const
 
void SendCalendarEventModeratorStatusAlert (CalendarEvent const &calendarEvent, CalendarInvite const &invite) const
 
void SendCalendarClearPendingAction (ObjectGuid guid) const
 
void SendCalendarCommandResult (ObjectGuid guid, CalendarError err, char const *param=nullptr) const
 
void SendPacketToAllEventRelatives (WorldPacket const *packet, CalendarEvent const &calendarEvent) const
 
std::vector< Player * > GetAllEventRelatives (CalendarEvent const &calendarEvent) const
 

Static Public Member Functions

static CalendarMgrinstance ()
 

Private Member Functions

 CalendarMgr ()
 
 ~CalendarMgr ()
 

Private Attributes

CalendarEventStore _events
 
CalendarEventInviteStore _invites
 
std::deque< uint64_freeEventIds
 
std::deque< uint64_freeInviteIds
 
uint64 _maxEventId
 
uint64 _maxInviteId
 

Detailed Description

Definition at line 297 of file CalendarMgr.h.

Constructor & Destructor Documentation

◆ CalendarMgr() [1/3]

CalendarMgr::CalendarMgr ( )
private

Definition at line 49 of file CalendarMgr.cpp.

◆ ~CalendarMgr()

CalendarMgr::~CalendarMgr ( )
private

Definition at line 51 of file CalendarMgr.cpp.

◆ CalendarMgr() [2/3]

CalendarMgr::CalendarMgr ( CalendarMgr const &  )
delete

◆ CalendarMgr() [3/3]

CalendarMgr::CalendarMgr ( CalendarMgr &&  )
delete

Member Function Documentation

◆ AddEvent()

void CalendarMgr::AddEvent ( CalendarEvent calendarEvent,
CalendarSendEventType  sendType 
)

Definition at line 143 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ AddInvite()

void CalendarMgr::AddInvite ( CalendarEvent calendarEvent,
CalendarInvite invite,
CharacterDatabaseTransaction  trans = nullptr 
)

Definition at line 150 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ DeleteOldEvents()

void CalendarMgr::DeleteOldEvents ( )

Definition at line 370 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ FreeEventId()

void CalendarMgr::FreeEventId ( uint64  id)

Definition at line 334 of file CalendarMgr.cpp.

◆ FreeInviteId()

void CalendarMgr::FreeInviteId ( uint64  id)

Definition at line 352 of file CalendarMgr.cpp.

◆ GetAllEventRelatives()

std::vector< Player * > CalendarMgr::GetAllEventRelatives ( CalendarEvent const &  calendarEvent) const

Definition at line 743 of file CalendarMgr.cpp.

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

◆ GetEvent()

CalendarEvent * CalendarMgr::GetEvent ( uint64  eventId) const

Definition at line 313 of file CalendarMgr.cpp.

+ Here is the caller graph for this function:

◆ GetEventInvites()

CalendarInviteStore CalendarMgr::GetEventInvites ( uint64  eventId) const

Definition at line 427 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ GetEvents()

CalendarEventStore const & CalendarMgr::GetEvents ( ) const
inline

Definition at line 323 of file CalendarMgr.h.

◆ GetEventsCreatedBy()

CalendarEventStore CalendarMgr::GetEventsCreatedBy ( ObjectGuid  guid,
bool  includeGuildEvents = false 
) const

Definition at line 383 of file CalendarMgr.cpp.

◆ GetFreeEventId()

uint64 CalendarMgr::GetFreeEventId ( )

Definition at line 342 of file CalendarMgr.cpp.

◆ GetFreeInviteId()

uint64 CalendarMgr::GetFreeInviteId ( )

Definition at line 360 of file CalendarMgr.cpp.

◆ GetGuildEvents()

CalendarEventStore CalendarMgr::GetGuildEvents ( ObjectGuid::LowType  guildId) const

Definition at line 393 of file CalendarMgr.cpp.

◆ GetInvite()

CalendarInvite * CalendarMgr::GetInvite ( uint64  inviteId) const

Definition at line 323 of file CalendarMgr.cpp.

+ Here is the caller graph for this function:

◆ GetInvites()

CalendarEventInviteStore const & CalendarMgr::GetInvites ( ) const
inline

Definition at line 329 of file CalendarMgr.h.

◆ GetPlayerEvents()

CalendarEventStore CalendarMgr::GetPlayerEvents ( ObjectGuid  guid) const

Definition at line 408 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ GetPlayerInvites()

CalendarInviteStore CalendarMgr::GetPlayerInvites ( ObjectGuid  guid) const

Definition at line 436 of file CalendarMgr.cpp.

+ Here is the caller graph for this function:

◆ GetPlayerNumPending()

uint32 CalendarMgr::GetPlayerNumPending ( ObjectGuid  guid)

Definition at line 448 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ instance()

CalendarMgr * CalendarMgr::instance ( )
static

Definition at line 61 of file CalendarMgr.cpp.

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

◆ LoadFromDB()

void CalendarMgr::LoadFromDB ( )

Definition at line 67 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ operator=() [1/2]

CalendarMgr & CalendarMgr::operator= ( CalendarMgr &&  )
delete

◆ operator=() [2/2]

CalendarMgr & CalendarMgr::operator= ( CalendarMgr const &  )
delete

◆ RemoveAllPlayerEventsAndInvites()

void CalendarMgr::RemoveAllPlayerEventsAndInvites ( ObjectGuid  guid)

Definition at line 285 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ RemoveEvent() [1/2]

void CalendarMgr::RemoveEvent ( CalendarEvent calendarEvent,
ObjectGuid  remover 
)

Definition at line 178 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ RemoveEvent() [2/2]

void CalendarMgr::RemoveEvent ( uint64  eventId,
ObjectGuid  remover 
)

Definition at line 165 of file CalendarMgr.cpp.

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

◆ RemoveInvite()

void CalendarMgr::RemoveInvite ( uint64  inviteId,
uint64  eventId,
ObjectGuid  remover 
)

Definition at line 221 of file CalendarMgr.cpp.

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

◆ RemovePlayerGuildEventsAndSignups()

void CalendarMgr::RemovePlayerGuildEventsAndSignups ( ObjectGuid  guid,
ObjectGuid::LowType  guildId 
)

Definition at line 300 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ SendCalendarClearPendingAction()

void CalendarMgr::SendCalendarClearPendingAction ( ObjectGuid  guid) const

Definition at line 708 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ SendCalendarCommandResult()

void CalendarMgr::SendCalendarCommandResult ( ObjectGuid  guid,
CalendarError  err,
char const *  param = nullptr 
) const

Definition at line 714 of file CalendarMgr.cpp.

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

◆ SendCalendarEvent()

void CalendarMgr::SendCalendarEvent ( ObjectGuid  guid,
CalendarEvent const &  calendarEvent,
CalendarSendEventType  sendType 
) const

Definition at line 643 of file CalendarMgr.cpp.

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

◆ SendCalendarEventInvite()

void CalendarMgr::SendCalendarEventInvite ( CalendarInvite const &  invite) const

Definition at line 485 of file CalendarMgr.cpp.

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

◆ SendCalendarEventInviteAlert()

void CalendarMgr::SendCalendarEventInviteAlert ( CalendarEvent const &  calendarEvent,
CalendarInvite const &  invite 
) const

Definition at line 612 of file CalendarMgr.cpp.

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

◆ SendCalendarEventInviteRemove()

void CalendarMgr::SendCalendarEventInviteRemove ( CalendarEvent const &  calendarEvent,
CalendarInvite const &  invite,
uint32  flags 
) const

Definition at line 590 of file CalendarMgr.cpp.

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

◆ SendCalendarEventInviteRemoveAlert()

void CalendarMgr::SendCalendarEventInviteRemoveAlert ( ObjectGuid  guid,
CalendarEvent const &  calendarEvent,
CalendarInviteStatus  status 
) const

Definition at line 693 of file CalendarMgr.cpp.

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

◆ SendCalendarEventModeratorStatusAlert()

void CalendarMgr::SendCalendarEventModeratorStatusAlert ( CalendarEvent const &  calendarEvent,
CalendarInvite const &  invite 
) const

Definition at line 601 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ SendCalendarEventRemovedAlert()

void CalendarMgr::SendCalendarEventRemovedAlert ( CalendarEvent const &  calendarEvent) const

Definition at line 573 of file CalendarMgr.cpp.

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

◆ SendCalendarEventStatus()

void CalendarMgr::SendCalendarEventStatus ( CalendarEvent const &  calendarEvent,
CalendarInvite const &  invite 
) const

Definition at line 551 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ SendCalendarEventUpdateAlert()

void CalendarMgr::SendCalendarEventUpdateAlert ( CalendarEvent const &  calendarEvent,
time_t  originalDate 
) const

Definition at line 523 of file CalendarMgr.cpp.

+ Here is the call graph for this function:

◆ SendPacketToAllEventRelatives()

void CalendarMgr::SendPacketToAllEventRelatives ( WorldPacket const *  packet,
CalendarEvent const &  calendarEvent 
) const

Definition at line 737 of file CalendarMgr.cpp.

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

◆ UpdateEvent()

void CalendarMgr::UpdateEvent ( CalendarEvent calendarEvent)

Definition at line 256 of file CalendarMgr.cpp.

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

◆ UpdateInvite()

void CalendarMgr::UpdateInvite ( CalendarInvite invite,
CharacterDatabaseTransaction  trans = nullptr 
)

Definition at line 271 of file CalendarMgr.cpp.

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

Member Data Documentation

◆ _events

CalendarEventStore CalendarMgr::_events
private

Definition at line 303 of file CalendarMgr.h.

◆ _freeEventIds

std::deque<uint64> CalendarMgr::_freeEventIds
private

Definition at line 306 of file CalendarMgr.h.

◆ _freeInviteIds

std::deque<uint64> CalendarMgr::_freeInviteIds
private

Definition at line 307 of file CalendarMgr.h.

◆ _invites

CalendarEventInviteStore CalendarMgr::_invites
private

Definition at line 304 of file CalendarMgr.h.

◆ _maxEventId

uint64 CalendarMgr::_maxEventId
private

Definition at line 308 of file CalendarMgr.h.

◆ _maxInviteId

uint64 CalendarMgr::_maxInviteId
private

Definition at line 309 of file CalendarMgr.h.


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