GOG GALAXY SDK Documentation
|
The interface for managing social info and activities. More...
#include <IFriends.h>
Public Member Functions | |
virtual AvatarCriteria | GetDefaultAvatarCriteria ()=0 |
Returns the default avatar criteria. More... | |
virtual void | SetDefaultAvatarCriteria (AvatarCriteria defaultAvatarCriteria)=0 |
Sets the default avatar criteria. More... | |
virtual void | RequestUserInformation (GalaxyID userID, AvatarCriteria avatarCriteria=AVATAR_TYPE_NONE, IUserInformationRetrieveListener *const listener=NULL)=0 |
Performs a request for information about specified user. More... | |
virtual bool | IsUserInformationAvailable (GalaxyID userID)=0 |
Checks if the information of specified user is available. More... | |
virtual const char * | GetPersonaName ()=0 |
Returns the user's nickname. More... | |
virtual void | GetPersonaNameCopy (char *buffer, uint32_t bufferLength)=0 |
Copies the user's nickname to a buffer. More... | |
virtual PersonaState | GetPersonaState ()=0 |
Returns the user's state. More... | |
virtual const char * | GetFriendPersonaName (GalaxyID userID)=0 |
Returns the nickname of a specified user. More... | |
virtual void | GetFriendPersonaNameCopy (GalaxyID userID, char *buffer, uint32_t bufferLength)=0 |
Copies the nickname of a specified user. More... | |
virtual PersonaState | GetFriendPersonaState (GalaxyID userID)=0 |
Returns the state of a specified user. More... | |
virtual const char * | GetFriendAvatarUrl (GalaxyID userID, AvatarType avatarType)=0 |
Returns the URL of the avatar of a specified user. More... | |
virtual void | GetFriendAvatarUrlCopy (GalaxyID userID, AvatarType avatarType, char *buffer, uint32_t bufferLength)=0 |
Copies URL of the avatar of a specified user. More... | |
virtual uint32_t | GetFriendAvatarImageID (GalaxyID userID, AvatarType avatarType)=0 |
Returns the ID of the avatar of a specified user. More... | |
virtual void | GetFriendAvatarImageRGBA (GalaxyID userID, AvatarType avatarType, void *buffer, uint32_t bufferLength)=0 |
Copies the avatar of a specified user. More... | |
virtual bool | IsFriendAvatarImageRGBAAvailable (GalaxyID userID, AvatarType avatarType)=0 |
Checks if a specified avatar image is available. More... | |
virtual void | RequestFriendList (IFriendListListener *const listener=NULL)=0 |
Performs a request for the user's list of friends. More... | |
virtual bool | IsFriend (GalaxyID userID)=0 |
Checks if a specified user is a friend. More... | |
virtual uint32_t | GetFriendCount ()=0 |
Returns the number of retrieved friends in the user's list of friends. More... | |
virtual GalaxyID | GetFriendByIndex (uint32_t index)=0 |
Returns the GalaxyID for a friend. More... | |
virtual void | SendFriendInvitation (GalaxyID userID, IFriendInvitationSendListener *const listener=NULL)=0 |
Sends a friend invitation. More... | |
virtual void | RequestFriendInvitationList (IFriendInvitationListRetrieveListener *const listener=NULL)=0 |
Performs a request for the user's list of incoming friend invitations. More... | |
virtual void | RequestSentFriendInvitationList (ISentFriendInvitationListRetrieveListener *const listener=NULL)=0 |
Performs a request for the user's list of outgoing friend invitations. More... | |
virtual uint32_t | GetFriendInvitationCount ()=0 |
Returns the number of retrieved friend invitations. More... | |
virtual void | GetFriendInvitationByIndex (uint32_t index, GalaxyID &userID, uint32_t &sendTime)=0 |
Reads the details of the friend invitation. More... | |
virtual void | RespondToFriendInvitation (GalaxyID userID, bool accept, IFriendInvitationRespondToListener *const listener=NULL)=0 |
Responds to the friend invitation. More... | |
virtual void | DeleteFriend (GalaxyID userID, IFriendDeleteListener *const listener=NULL)=0 |
Removes a user from the friend list. More... | |
virtual void | SetRichPresence (const char *key, const char *value, IRichPresenceChangeListener *const listener=NULL)=0 |
Sets the variable value under a specified name. More... | |
virtual void | DeleteRichPresence (const char *key, IRichPresenceChangeListener *const listener=NULL)=0 |
Removes the variable value under a specified name. More... | |
virtual void | ClearRichPresence (IRichPresenceChangeListener *const listener=NULL)=0 |
Removes all rich presence data for the user. More... | |
virtual void | RequestRichPresence (GalaxyID userID=GalaxyID(), IRichPresenceRetrieveListener *const listener=NULL)=0 |
Performs a request for the user's rich presence. More... | |
virtual const char * | GetRichPresence (const char *key, GalaxyID userID=GalaxyID())=0 |
Returns the rich presence of a specified user. More... | |
virtual void | GetRichPresenceCopy (const char *key, char *buffer, uint32_t bufferLength, GalaxyID userID=GalaxyID())=0 |
Copies the rich presence of a specified user to a buffer. More... | |
virtual uint32_t | GetRichPresenceCount (GalaxyID userID=GalaxyID())=0 |
Returns the number of retrieved properties in user's rich presence. More... | |
virtual void | GetRichPresenceByIndex (uint32_t index, char *key, uint32_t keyLength, char *value, uint32_t valueLength, GalaxyID userID=GalaxyID())=0 |
Returns a property from the rich presence storage by index. More... | |
virtual const char * | GetRichPresenceKeyByIndex (uint32_t index, GalaxyID userID=GalaxyID())=0 |
Returns a key from the rich presence storage by index. More... | |
virtual void | GetRichPresenceKeyByIndexCopy (uint32_t index, char *buffer, uint32_t bufferLength, GalaxyID userID=GalaxyID())=0 |
Copies a key from the rich presence storage by index to a buffer. More... | |
virtual void | ShowOverlayInviteDialog (const char *connectionString)=0 |
Shows game invitation dialog that allows to invite users to game. More... | |
virtual void | SendInvitation (GalaxyID userID, const char *connectionString, ISendInvitationListener *const listener=NULL)=0 |
Sends a game invitation without using the overlay. More... | |
virtual void | FindUser (const char *userSpecifier, IUserFindListener *const listener=NULL)=0 |
Finds a specified user. More... | |
virtual bool | IsUserInTheSameGame (GalaxyID userID) const =0 |
Checks if a specified user is playing the same game. More... | |
The interface for managing social info and activities.
|
pure virtual |
Removes all rich presence data for the user.
This call in asynchronous. Responses come to the IRichPresenceChangeListener.
[in] | listener | The listener for specific operation. |
|
pure virtual |
Removes a user from the friend list.
This call in asynchronous. Responses come to the IFriendDeleteListener.
[in] | userID | The ID of the user to be removed from the friend list. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Removes the variable value under a specified name.
If the variable doesn't exist method call has no effect.
This call in asynchronous. Responses come to the IRichPresenceChangeListener.
[in] | key | The name of the variable to be removed. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Finds a specified user.
This call is asynchronous. Responses come to the IUserFindListener.
Searches for the user given either a username or an email address. Only exact match will be returned.
[in] | userSpecifier | The specifier of the user. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Returns the default avatar criteria.
|
pure virtual |
Returns the ID of the avatar of a specified user.
[in] | userID | The ID of the user. |
[in] | avatarType | The type of avatar. |
|
pure virtual |
Copies the avatar of a specified user.
[in] | userID | The ID of the user. |
[in] | avatarType | The type of avatar. |
[in,out] | buffer | The output buffer. |
[in] | bufferLength | The size of the output buffer. |
|
pure virtual |
Returns the URL of the avatar of a specified user.
[in] | userID | The ID of the user. |
[in] | avatarType | The type of avatar. |
|
pure virtual |
Copies URL of the avatar of a specified user.
[in] | userID | The ID of the user. |
[in] | avatarType | The type of avatar. |
[in,out] | buffer | The output buffer. |
[in] | bufferLength | The size of the output buffer. |
|
pure virtual |
Returns the GalaxyID for a friend.
[in] | index | Index as an integer in the range of [0, number of friends). |
|
pure virtual |
Returns the number of retrieved friends in the user's list of friends.
|
pure virtual |
Reads the details of the friend invitation.
[in] | index | Index as an integer in the range of [0, number of friend invitations). |
[out] | userID | The ID of the user who sent the invitation. |
[out] | sendTime | The time at which the friend invitation was sent. |
|
pure virtual |
Returns the number of retrieved friend invitations.
|
pure virtual |
Returns the nickname of a specified user.
[in] | userID | The ID of the user. |
|
pure virtual |
Copies the nickname of a specified user.
[in] | userID | The ID of the user. |
[in,out] | buffer | The output buffer. |
[in] | bufferLength | The size of the output buffer. |
|
pure virtual |
Returns the state of a specified user.
[in] | userID | The ID of the user. |
|
pure virtual |
Returns the user's nickname.
|
pure virtual |
Copies the user's nickname to a buffer.
[in,out] | buffer | The output buffer. |
[in] | bufferLength | The size of the output buffer. |
|
pure virtual |
Returns the user's state.
Returns the rich presence of a specified user.
[in] | userID | The ID of the user. |
[in] | key | The name of the property of the user's rich presence. |
|
pure virtual |
Returns a property from the rich presence storage by index.
[in] | index | Index as an integer in the range of [0, number of entries). |
[in,out] | key | The name of the property of the rich presence storage. |
[in] | keyLength | The length of the name of the property of the rich presence storage. |
[in,out] | value | The value of the property of the rich presence storage. |
[in] | valueLength | The length of the value of the property of the rich presence storage. |
[in] | userID | The ID of the user. |
|
pure virtual |
Copies the rich presence of a specified user to a buffer.
[in] | key | The name of the property of the user's rich presence. |
[in,out] | buffer | The output buffer. |
[in] | bufferLength | The size of the output buffer. |
[in] | userID | The ID of the user. |
Returns the number of retrieved properties in user's rich presence.
[in] | userID | The ID of the user. |
|
pure virtual |
Returns a key from the rich presence storage by index.
[in] | index | Index as an integer in the range of [0, number of entries). |
[in] | userID | The ID of the user. |
|
pure virtual |
Copies a key from the rich presence storage by index to a buffer.
[in] | index | Index as an integer in the range of [0, number of entries). |
[in,out] | buffer | The output buffer. |
[in] | bufferLength | The size of the output buffer. |
[in] | userID | The ID of the user. |
|
pure virtual |
Checks if a specified user is a friend.
[in] | userID | The ID of the user. |
|
pure virtual |
Checks if a specified avatar image is available.
[in] | userID | The ID of the user. |
[in] | avatarType | The type of avatar. |
|
pure virtual |
Checks if the information of specified user is available.
The information can be retrieved by calling RequestUserInformation().
[in] | userID | The ID of the user. |
|
pure virtual |
Checks if a specified user is playing the same game.
[in] | userID | The ID of the user. |
|
pure virtual |
Performs a request for the user's list of incoming friend invitations.
This call is asynchronous. Responses come to the IFriendInvitationListRetrieveListener.
[in] | listener | The listener for specific operation. |
|
pure virtual |
Performs a request for the user's list of friends.
This call is asynchronous. Responses come to the IFriendListListener.
[in] | listener | The listener for specific operation. |
|
pure virtual |
Performs a request for the user's rich presence.
This call is asynchronous. Responses come both to the IRichPresenceListener and IRichPresenceRetrieveListener.
[in] | userID | The ID of the user. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Performs a request for the user's list of outgoing friend invitations.
This call is asynchronous. Responses come to the ISentFriendInvitationListRetrieveListener.
[in] | listener | The listener for specific operation. |
|
pure virtual |
Performs a request for information about specified user.
This call is asynchronous. Responses come both to the IPersonaDataChangedListener and to the IUserInformationRetrieveListener.
[in] | userID | The ID of the user. |
[in] | avatarCriteria | The bit sum of the AvatarType. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Responds to the friend invitation.
This call is asynchronous. Responses come to the IFriendInvitationRespondToListener.
[in] | userID | The ID of the user who sent the friend invitation. |
[in] | accept | True when accepting the invitation, false when declining. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Sends a friend invitation.
This call is asynchronous. Responses come to the IFriendInvitationSendListener.
[in] | userID | The ID of the user. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Sends a game invitation without using the overlay.
This call is asynchronous. Responses come to the ISendInvitationListener.
If invited user accepts the invitation, the connection string gets added to the command-line parameters for launching the game. If the game is already running, the connection string comes to the IGameInvitationReceivedListener, or to the IGameJoinRequestedListener if accepted by the user on the overlay.
[in] | userID | The ID of the user. |
[in] | connectionString | The string which contains connection info with the limit of 4095 bytes. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Sets the default avatar criteria.
[in] | defaultAvatarCriteria | The bit sum of default AvatarType. |
|
pure virtual |
Sets the variable value under a specified name.
There are three keys that can be used:
User must be signed in through Galaxy.
Passing NULL value removes the entry.
This call in asynchronous. Responses come to the IRichPresenceChangeListener.
[in] | key | The name of the property of the user's rich presence. |
[in] | value | The value of the property to set. |
[in] | listener | The listener for specific operation. |
|
pure virtual |
Shows game invitation dialog that allows to invite users to game.
If invited user accepts the invitation, the connection string gets added to the command-line parameters for launching the game. If the game is already running, the connection string comes to the IGameInvitationReceivedListener, or to the IGameJoinRequestedListener if accepted by the user on the overlay.
[in] | connectionString | The string which contains connection info with the limit of 4095 bytes. |