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

Go to the source code of this file.

Classes

struct  FriendInfo
 
class  PlayerSocial
 
class  SocialMgr
 

Macros

#define SOCIALMGR_FRIEND_LIMIT   50u
 
#define SOCIALMGR_IGNORE_LIMIT   50u
 
#define sSocialMgr   SocialMgr::instance()
 

Enumerations

enum  FriendStatus {
  FRIEND_STATUS_OFFLINE = 0x00, FRIEND_STATUS_ONLINE = 0x01, FRIEND_STATUS_AFK = 0x02, FRIEND_STATUS_DND = 0x04,
  FRIEND_STATUS_RAF = 0x08
}
 
enum  SocialFlag {
  SOCIAL_FLAG_FRIEND = 0x01, SOCIAL_FLAG_IGNORED = 0x02, SOCIAL_FLAG_MUTED = 0x04, SOCIAL_FLAG_UNK = 0x08,
  SOCIAL_FLAG_ALL = SOCIAL_FLAG_FRIEND | SOCIAL_FLAG_IGNORED | SOCIAL_FLAG_MUTED
}
 
enum  FriendsResult : uint8 {
  FRIEND_DB_ERROR = 0x00, FRIEND_LIST_FULL = 0x01, FRIEND_ONLINE = 0x02, FRIEND_OFFLINE = 0x03,
  FRIEND_NOT_FOUND = 0x04, FRIEND_REMOVED = 0x05, FRIEND_ADDED_ONLINE = 0x06, FRIEND_ADDED_OFFLINE = 0x07,
  FRIEND_ALREADY = 0x08, FRIEND_SELF = 0x09, FRIEND_ENEMY = 0x0A, FRIEND_IGNORE_FULL = 0x0B,
  FRIEND_IGNORE_SELF = 0x0C, FRIEND_IGNORE_NOT_FOUND = 0x0D, FRIEND_IGNORE_ALREADY = 0x0E, FRIEND_IGNORE_ADDED = 0x0F,
  FRIEND_IGNORE_REMOVED = 0x10, FRIEND_IGNORE_AMBIGUOUS = 0x11, FRIEND_MUTE_FULL = 0x12, FRIEND_MUTE_SELF = 0x13,
  FRIEND_MUTE_NOT_FOUND = 0x14, FRIEND_MUTE_ALREADY = 0x15, FRIEND_MUTE_ADDED = 0x16, FRIEND_MUTE_REMOVED = 0x17,
  FRIEND_MUTE_AMBIGUOUS = 0x18, FRIEND_UNK1 = 0x19, FRIEND_UNK2 = 0x1A, FRIEND_UNK3 = 0x1B,
  FRIEND_UNKNOWN = 0x1C
}
 Results of friend related commands. More...
 

Macro Definition Documentation

#define SOCIALMGR_FRIEND_LIMIT   50u
#define SOCIALMGR_IGNORE_LIMIT   50u
#define sSocialMgr   SocialMgr::instance()

Enumeration Type Documentation

Results of friend related commands.

Enumerator
FRIEND_DB_ERROR 
FRIEND_LIST_FULL 
FRIEND_ONLINE 
FRIEND_OFFLINE 
FRIEND_NOT_FOUND 
FRIEND_REMOVED 
FRIEND_ADDED_ONLINE 
FRIEND_ADDED_OFFLINE 
FRIEND_ALREADY 
FRIEND_SELF 
FRIEND_ENEMY 
FRIEND_IGNORE_FULL 
FRIEND_IGNORE_SELF 
FRIEND_IGNORE_NOT_FOUND 
FRIEND_IGNORE_ALREADY 
FRIEND_IGNORE_ADDED 
FRIEND_IGNORE_REMOVED 
FRIEND_IGNORE_AMBIGUOUS 
FRIEND_MUTE_FULL 
FRIEND_MUTE_SELF 
FRIEND_MUTE_NOT_FOUND 
FRIEND_MUTE_ALREADY 
FRIEND_MUTE_ADDED 
FRIEND_MUTE_REMOVED 
FRIEND_MUTE_AMBIGUOUS 
FRIEND_UNK1 
FRIEND_UNK2 
FRIEND_UNK3 
FRIEND_UNKNOWN 
67  : uint8
68 {
69  FRIEND_DB_ERROR = 0x00,
70  FRIEND_LIST_FULL = 0x01,
71  FRIEND_ONLINE = 0x02,
72  FRIEND_OFFLINE = 0x03,
73  FRIEND_NOT_FOUND = 0x04,
74  FRIEND_REMOVED = 0x05,
75  FRIEND_ADDED_ONLINE = 0x06,
76  FRIEND_ADDED_OFFLINE = 0x07,
77  FRIEND_ALREADY = 0x08,
78  FRIEND_SELF = 0x09,
79  FRIEND_ENEMY = 0x0A,
80  FRIEND_IGNORE_FULL = 0x0B,
81  FRIEND_IGNORE_SELF = 0x0C,
83  FRIEND_IGNORE_ALREADY = 0x0E,
84  FRIEND_IGNORE_ADDED = 0x0F,
85  FRIEND_IGNORE_REMOVED = 0x10,
86  FRIEND_IGNORE_AMBIGUOUS = 0x11, // That name is ambiguous, type more of the player's server name
87  FRIEND_MUTE_FULL = 0x12,
88  FRIEND_MUTE_SELF = 0x13,
89  FRIEND_MUTE_NOT_FOUND = 0x14,
90  FRIEND_MUTE_ALREADY = 0x15,
91  FRIEND_MUTE_ADDED = 0x16,
92  FRIEND_MUTE_REMOVED = 0x17,
93  FRIEND_MUTE_AMBIGUOUS = 0x18, // That name is ambiguous, type more of the player's server name
94  FRIEND_UNK1 = 0x19, // no message at client
95  FRIEND_UNK2 = 0x1A,
96  FRIEND_UNK3 = 0x1B,
97  FRIEND_UNKNOWN = 0x1C // Unknown friend response from server
98 };
Definition: SocialMgr.h:97
Definition: SocialMgr.h:93
Definition: SocialMgr.h:94
Definition: SocialMgr.h:82
Definition: SocialMgr.h:77
Definition: SocialMgr.h:81
Definition: SocialMgr.h:71
Definition: SocialMgr.h:78
Definition: SocialMgr.h:83
Definition: SocialMgr.h:75
Definition: SocialMgr.h:87
Definition: SocialMgr.h:96
Definition: SocialMgr.h:95
Definition: SocialMgr.h:74
Definition: SocialMgr.h:73
Definition: SocialMgr.h:90
Definition: SocialMgr.h:84
Definition: SocialMgr.h:89
Definition: SocialMgr.h:72
Definition: SocialMgr.h:80
Definition: SocialMgr.h:92
uint8_t uint8
Definition: Define.h:152
Definition: SocialMgr.h:69
Definition: SocialMgr.h:76
Definition: SocialMgr.h:88
Definition: SocialMgr.h:91
Definition: SocialMgr.h:70
Definition: SocialMgr.h:79
Definition: SocialMgr.h:85
Definition: SocialMgr.h:86
Enumerator
FRIEND_STATUS_OFFLINE 
FRIEND_STATUS_ONLINE 
FRIEND_STATUS_AFK 
FRIEND_STATUS_DND 
FRIEND_STATUS_RAF 
30 {
31  FRIEND_STATUS_OFFLINE = 0x00,
32  FRIEND_STATUS_ONLINE = 0x01,
33  FRIEND_STATUS_AFK = 0x02,
34  FRIEND_STATUS_DND = 0x04,
35  FRIEND_STATUS_RAF = 0x08
36 };
Definition: SocialMgr.h:35
Definition: SocialMgr.h:34
Definition: SocialMgr.h:31
Definition: SocialMgr.h:33
Definition: SocialMgr.h:32
enum SocialFlag
Enumerator
SOCIAL_FLAG_FRIEND 
SOCIAL_FLAG_IGNORED 
SOCIAL_FLAG_MUTED 
SOCIAL_FLAG_UNK 
SOCIAL_FLAG_ALL 
39 {
40  SOCIAL_FLAG_FRIEND = 0x01,
41  SOCIAL_FLAG_IGNORED = 0x02,
42  SOCIAL_FLAG_MUTED = 0x04, // guessed
43  SOCIAL_FLAG_UNK = 0x08, // Unknown - does not appear to be RaF
44 
46 };
Definition: SocialMgr.h:42
Definition: SocialMgr.h:41
Definition: SocialMgr.h:45
Definition: SocialMgr.h:43
Definition: SocialMgr.h:40