GOG GALAXY SDK Documentation
IPersonaDataChangedListener Class Referenceabstract

Listener for the event of changing persona data. More...

#include <IFriends.h>

Inheritance diagram for IPersonaDataChangedListener:
[legend]

Public Types

enum  PersonaStateChange {
  PERSONA_CHANGE_NONE = 0x0000 , PERSONA_CHANGE_NAME = 0x0001 , PERSONA_CHANGE_AVATAR = 0x0002 , PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_SMALL = 0x0004 ,
  PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_MEDIUM = 0x0008 , PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_LARGE = 0x0010 , PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_ANY = PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_SMALL | PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_MEDIUM | PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_LARGE
}
 Describes what has changed about a user. More...
 

Public Member Functions

virtual void OnPersonaDataChanged (GalaxyID userID, uint32_t personaStateChange)=0
 Notification for the event of changing persona data. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GalaxyTypeAwareListener< PERSONA_DATA_CHANGED >
static ListenerType GetListenerType ()
 Returns the type of the listener. More...
 

Detailed Description

Listener for the event of changing persona data.

Member Enumeration Documentation

◆ PersonaStateChange

Describes what has changed about a user.

Enumerator
PERSONA_CHANGE_NONE 

No information has changed.

PERSONA_CHANGE_NAME 

Persona name has changed.

PERSONA_CHANGE_AVATAR 

Avatar, i.e. its URL, has changed.

PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_SMALL 

Small avatar image has been downloaded.

PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_MEDIUM 

Medium avatar image has been downloaded.

PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_LARGE 

Large avatar image has been downloaded.

PERSONA_CHANGE_AVATAR_DOWNLOADED_IMAGE_ANY 

Any avatar images have been downloaded.

Member Function Documentation

◆ OnPersonaDataChanged()

virtual void OnPersonaDataChanged ( GalaxyID  userID,
uint32_t  personaStateChange 
)
pure virtual

Notification for the event of changing persona data.

Parameters
[in]userIDThe ID of the user.
[in]personaStateChangeThe bit sum of the PersonaStateChange.