Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
CalendarEvent Struct Reference

#include <CalendarMgr.h>

Public Member Functions

std::string BuildCalendarMailBody () const
std::string BuildCalendarMailSubject (uint64 remover) const
 CalendarEvent ()
 CalendarEvent (CalendarEvent const &calendarEvent, uint64 eventId, uint64 newCreatorGuid)
 CalendarEvent (uint64 eventId, uint64 creatorGUID, uint32 guildId, CalendarEventType type, int32 dungeonId, time_t eventTime, uint32 flags, std::string title, std::string description)
uint64 GetCreatorGUID () const
std::string GetDescription () const
int32 GetDungeonId () const
uint64 GetEventId () const
time_t GetEventTime () const
uint32 GetFlags () const
uint32 GetGuildId () const
std::string GetTitle () const
CalendarEventType GetType () const
bool IsGuildAnnouncement () const
bool IsGuildEvent () const
void SetCreatorGUID (uint64 guid)
void SetDescription (const std::string &description)
void SetDungeonId (int32 dungeonId)
void SetEventId (uint64 eventId)
void SetEventTime (time_t eventTime)
void SetFlags (uint32 flags)
void SetGuildId (uint32 guildId)
void SetTitle (const std::string &title)
void SetType (CalendarEventType type)
 ~CalendarEvent ()

Private Attributes

uint64 _creatorGUID
std::string _description
int32 _dungeonId
uint64 _eventId
time_t _eventTime
uint32 _flags
uint32 _guildId
std::string _title
CalendarEventType _type

Detailed Description

Definition at line 184 of file CalendarMgr.h.

Constructor & Destructor Documentation

◆ CalendarEvent() [1/3]

CalendarEvent::CalendarEvent ( CalendarEvent const & calendarEvent,
uint64 eventId,
uint64 newCreatorGuid )
inline

◆ CalendarEvent() [2/3]

CalendarEvent::CalendarEvent ( uint64 eventId,
uint64 creatorGUID,
uint32 guildId,
CalendarEventType type,
int32 dungeonId,
time_t eventTime,
uint32 flags,
std::string title,
std::string description )
inline

Definition at line 200 of file CalendarMgr.h.

References _creatorGUID, _description, _dungeonId, _eventId, _eventTime, _flags, _guildId, _title, and _type.

◆ CalendarEvent() [3/3]

CalendarEvent::CalendarEvent ( )
inline

◆ ~CalendarEvent()

CalendarEvent::~CalendarEvent ( )

Definition at line 21 of file CalendarMgr.cpp.

References _eventId, and sCalendarMgr.

Member Function Documentation

◆ BuildCalendarMailBody()

std::string CalendarEvent::BuildCalendarMailBody ( ) const

Definition at line 379 of file CalendarMgr.cpp.

References _eventTime, and ByteBuffer::AppendPackedTime().

Referenced by CalendarMgr::RemoveEvent().

◆ BuildCalendarMailSubject()

std::string CalendarEvent::BuildCalendarMailSubject ( uint64 remover) const

Definition at line 372 of file CalendarMgr.cpp.

References _title.

Referenced by CalendarMgr::RemoveEvent().

◆ GetCreatorGUID()

◆ GetDescription()

std::string CalendarEvent::GetDescription ( ) const
inline

◆ GetDungeonId()

◆ GetEventId()

◆ GetEventTime()

◆ GetFlags()

◆ GetGuildId()

◆ GetTitle()

◆ GetType()

◆ IsGuildAnnouncement()

bool CalendarEvent::IsGuildAnnouncement ( ) const
inline

◆ IsGuildEvent()

◆ SetCreatorGUID()

void CalendarEvent::SetCreatorGUID ( uint64 guid)
inline

Definition at line 214 of file CalendarMgr.h.

References _creatorGUID.

◆ SetDescription()

void CalendarEvent::SetDescription ( const std::string & description)
inline

Definition at line 223 of file CalendarMgr.h.

References _description.

◆ SetDungeonId()

void CalendarEvent::SetDungeonId ( int32 dungeonId)
inline

Definition at line 229 of file CalendarMgr.h.

References _dungeonId.

◆ SetEventId()

void CalendarEvent::SetEventId ( uint64 eventId)
inline

Definition at line 211 of file CalendarMgr.h.

References _eventId.

◆ SetEventTime()

void CalendarEvent::SetEventTime ( time_t eventTime)
inline

Definition at line 232 of file CalendarMgr.h.

References _eventTime.

Referenced by WorldSession::HandleCalendarCopyEvent().

◆ SetFlags()

void CalendarEvent::SetFlags ( uint32 flags)
inline

Definition at line 235 of file CalendarMgr.h.

References _flags.

◆ SetGuildId()

void CalendarEvent::SetGuildId ( uint32 guildId)
inline

Definition at line 217 of file CalendarMgr.h.

References _guildId.

Referenced by WorldSession::HandleCalendarAddEvent().

◆ SetTitle()

void CalendarEvent::SetTitle ( const std::string & title)
inline

Definition at line 220 of file CalendarMgr.h.

References _title.

◆ SetType()

void CalendarEvent::SetType ( CalendarEventType type)
inline

Definition at line 226 of file CalendarMgr.h.

References _type.

Member Data Documentation

◆ _creatorGUID

uint64 CalendarEvent::_creatorGUID
private

◆ _description

std::string CalendarEvent::_description
private

◆ _dungeonId

int32 CalendarEvent::_dungeonId
private

◆ _eventId

uint64 CalendarEvent::_eventId
private

◆ _eventTime

time_t CalendarEvent::_eventTime
private

◆ _flags

uint32 CalendarEvent::_flags
private

◆ _guildId

uint32 CalendarEvent::_guildId
private

Definition at line 247 of file CalendarMgr.h.

Referenced by CalendarEvent(), CalendarEvent(), CalendarEvent(), GetGuildId(), and SetGuildId().

◆ _title

std::string CalendarEvent::_title
private

◆ _type

CalendarEventType CalendarEvent::_type
private

Definition at line 248 of file CalendarMgr.h.

Referenced by CalendarEvent(), CalendarEvent(), CalendarEvent(), GetType(), and SetType().


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