TrinityCore
CalendarEvent Struct Reference

#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
 
CalendarEventoperator= (CalendarEvent const &)=delete
 
CalendarEventoperator= (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
 

Detailed Description

Definition at line 208 of file CalendarMgr.h.

Constructor & Destructor Documentation

◆ CalendarEvent() [1/5]

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

Definition at line 211 of file CalendarMgr.h.

+ Here is the call graph for this function:

◆ CalendarEvent() [2/5]

CalendarEvent::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 
)
inline

Definition at line 225 of file CalendarMgr.h.

◆ CalendarEvent() [3/5]

CalendarEvent::CalendarEvent ( )
inline

Definition at line 230 of file CalendarMgr.h.

◆ CalendarEvent() [4/5]

CalendarEvent::CalendarEvent ( CalendarEvent const &  )
delete

◆ CalendarEvent() [5/5]

CalendarEvent::CalendarEvent ( CalendarEvent &&  )
delete

◆ ~CalendarEvent()

CalendarEvent::~CalendarEvent ( )

Definition at line 44 of file CalendarMgr.cpp.

Member Function Documentation

◆ BuildCalendarMailBody()

std::string CalendarEvent::BuildCalendarMailBody ( Player const *  invitee) const

Definition at line 475 of file CalendarMgr.cpp.

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

◆ BuildCalendarMailSubject()

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

Definition at line 470 of file CalendarMgr.cpp.

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

◆ GetDate()

time_t CalendarEvent::GetDate ( ) const
inline

Definition at line 263 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ GetDescription()

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

Definition at line 254 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ GetEventId()

uint64 CalendarEvent::GetEventId ( ) const
inline

Definition at line 242 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ GetFlags()

uint32 CalendarEvent::GetFlags ( ) const
inline

Definition at line 266 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ GetGuildId()

ObjectGuid::LowType CalendarEvent::GetGuildId ( ) const
inline

Definition at line 248 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ GetLockDate()

time_t CalendarEvent::GetLockDate ( ) const
inline

Definition at line 273 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ GetOwnerGUID()

ObjectGuid CalendarEvent::GetOwnerGUID ( ) const
inline

Definition at line 245 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ GetTextureId()

int32 CalendarEvent::GetTextureId ( ) const
inline

Definition at line 260 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ GetTitle()

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

Definition at line 251 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ GetType()

CalendarEventType CalendarEvent::GetType ( ) const
inline

Definition at line 257 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ IsGuildAnnouncement() [1/2]

bool CalendarEvent::IsGuildAnnouncement ( ) const
inline

Definition at line 269 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ IsGuildAnnouncement() [2/2]

static bool CalendarEvent::IsGuildAnnouncement ( uint32  flags)
inlinestatic

Definition at line 276 of file CalendarMgr.h.

◆ IsGuildEvent() [1/2]

bool CalendarEvent::IsGuildEvent ( ) const
inline

Definition at line 268 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ IsGuildEvent() [2/2]

static bool CalendarEvent::IsGuildEvent ( uint32  flags)
inlinestatic

Definition at line 275 of file CalendarMgr.h.

◆ IsLocked()

bool CalendarEvent::IsLocked ( ) const
inline

Definition at line 270 of file CalendarMgr.h.

◆ operator=() [1/2]

CalendarEvent & CalendarEvent::operator= ( CalendarEvent &&  )
delete

◆ operator=() [2/2]

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

◆ SetDate()

void CalendarEvent::SetDate ( time_t  date)
inline

Definition at line 262 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ SetDescription()

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

Definition at line 253 of file CalendarMgr.h.

◆ SetEventId()

void CalendarEvent::SetEventId ( uint64  eventId)
inline

Definition at line 241 of file CalendarMgr.h.

◆ SetFlags()

void CalendarEvent::SetFlags ( uint32  flags)
inline

Definition at line 265 of file CalendarMgr.h.

◆ SetGuildId()

void CalendarEvent::SetGuildId ( ObjectGuid::LowType  guildId)
inline

Definition at line 247 of file CalendarMgr.h.

+ Here is the caller graph for this function:

◆ SetLockDate()

void CalendarEvent::SetLockDate ( time_t  lockDate)
inline

Definition at line 272 of file CalendarMgr.h.

◆ SetOwnerGUID()

void CalendarEvent::SetOwnerGUID ( ObjectGuid  guid)
inline

Definition at line 244 of file CalendarMgr.h.

◆ SetTextureId()

void CalendarEvent::SetTextureId ( int32  textureId)
inline

Definition at line 259 of file CalendarMgr.h.

◆ SetTitle()

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

Definition at line 250 of file CalendarMgr.h.

◆ SetType()

void CalendarEvent::SetType ( CalendarEventType  eventType)
inline

Definition at line 256 of file CalendarMgr.h.

Member Data Documentation

◆ _date

time_t CalendarEvent::_date
private

Definition at line 287 of file CalendarMgr.h.

◆ _description

std::string CalendarEvent::_description
private

Definition at line 290 of file CalendarMgr.h.

◆ _eventGuildId

ObjectGuid::LowType CalendarEvent::_eventGuildId
private

Definition at line 284 of file CalendarMgr.h.

◆ _eventId

uint64 CalendarEvent::_eventId
private

Definition at line 282 of file CalendarMgr.h.

◆ _eventType

CalendarEventType CalendarEvent::_eventType
private

Definition at line 285 of file CalendarMgr.h.

◆ _flags

uint32 CalendarEvent::_flags
private

Definition at line 288 of file CalendarMgr.h.

◆ _lockDate

time_t CalendarEvent::_lockDate
private

Definition at line 291 of file CalendarMgr.h.

◆ _ownerGUID

ObjectGuid CalendarEvent::_ownerGUID
private

Definition at line 283 of file CalendarMgr.h.

◆ _textureId

int32 CalendarEvent::_textureId
private

Definition at line 286 of file CalendarMgr.h.

◆ _title

std::string CalendarEvent::_title
private

Definition at line 289 of file CalendarMgr.h.


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