TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CalendarMgr.h File Reference
#include "Common.h"
#include "DatabaseEnv.h"
#include "WorldPacket.h"
#include "ObjectGuid.h"
+ Include dependency graph for CalendarMgr.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CalendarInvite
 
struct  CalendarEvent
 
class  CalendarMgr
 

Macros

#define CALENDAR_MAX_EVENTS   30
 
#define CALENDAR_MAX_GUILD_EVENTS   100
 
#define CALENDAR_MAX_INVITES   100
 
#define CALENDAR_DEFAULT_RESPONSE_TIME   946684800
 
#define sCalendarMgr   CalendarMgr::instance()
 

Typedefs

typedef std::vector
< CalendarInvite * > 
CalendarInviteStore
 
typedef std::set< CalendarEvent * > CalendarEventStore
 
typedef std::map< uint64,
CalendarInviteStore
CalendarEventInviteStore
 

Enumerations

enum  CalendarMailAnswers { CALENDAR_EVENT_REMOVED_MAIL_SUBJECT = 0, CALENDAR_INVITE_REMOVED_MAIL_SUBJECT = 0x100 }
 
enum  CalendarFlags { CALENDAR_FLAG_ALL_ALLOWED = 0x001, CALENDAR_FLAG_INVITES_LOCKED = 0x010, CALENDAR_FLAG_WITHOUT_INVITES = 0x040, CALENDAR_FLAG_GUILD_EVENT = 0x400 }
 
enum  CalendarModerationRank { CALENDAR_RANK_PLAYER = 0, CALENDAR_RANK_MODERATOR = 1, CALENDAR_RANK_OWNER = 2 }
 
enum  CalendarSendEventType { CALENDAR_SENDTYPE_GET = 0, CALENDAR_SENDTYPE_ADD = 1, CALENDAR_SENDTYPE_COPY = 2 }
 
enum  CalendarEventType {
  CALENDAR_TYPE_RAID = 0, CALENDAR_TYPE_DUNGEON = 1, CALENDAR_TYPE_PVP = 2, CALENDAR_TYPE_MEETING = 3,
  CALENDAR_TYPE_OTHER = 4, CALENDAR_TYPE_HEROIC = 5
}
 
enum  CalendarRepeatType { CALENDAR_REPEAT_NEVER = 0, CALENDAR_REPEAT_WEEKLY = 1, CALENDAR_REPEAT_BIWEEKLY = 2, CALENDAR_REPEAT_MONTHLY = 3 }
 
enum  CalendarInviteStatus {
  CALENDAR_STATUS_INVITED = 0, CALENDAR_STATUS_ACCEPTED = 1, CALENDAR_STATUS_DECLINED = 2, CALENDAR_STATUS_CONFIRMED = 3,
  CALENDAR_STATUS_OUT = 4, CALENDAR_STATUS_STANDBY = 5, CALENDAR_STATUS_SIGNED_UP = 6, CALENDAR_STATUS_NOT_SIGNED_UP = 7,
  CALENDAR_STATUS_TENTATIVE = 8, CALENDAR_STATUS_REMOVED = 9
}
 
enum  CalendarError {
  CALENDAR_OK = 0, CALENDAR_ERROR_GUILD_EVENTS_EXCEEDED = 1, CALENDAR_ERROR_EVENTS_EXCEEDED = 2, CALENDAR_ERROR_SELF_INVITES_EXCEEDED = 3,
  CALENDAR_ERROR_OTHER_INVITES_EXCEEDED = 4, CALENDAR_ERROR_PERMISSIONS = 5, CALENDAR_ERROR_EVENT_INVALID = 6, CALENDAR_ERROR_NOT_INVITED = 7,
  CALENDAR_ERROR_INTERNAL = 8, CALENDAR_ERROR_GUILD_PLAYER_NOT_IN_GUILD = 9, CALENDAR_ERROR_ALREADY_INVITED_TO_EVENT_S = 10, CALENDAR_ERROR_PLAYER_NOT_FOUND = 11,
  CALENDAR_ERROR_NOT_ALLIED = 12, CALENDAR_ERROR_IGNORING_YOU_S = 13, CALENDAR_ERROR_INVITES_EXCEEDED = 14, CALENDAR_ERROR_INVALID_DATE = 16,
  CALENDAR_ERROR_INVALID_TIME = 17, CALENDAR_ERROR_NEEDS_TITLE = 19, CALENDAR_ERROR_EVENT_PASSED = 20, CALENDAR_ERROR_EVENT_LOCKED = 21,
  CALENDAR_ERROR_DELETE_CREATOR_FAILED = 22, CALENDAR_ERROR_SYSTEM_DISABLED = 24, CALENDAR_ERROR_RESTRICTED_ACCOUNT = 25, CALENDAR_ERROR_ARENA_EVENTS_EXCEEDED = 26,
  CALENDAR_ERROR_RESTRICTED_LEVEL = 27, CALENDAR_ERROR_USER_SQUELCHED = 28, CALENDAR_ERROR_NO_INVITE = 29, CALENDAR_ERROR_EVENT_WRONG_SERVER = 36,
  CALENDAR_ERROR_INVITE_WRONG_SERVER = 37, CALENDAR_ERROR_NO_GUILD_INVITES = 38, CALENDAR_ERROR_INVALID_SIGNUP = 39, CALENDAR_ERROR_NO_MODERATOR = 40
}
 

Macro Definition Documentation

#define CALENDAR_DEFAULT_RESPONSE_TIME   946684800
#define CALENDAR_MAX_EVENTS   30
#define CALENDAR_MAX_GUILD_EVENTS   100
#define CALENDAR_MAX_INVITES   100
#define sCalendarMgr   CalendarMgr::instance()

Typedef Documentation

typedef std::set<CalendarEvent*> CalendarEventStore
typedef std::vector<CalendarInvite*> CalendarInviteStore

Enumeration Type Documentation

Enumerator
CALENDAR_OK 
CALENDAR_ERROR_GUILD_EVENTS_EXCEEDED 
CALENDAR_ERROR_EVENTS_EXCEEDED 
CALENDAR_ERROR_SELF_INVITES_EXCEEDED 
CALENDAR_ERROR_OTHER_INVITES_EXCEEDED 
CALENDAR_ERROR_PERMISSIONS 
CALENDAR_ERROR_EVENT_INVALID 
CALENDAR_ERROR_NOT_INVITED 
CALENDAR_ERROR_INTERNAL 
CALENDAR_ERROR_GUILD_PLAYER_NOT_IN_GUILD 
CALENDAR_ERROR_ALREADY_INVITED_TO_EVENT_S 
CALENDAR_ERROR_PLAYER_NOT_FOUND 
CALENDAR_ERROR_NOT_ALLIED 
CALENDAR_ERROR_IGNORING_YOU_S 
CALENDAR_ERROR_INVITES_EXCEEDED 
CALENDAR_ERROR_INVALID_DATE 
CALENDAR_ERROR_INVALID_TIME 
CALENDAR_ERROR_NEEDS_TITLE 
CALENDAR_ERROR_EVENT_PASSED 
CALENDAR_ERROR_EVENT_LOCKED 
CALENDAR_ERROR_DELETE_CREATOR_FAILED 
CALENDAR_ERROR_SYSTEM_DISABLED 
CALENDAR_ERROR_RESTRICTED_ACCOUNT 
CALENDAR_ERROR_ARENA_EVENTS_EXCEEDED 
CALENDAR_ERROR_RESTRICTED_LEVEL 
CALENDAR_ERROR_USER_SQUELCHED 
CALENDAR_ERROR_NO_INVITE 
CALENDAR_ERROR_EVENT_WRONG_SERVER 
CALENDAR_ERROR_INVITE_WRONG_SERVER 
CALENDAR_ERROR_NO_GUILD_INVITES 
CALENDAR_ERROR_INVALID_SIGNUP 
CALENDAR_ERROR_NO_MODERATOR 
89 {
90  CALENDAR_OK = 0,
107 
118 
124 };
Definition: CalendarMgr.h:98
Definition: CalendarMgr.h:117
Definition: CalendarMgr.h:99
Definition: CalendarMgr.h:101
Definition: CalendarMgr.h:104
Definition: CalendarMgr.h:114
Definition: CalendarMgr.h:90
Definition: CalendarMgr.h:103
Definition: CalendarMgr.h:119
Definition: CalendarMgr.h:121
Definition: CalendarMgr.h:93
Definition: CalendarMgr.h:111
Definition: CalendarMgr.h:108
Definition: CalendarMgr.h:106
Definition: CalendarMgr.h:97
Definition: CalendarMgr.h:109
Definition: CalendarMgr.h:110
Definition: CalendarMgr.h:113
Definition: CalendarMgr.h:96
Definition: CalendarMgr.h:100
Definition: CalendarMgr.h:122
Definition: CalendarMgr.h:123
Definition: CalendarMgr.h:115
Definition: CalendarMgr.h:94
Definition: CalendarMgr.h:120
Definition: CalendarMgr.h:102
Definition: CalendarMgr.h:116
Definition: CalendarMgr.h:105
Definition: CalendarMgr.h:112
Definition: CalendarMgr.h:92
Definition: CalendarMgr.h:95
Definition: CalendarMgr.h:91
Enumerator
CALENDAR_TYPE_RAID 
CALENDAR_TYPE_DUNGEON 
CALENDAR_TYPE_PVP 
CALENDAR_TYPE_MEETING 
CALENDAR_TYPE_OTHER 
CALENDAR_TYPE_HEROIC 
57 {
64 };
Definition: CalendarMgr.h:63
Definition: CalendarMgr.h:62
Definition: CalendarMgr.h:60
Definition: CalendarMgr.h:58
Definition: CalendarMgr.h:59
Definition: CalendarMgr.h:61
Enumerator
CALENDAR_FLAG_ALL_ALLOWED 
CALENDAR_FLAG_INVITES_LOCKED 
CALENDAR_FLAG_WITHOUT_INVITES 
CALENDAR_FLAG_GUILD_EVENT 
35 {
40 };
Definition: CalendarMgr.h:36
Definition: CalendarMgr.h:38
Definition: CalendarMgr.h:39
Definition: CalendarMgr.h:37
Enumerator
CALENDAR_STATUS_INVITED 
CALENDAR_STATUS_ACCEPTED 
CALENDAR_STATUS_DECLINED 
CALENDAR_STATUS_CONFIRMED 
CALENDAR_STATUS_OUT 
CALENDAR_STATUS_STANDBY 
CALENDAR_STATUS_SIGNED_UP 
CALENDAR_STATUS_NOT_SIGNED_UP 
CALENDAR_STATUS_TENTATIVE 
CALENDAR_STATUS_REMOVED 
75 {
85  CALENDAR_STATUS_REMOVED = 9 // correct name?
86 };
Definition: CalendarMgr.h:84
Definition: CalendarMgr.h:82
Definition: CalendarMgr.h:83
Definition: CalendarMgr.h:79
Definition: CalendarMgr.h:77
Definition: CalendarMgr.h:80
Definition: CalendarMgr.h:81
Definition: CalendarMgr.h:76
Definition: CalendarMgr.h:78
Definition: CalendarMgr.h:85
Enumerator
CALENDAR_EVENT_REMOVED_MAIL_SUBJECT 
CALENDAR_INVITE_REMOVED_MAIL_SUBJECT 
27 {
28  // else
30  // if ( *(_DWORD *)(a1 + 8292) & 0x100 )
32 };
Definition: CalendarMgr.h:29
Definition: CalendarMgr.h:31
Enumerator
CALENDAR_RANK_PLAYER 
CALENDAR_RANK_MODERATOR 
CALENDAR_RANK_OWNER 
43 {
47 };
Definition: CalendarMgr.h:45
Definition: CalendarMgr.h:46
Definition: CalendarMgr.h:44
Enumerator
CALENDAR_REPEAT_NEVER 
CALENDAR_REPEAT_WEEKLY 
CALENDAR_REPEAT_BIWEEKLY 
CALENDAR_REPEAT_MONTHLY 
67 {
72 };
Definition: CalendarMgr.h:69
Definition: CalendarMgr.h:70
Definition: CalendarMgr.h:68
Definition: CalendarMgr.h:71
Enumerator
CALENDAR_SENDTYPE_GET 
CALENDAR_SENDTYPE_ADD 
CALENDAR_SENDTYPE_COPY 
50 {
54 };
Definition: CalendarMgr.h:53
Definition: CalendarMgr.h:52
Definition: CalendarMgr.h:51