TrinityCore
Guild::NewsLogEntry Class Reference
+ Inheritance diagram for Guild::NewsLogEntry:

Public Member Functions

 NewsLogEntry (ObjectGuid::LowType guildId, uint32 guid, GuildNews type, ObjectGuid playerGuid, uint32 flags, uint32 value)
 
 NewsLogEntry (ObjectGuid::LowType guildId, uint32 guid, time_t timestamp, GuildNews type, ObjectGuid playerGuid, uint32 flags, uint32 value)
 
 ~NewsLogEntry ()
 
GuildNews GetType () const
 
ObjectGuid GetPlayerGuid () const
 
uint32 GetValue () const
 
uint32 GetFlags () const
 
void SetSticky (bool sticky)
 
void SaveToDB (CharacterDatabaseTransaction trans) const override
 
void WritePacket (WorldPackets::Guild::GuildNews &newsPacket) const
 
- Public Member Functions inherited from Guild::LogEntry
 LogEntry (ObjectGuid::LowType guildId, uint32 guid)
 
 LogEntry (ObjectGuid::LowType guildId, uint32 guid, time_t timestamp)
 
virtual ~LogEntry ()
 
uint32 GetGUID () const
 
time_t GetTimestamp () const
 
virtual void SaveToDB (CharacterDatabaseTransaction trans) const =0
 

Private Attributes

GuildNews m_type
 
ObjectGuid m_playerGuid
 
uint32 m_flags
 
uint32 m_value
 

Additional Inherited Members

- Protected Attributes inherited from Guild::LogEntry
ObjectGuid::LowType m_guildId
 
uint32 m_guid
 
time_t m_timestamp
 

Detailed Description

Definition at line 506 of file Guild.h.

Constructor & Destructor Documentation

◆ NewsLogEntry() [1/2]

Guild::NewsLogEntry::NewsLogEntry ( ObjectGuid::LowType  guildId,
uint32  guid,
GuildNews  type,
ObjectGuid  playerGuid,
uint32  flags,
uint32  value 
)
inline

Definition at line 509 of file Guild.h.

◆ NewsLogEntry() [2/2]

Guild::NewsLogEntry::NewsLogEntry ( ObjectGuid::LowType  guildId,
uint32  guid,
time_t  timestamp,
GuildNews  type,
ObjectGuid  playerGuid,
uint32  flags,
uint32  value 
)
inline

Definition at line 512 of file Guild.h.

◆ ~NewsLogEntry()

Guild::NewsLogEntry::~NewsLogEntry ( )
inline

Definition at line 515 of file Guild.h.

Member Function Documentation

◆ GetFlags()

uint32 Guild::NewsLogEntry::GetFlags ( ) const
inline

Definition at line 520 of file Guild.h.

◆ GetPlayerGuid()

ObjectGuid Guild::NewsLogEntry::GetPlayerGuid ( ) const
inline

Definition at line 518 of file Guild.h.

◆ GetType()

GuildNews Guild::NewsLogEntry::GetType ( ) const
inline

Definition at line 517 of file Guild.h.

◆ GetValue()

uint32 Guild::NewsLogEntry::GetValue ( ) const
inline

Definition at line 519 of file Guild.h.

◆ SaveToDB()

void Guild::NewsLogEntry::SaveToDB ( CharacterDatabaseTransaction  trans) const
overridevirtual

Implements Guild::LogEntry.

Definition at line 215 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetSticky()

void Guild::NewsLogEntry::SetSticky ( bool  sticky)
inline

Definition at line 521 of file Guild.h.

◆ WritePacket()

void Guild::NewsLogEntry::WritePacket ( WorldPackets::Guild::GuildNews newsPacket) const

Definition at line 229 of file Guild.cpp.

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

Member Data Documentation

◆ m_flags

uint32 Guild::NewsLogEntry::m_flags
private

Definition at line 535 of file Guild.h.

◆ m_playerGuid

ObjectGuid Guild::NewsLogEntry::m_playerGuid
private

Definition at line 534 of file Guild.h.

◆ m_type

GuildNews Guild::NewsLogEntry::m_type
private

Definition at line 533 of file Guild.h.

◆ m_value

uint32 Guild::NewsLogEntry::m_value
private

Definition at line 536 of file Guild.h.


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