Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
CalendarMgr Class Reference

#include <CalendarMgr.h>

Public Member Functions

void AddEvent (CalendarEvent *calendarEvent, CalendarSendEventType sendType)
void AddInvite (CalendarEvent *calendarEvent, CalendarInvite *invite, bool sendEventInvitePacket=true, bool forceEventInviteAlertPacket=false)
void FreeEventId (uint64 id)
void FreeInviteId (uint64 id)
CalendarEventGetEvent (uint64 eventId) const
CalendarInviteStore const & GetEventInvites (uint64 eventId)
CalendarEventStore const & GetEvents () const
uint64 GetFreeEventId ()
uint64 GetFreeInviteId ()
CalendarInviteGetInvite (uint64 inviteId) const
CalendarEventInviteStore const & GetInvites () const
CalendarEventStore GetPlayerEvents (uint64 guid)
CalendarInviteStore GetPlayerInvites (uint64 guid)
uint32 GetPlayerNumPending (uint64 guid)
void LoadFromDB ()
void RemoveAllPlayerEventsAndInvites (uint64 guid)
void RemoveEvent (uint64 eventId, uint64 remover)
void RemoveInvite (uint64 inviteId, uint64 eventId, uint64 remover)
void RemovePlayerGuildEventsAndSignups (uint64 guid, uint32 guildId)
void SendCalendarClearPendingAction (uint64 guid)
void SendCalendarCommandResult (uint64 guid, CalendarError err, std::string param="")
void SendCalendarEvent (uint64 playerGuid, CalendarEvent const &calendarEvent, CalendarSendEventType sendType)
void SendCalendarEventInvite (CalendarInvite const &invite)
void SendCalendarEventInviteAlert (CalendarEvent const &calendarEvent, CalendarInvite const &invite, bool broadcast)
void SendCalendarEventInviteRemove (CalendarEvent const &calendarEvent, CalendarInvite const &invite, uint32 flags)
void SendCalendarEventInviteRemoveAlert (uint64 guid, CalendarEvent const &calendarEvent, CalendarInviteStatus status)
void SendCalendarEventModeratorStatus (CalendarEvent const &calendarEvent, CalendarInvite const &invite)
void SendCalendarEventRemovedAlert (CalendarEvent const &calendarEvent)
void SendCalendarEventStatus (CalendarEvent const &calendarEvent, CalendarInvite const &invite)
void SendCalendarEventStatusAlert (CalendarEvent const &calendarEvent, CalendarInvite const &invite)
void SendCalendarEventUpdateAlert (CalendarEvent const &calendarEvent, time_t oldEventTime)
void SendPacketToAllEventRelatives (WorldPacket packet, CalendarEvent const &calendarEvent)
void UpdateEvent (CalendarEvent *calendarEvent)
void UpdateInvite (CalendarInvite *invite)

Private Member Functions

 CalendarMgr ()
 ~CalendarMgr ()

Private Attributes

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

Friends

class Skyfire::Singleton< CalendarMgr, Skyfire::NullMutex >

Detailed Description

Definition at line 259 of file CalendarMgr.h.

Constructor & Destructor Documentation

◆ CalendarMgr()

CalendarMgr::CalendarMgr ( )
inlineprivate

Definition at line 264 of file CalendarMgr.h.

References _maxEventId, _maxInviteId, and CalendarMgr().

Referenced by CalendarMgr().

◆ ~CalendarMgr()

CalendarMgr::~CalendarMgr ( )
private

Definition at line 26 of file CalendarMgr.cpp.

References _events, and _invites.

Member Function Documentation

◆ AddEvent()

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

◆ AddInvite()

void CalendarMgr::AddInvite ( CalendarEvent * calendarEvent,
CalendarInvite * invite,
bool sendEventInvitePacket = true,
bool forceEventInviteAlertPacket = false )

◆ FreeEventId()

void CalendarMgr::FreeEventId ( uint64 id)

Definition at line 280 of file CalendarMgr.cpp.

References _freeEventIds, and _maxEventId.

◆ FreeInviteId()

void CalendarMgr::FreeInviteId ( uint64 id)

Definition at line 298 of file CalendarMgr.cpp.

References _freeInviteIds, and _maxInviteId.

◆ GetEvent()

CalendarEvent * CalendarMgr::GetEvent ( uint64 eventId) const

◆ GetEventInvites()

CalendarInviteStore const & CalendarMgr::GetEventInvites ( uint64 eventId)

Definition at line 333 of file CalendarMgr.cpp.

References _invites.

◆ GetEvents()

CalendarEventStore const & CalendarMgr::GetEvents ( ) const
inline

Definition at line 279 of file CalendarMgr.h.

References _events.

◆ GetFreeEventId()

uint64 CalendarMgr::GetFreeEventId ( )

Definition at line 288 of file CalendarMgr.cpp.

References _freeEventIds, and _maxEventId.

◆ GetFreeInviteId()

uint64 CalendarMgr::GetFreeInviteId ( )

Definition at line 306 of file CalendarMgr.cpp.

References _freeInviteIds, and _maxInviteId.

◆ GetInvite()

CalendarInvite * CalendarMgr::GetInvite ( uint64 inviteId) const

Definition at line 269 of file CalendarMgr.cpp.

References _invites, SF_LOG_DEBUG, and UI64FMTD.

Referenced by LoadFromDB().

◆ GetInvites()

CalendarEventInviteStore const & CalendarMgr::GetInvites ( ) const
inline

Definition at line 283 of file CalendarMgr.h.

References _invites.

◆ GetPlayerEvents()

CalendarEventStore CalendarMgr::GetPlayerEvents ( uint64 guid)

Definition at line 316 of file CalendarMgr.cpp.

References _events, _invites, ObjectAccessor::FindPlayer(), and GetEvent().

◆ GetPlayerInvites()

CalendarInviteStore CalendarMgr::GetPlayerInvites ( uint64 guid)

◆ GetPlayerNumPending()

uint32 CalendarMgr::GetPlayerNumPending ( uint64 guid)

◆ LoadFromDB()

◆ RemoveAllPlayerEventsAndInvites()

void CalendarMgr::RemoveAllPlayerEventsAndInvites ( uint64 guid)

Definition at line 235 of file CalendarMgr.cpp.

References _events, GetPlayerInvites(), RemoveEvent(), and RemoveInvite().

◆ RemoveEvent()

◆ RemoveInvite()

◆ RemovePlayerGuildEventsAndSignups()

void CalendarMgr::RemovePlayerGuildEventsAndSignups ( uint64 guid,
uint32 guildId )

Definition at line 246 of file CalendarMgr.cpp.

References _events, GetEvent(), GetPlayerInvites(), RemoveEvent(), and RemoveInvite().

◆ SendCalendarClearPendingAction()

void CalendarMgr::SendCalendarClearPendingAction ( uint64 guid)

◆ SendCalendarCommandResult()

◆ SendCalendarEvent()

◆ SendCalendarEventInvite()

◆ SendCalendarEventInviteAlert()

◆ SendCalendarEventInviteRemove()

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

◆ SendCalendarEventInviteRemoveAlert()

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

◆ SendCalendarEventModeratorStatus()

◆ SendCalendarEventRemovedAlert()

◆ SendCalendarEventStatus()

◆ SendCalendarEventStatusAlert()

◆ SendCalendarEventUpdateAlert()

◆ SendPacketToAllEventRelatives()

◆ UpdateEvent()

◆ UpdateInvite()

◆ Skyfire::Singleton< CalendarMgr, Skyfire::NullMutex >

Definition at line 253 of file CalendarMgr.h.

Member Data Documentation

◆ _events

◆ _freeEventIds

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

Definition at line 270 of file CalendarMgr.h.

Referenced by FreeEventId(), GetFreeEventId(), and LoadFromDB().

◆ _freeInviteIds

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

Definition at line 271 of file CalendarMgr.h.

Referenced by FreeInviteId(), GetFreeInviteId(), and LoadFromDB().

◆ _invites

◆ _maxEventId

uint64 CalendarMgr::_maxEventId
private

Definition at line 272 of file CalendarMgr.h.

Referenced by CalendarMgr(), FreeEventId(), GetFreeEventId(), and LoadFromDB().

◆ _maxInviteId

uint64 CalendarMgr::_maxInviteId
private

Definition at line 273 of file CalendarMgr.h.

Referenced by CalendarMgr(), FreeInviteId(), GetFreeInviteId(), and LoadFromDB().


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