OregonCore  revision fb2a440-git
Your Favourite TBC server
SocialMgr.h File Reference
#include "Policies/Singleton.h"
#include "Database/DatabaseEnv.h"
#include "Common.h"

Go to the source code of this file.

Classes

struct  FriendInfo
 
class  PlayerSocial
 
class  SocialMgr
 

Macros

#define SOCIALMGR_FRIEND_LIMIT   50
 
#define SOCIALMGR_IGNORE_LIMIT   25
 
#define sSocialMgr   Oregon::Singleton<SocialMgr>::Instance()
 

Typedefs

typedef std::map< uint32, FriendInfoPlayerSocialMap
 
typedef std::map< uint32, PlayerSocialSocialMap
 

Enumerations

enum  FriendStatus {
  FRIEND_STATUS_OFFLINE = 0, FRIEND_STATUS_ONLINE = 1, FRIEND_STATUS_AFK = 2, FRIEND_STATUS_UNK3 = 3,
  FRIEND_STATUS_DND = 4, FRIEND_STATUS_RAF = 8
}
 
enum  SocialFlag { SOCIAL_FLAG_FRIEND = 0x01, SOCIAL_FLAG_IGNORED = 0x02, SOCIAL_FLAG_MUTED = 0x04 }
 
enum  FriendsResult {
  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_UNK7 = 0x19, FRIEND_UNKNOWN = 0x1A
}
 

Macro Definition Documentation

#define SOCIALMGR_FRIEND_LIMIT   50

Definition at line 112 of file SocialMgr.h.

Referenced by PlayerSocial::AddToSocialList(), and SocialMgr::LoadFromDB().

#define SOCIALMGR_IGNORE_LIMIT   25

Definition at line 113 of file SocialMgr.h.

Referenced by PlayerSocial::AddToSocialList(), and SocialMgr::LoadFromDB().

Typedef Documentation

typedef std::map<uint32, FriendInfo> PlayerSocialMap

Definition at line 77 of file SocialMgr.h.

typedef std::map<uint32, PlayerSocial> SocialMap

Definition at line 78 of file SocialMgr.h.

Enumeration Type Documentation

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_UNK7 
FRIEND_UNKNOWN 

Definition at line 81 of file SocialMgr.h.

82 {
83  FRIEND_DB_ERROR = 0x00,
84  FRIEND_LIST_FULL = 0x01,
85  FRIEND_ONLINE = 0x02,
86  FRIEND_OFFLINE = 0x03,
87  FRIEND_NOT_FOUND = 0x04,
88  FRIEND_REMOVED = 0x05,
89  FRIEND_ADDED_ONLINE = 0x06,
90  FRIEND_ADDED_OFFLINE = 0x07,
91  FRIEND_ALREADY = 0x08,
92  FRIEND_SELF = 0x09,
93  FRIEND_ENEMY = 0x0A,
94  FRIEND_IGNORE_FULL = 0x0B,
95  FRIEND_IGNORE_SELF = 0x0C,
97  FRIEND_IGNORE_ALREADY = 0x0E,
98  FRIEND_IGNORE_ADDED = 0x0F,
99  FRIEND_IGNORE_REMOVED = 0x10,
100  FRIEND_IGNORE_AMBIGUOUS = 0x11, // That name is ambiguous, type more of the player's server name
101  FRIEND_MUTE_FULL = 0x12,
102  FRIEND_MUTE_SELF = 0x13,
103  FRIEND_MUTE_NOT_FOUND = 0x14,
104  FRIEND_MUTE_ALREADY = 0x15,
105  FRIEND_MUTE_ADDED = 0x16,
106  FRIEND_MUTE_REMOVED = 0x17,
107  FRIEND_MUTE_AMBIGUOUS = 0x18, // That name is ambiguous, type more of the player's server name
108  FRIEND_UNK7 = 0x19, // no message at client
109  FRIEND_UNKNOWN = 0x1A // Unknown friend response from server
110 };
Enumerator
FRIEND_STATUS_OFFLINE 
FRIEND_STATUS_ONLINE 
FRIEND_STATUS_AFK 
FRIEND_STATUS_UNK3 
FRIEND_STATUS_DND 
FRIEND_STATUS_RAF 

Definition at line 30 of file SocialMgr.h.

enum SocialFlag
Enumerator
SOCIAL_FLAG_FRIEND 
SOCIAL_FLAG_IGNORED 
SOCIAL_FLAG_MUTED 

Definition at line 40 of file SocialMgr.h.

41 {
42  SOCIAL_FLAG_FRIEND = 0x01,
43  SOCIAL_FLAG_IGNORED = 0x02,
44  SOCIAL_FLAG_MUTED = 0x04 // guessed
45 };