65 Field* fields = result->Fetch();
69 std::string title = fields[2].
GetString();
70 std::string description = fields[3].
GetString();
79 guildID = Player::GetGuildIdFromDB(ownerGUID);
81 CalendarEvent* calendarEvent =
new CalendarEvent(eventID, ownerGUID, guildID, type, textureID, time_t(date), flags, title, description, time_t(lockDate));
88 while (result->NextRow());
90 TC_LOG_INFO(
"server.loading",
">> Loaded %u calendar events", count);
97 Field* fields = result->Fetch();
106 std::string note = fields[7].
GetString();
109 _invites[eventId].push_back(invite);
115 while (result->NextRow());
117 TC_LOG_INFO(
"server.loading",
">> Loaded %u calendar invites", count);
uint64 GetUInt64() const
Definition: Field.h:184
uint64 _maxInviteId
Definition: CalendarMgr.h:283
std::deque< uint64 > _freeInviteIds
Definition: CalendarMgr.h:281
Definition: CalendarMgr.h:38
Class used to access individual fields of database query result.
Definition: Field.h:56
CalendarEventType
Definition: CalendarMgr.h:56
#define UI64LIT(N)
Definition: Define.h:138
CalendarInvite * GetInvite(uint64 inviteId) const
Definition: CalendarMgr.cpp:303
std::deque< uint64 > _freeEventIds
Definition: CalendarMgr.h:280
CalendarEventStore _events
Definition: CalendarMgr.h:277
uint64 LowType
Definition: ObjectGuid.h:199
CalendarModerationRank
Definition: CalendarMgr.h:42
T max(const T &x, const T &y)
Definition: g3dmath.h:320
Definition: CalendarMgr.h:39
Definition: CalendarMgr.h:191
uint64 _maxEventId
Definition: CalendarMgr.h:282
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
std::shared_ptr< ResultSet > QueryResult
Definition: QueryResult.h:61
CalendarEvent * GetEvent(uint64 eventId) const
Definition: CalendarMgr.cpp:293
int32 GetInt32() const
Definition: Field.h:165
QueryResult Query(const char *sql, T *connection=nullptr)
Definition: DatabaseWorkerPool.cpp:113
uint32 GetUInt32() const
Definition: Field.h:146
CalendarEventInviteStore _invites
Definition: CalendarMgr.h:278
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
#define TC_LOG_INFO(filterType__,...)
Definition: Log.h:201
CalendarInviteStatus
Definition: CalendarMgr.h:74
Definition: ObjectGuid.h:189
uint8 flags
Definition: DisableMgr.cpp:44
Definition: CalendarMgr.h:131
std::string GetString() const
Definition: Field.h:276