Rise
The Vieneo Province
Loading...
Searching...
No Matches
isteamfriends.h
Go to the documentation of this file.
1//====== Copyright Valve Corporation, All rights reserved. ====================
2//
3// Purpose: interface to both friends list data and general information about users
4//
5//=============================================================================
6
7#ifndef ISTEAMFRIENDS_H
8#define ISTEAMFRIENDS_H
9#ifdef _WIN32
10#pragma once
11#endif
12
13#include "steam_api_common.h"
14
15//-----------------------------------------------------------------------------
16// Purpose: set of relationships to other users
17//-----------------------------------------------------------------------------
19{
21 k_EFriendRelationshipBlocked = 1, // this doesn't get stored; the user has just done an Ignore on an friendship invite
25 k_EFriendRelationshipIgnored = 5, // this is stored; the user has explicit blocked this other user from comments/chat/etc
27 k_EFriendRelationshipSuggested_DEPRECATED = 7, // was used by the original implementation of the facebook linking feature, but now unused.
28
29 // keep this updated
31};
32
33// maximum length of friend group name (not including terminating nul!)
35
36// maximum number of groups a single user is allowed
37const int k_cFriendsGroupLimit = 100;
38
39// friends group identifier type
41
42// invalid friends group identifier constant
44
46
47
48//-----------------------------------------------------------------------------
49// Purpose: list of states a friend can be in
50//-----------------------------------------------------------------------------
52{
53 k_EPersonaStateOffline = 0, // friend is not currently logged on
54 k_EPersonaStateOnline = 1, // friend is logged on
55 k_EPersonaStateBusy = 2, // user is on, but busy
56 k_EPersonaStateAway = 3, // auto-away feature
57 k_EPersonaStateSnooze = 4, // auto-away for a long time
58 k_EPersonaStateLookingToTrade = 5, // Online, trading
59 k_EPersonaStateLookingToPlay = 6, // Online, wanting to play
60 k_EPersonaStateInvisible = 7, // Online, but appears offline to friends. This status is never published to clients.
62};
63
64
65//-----------------------------------------------------------------------------
66// Purpose: flags for enumerating friends list, or quickly checking a the relationship between users
67//-----------------------------------------------------------------------------
69{
73 k_EFriendFlagImmediate = 0x04, // "regular" friend
76 // k_EFriendFlagHasPlayedWith = 0x20, // not currently used
77 // k_EFriendFlagFriendOfFriend = 0x40, // not currently used
82 // k_EFriendFlagSuggested = 0x800, // not used
85};
86
87
88// friend game played information
89#if defined( VALVE_CALLBACK_PACK_SMALL )
90#pragma pack( push, 4 )
91#elif defined( VALVE_CALLBACK_PACK_LARGE )
92#pragma pack( push, 8 )
93#else
94#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
95#endif
104#pragma pack( pop )
105
106// special values for FriendGameInfo_t::m_usQueryPort
107const uint16 k_usFriendGameInfoQueryPort_NotInitialized = 0xFFFF; // We haven't asked the GS for this query port's actual value yet. Was #define QUERY_PORT_NOT_INITIALIZED in older versions of Steamworks SDK.
108const uint16 k_usFriendGameInfoQueryPort_Error = 0xFFFE; // We were unable to get the query port for this server. Was #define QUERY_PORT_ERROR in older versions of Steamworks SDK.
109
110// maximum number of characters in a user's name. Two flavors; one for UTF-8 and one for UTF-16.
111// The UTF-8 version has to be very generous to accomodate characters that get large when encoded
112// in UTF-8.
113enum
114{
117};
118
119// size limit on chat room or member metadata
121
122// size limits on Rich Presence data
126
127// These values are passed as parameters to the store
134
135
136//-----------------------------------------------------------------------------
137// Purpose: Tells Steam where to place the browser window inside the overlay
138//-----------------------------------------------------------------------------
140{
141 k_EActivateGameOverlayToWebPageMode_Default = 0, // Browser will open next to all other windows that the user has open in the overlay.
142 // The window will remain open, even if the user closes then re-opens the overlay.
143
144 k_EActivateGameOverlayToWebPageMode_Modal = 1 // Browser will be opened in a special overlay configuration which hides all other windows
145 // that the user has open in the overlay. When the user closes the overlay, the browser window
146 // will also close. When the user closes the browser window, the overlay will automatically close.
147};
148
149//-----------------------------------------------------------------------------
150// Purpose: See GetProfileItemPropertyString and GetProfileItemPropertyUint
151//-----------------------------------------------------------------------------
175
176//-----------------------------------------------------------------------------
177// Purpose: interface to accessing information about individual users,
178// that can be a friend, in a group, on a game server or in a lobby with the local user
179//-----------------------------------------------------------------------------
181{
182public:
183 // returns the local players name - guaranteed to not be NULL.
184 // this is the same name as on the users community profile page
185 // this is stored in UTF-8 format
186 // like all the other interface functions that return a char *, it's important that this pointer is not saved
187 // off; it will eventually be free'd or re-allocated
188 virtual const char *GetPersonaName() = 0;
189
190 // gets the status of the current user
192
193 // friend iteration
194 // takes a set of k_EFriendFlags, and returns the number of users the client knows about who meet that criteria
195 // then GetFriendByIndex() can then be used to return the id's of each of those users
196 virtual int GetFriendCount( int iFriendFlags ) = 0;
197
198 // returns the steamID of a user
199 // iFriend is a index of range [0, GetFriendCount())
200 // iFriendsFlags must be the same value as used in GetFriendCount()
201 // the returned CSteamID can then be used by all the functions below to access details about the user
202 virtual CSteamID GetFriendByIndex( int iFriend, int iFriendFlags ) = 0;
203
204 // returns a relationship to a user
206
207 // returns the current status of the specified user
208 // this will only be known by the local user if steamIDFriend is in their friends list; on the same game server; in a chat room or lobby; or in a small group with the local user
209 virtual EPersonaState GetFriendPersonaState( CSteamID steamIDFriend ) = 0;
210
211 // returns the name another user - guaranteed to not be NULL.
212 // same rules as GetFriendPersonaState() apply as to whether or not the user knowns the name of the other user
213 // note that on first joining a lobby, chat room or game server the local user will not known the name of the other users automatically; that information will arrive asyncronously
214 //
215 virtual const char *GetFriendPersonaName( CSteamID steamIDFriend ) = 0;
216
217 // returns true if the friend is actually in a game, and fills in pFriendGameInfo with an extra details
218 virtual bool GetFriendGamePlayed( CSteamID steamIDFriend, STEAM_OUT_STRUCT() FriendGameInfo_t *pFriendGameInfo ) = 0;
219 // accesses old friends names - returns an empty string when their are no more items in the history
220 virtual const char *GetFriendPersonaNameHistory( CSteamID steamIDFriend, int iPersonaName ) = 0;
221 // friends steam level
222 virtual int GetFriendSteamLevel( CSteamID steamIDFriend ) = 0;
223
224 // Returns nickname the current user has set for the specified player. Returns NULL if the no nickname has been set for that player.
225 // DEPRECATED: GetPersonaName follows the Steam nickname preferences, so apps shouldn't need to care about nicknames explicitly.
226 virtual const char *GetPlayerNickname( CSteamID steamIDPlayer ) = 0;
227
228 // friend grouping (tag) apis
229 // returns the number of friends groups
230 virtual int GetFriendsGroupCount() = 0;
231 // returns the friends group ID for the given index (invalid indices return k_FriendsGroupID_Invalid)
233 // returns the name for the given friends group (NULL in the case of invalid friends group IDs)
234 virtual const char *GetFriendsGroupName( FriendsGroupID_t friendsGroupID ) = 0;
235 // returns the number of members in a given friends group
236 virtual int GetFriendsGroupMembersCount( FriendsGroupID_t friendsGroupID ) = 0;
237 // gets up to nMembersCount members of the given friends group, if fewer exist than requested those positions' SteamIDs will be invalid
238 virtual void GetFriendsGroupMembersList( FriendsGroupID_t friendsGroupID, STEAM_OUT_ARRAY_CALL(nMembersCount, GetFriendsGroupMembersCount, friendsGroupID ) CSteamID *pOutSteamIDMembers, int nMembersCount ) = 0;
239
240 // returns true if the specified user meets any of the criteria specified in iFriendFlags
241 // iFriendFlags can be the union (binary or, |) of one or more k_EFriendFlags values
242 virtual bool HasFriend( CSteamID steamIDFriend, int iFriendFlags ) = 0;
243
244 // clan (group) iteration and access functions
245 virtual int GetClanCount() = 0;
246 virtual CSteamID GetClanByIndex( int iClan ) = 0;
247 virtual const char *GetClanName( CSteamID steamIDClan ) = 0;
248 virtual const char *GetClanTag( CSteamID steamIDClan ) = 0;
249 // returns the most recent information we have about what's happening in a clan
250 virtual bool GetClanActivityCounts( CSteamID steamIDClan, int *pnOnline, int *pnInGame, int *pnChatting ) = 0;
251
252 // for clans a user is a member of, they will have reasonably up-to-date information, but for others you'll have to download the info to have the latest
254 virtual SteamAPICall_t DownloadClanActivityCounts( STEAM_ARRAY_COUNT(cClansToRequest) CSteamID *psteamIDClans, int cClansToRequest ) = 0;
255
256 // iterators for getting users in a chat room, lobby, game server or clan
257 // note that large clans that cannot be iterated by the local user
258 // note that the current user must be in a lobby to retrieve CSteamIDs of other users in that lobby
259 // steamIDSource can be the steamID of a group, game server, lobby or chat room
260 virtual int GetFriendCountFromSource( CSteamID steamIDSource ) = 0;
261 virtual CSteamID GetFriendFromSourceByIndex( CSteamID steamIDSource, int iFriend ) = 0;
262
263 // returns true if the local user can see that steamIDUser is a member or in steamIDSource
264 virtual bool IsUserInSource( CSteamID steamIDUser, CSteamID steamIDSource ) = 0;
265
266 // User is in a game pressing the talk button (will suppress the microphone for all voice comms from the Steam friends UI)
267 virtual void SetInGameVoiceSpeaking( CSteamID steamIDUser, bool bSpeaking ) = 0;
268
269 // activates the game overlay, with an optional dialog to open
270 // valid options include "Friends", "Community", "Players", "Settings", "OfficialGameGroup", "Stats", "Achievements",
271 // "chatroomgroup/nnnn"
272 virtual void ActivateGameOverlay( const char *pchDialog ) = 0;
273
274 // activates game overlay to a specific place
275 // valid options are
276 // "steamid" - opens the overlay web browser to the specified user or groups profile
277 // "chat" - opens a chat window to the specified user, or joins the group chat
278 // "jointrade" - opens a window to a Steam Trading session that was started with the ISteamEconomy/StartTrade Web API
279 // "stats" - opens the overlay web browser to the specified user's stats
280 // "achievements" - opens the overlay web browser to the specified user's achievements
281 // "friendadd" - opens the overlay in minimal mode prompting the user to add the target user as a friend
282 // "friendremove" - opens the overlay in minimal mode prompting the user to remove the target friend
283 // "friendrequestaccept" - opens the overlay in minimal mode prompting the user to accept an incoming friend invite
284 // "friendrequestignore" - opens the overlay in minimal mode prompting the user to ignore an incoming friend invite
285 virtual void ActivateGameOverlayToUser( const char *pchDialog, CSteamID steamID ) = 0;
286
287 // activates game overlay web browser directly to the specified URL
288 // full address with protocol type is required, e.g. http://www.steamgames.com/
290
291 // activates game overlay to store page for app
292 virtual void ActivateGameOverlayToStore( AppId_t nAppID, EOverlayToStoreFlag eFlag ) = 0;
293
294 // Mark a target user as 'played with'. This is a client-side only feature that requires that the calling user is
295 // in game
296 virtual void SetPlayedWith( CSteamID steamIDUserPlayedWith ) = 0;
297
298 // activates game overlay to open the invite dialog. Invitations will be sent for the provided lobby.
299 virtual void ActivateGameOverlayInviteDialog( CSteamID steamIDLobby ) = 0;
300
301 // gets the small (32x32) avatar of the current user, which is a handle to be used in IClientUtils::GetImageRGBA(), or 0 if none set
302 virtual int GetSmallFriendAvatar( CSteamID steamIDFriend ) = 0;
303
304 // gets the medium (64x64) avatar of the current user, which is a handle to be used in IClientUtils::GetImageRGBA(), or 0 if none set
305 virtual int GetMediumFriendAvatar( CSteamID steamIDFriend ) = 0;
306
307 // gets the large (184x184) avatar of the current user, which is a handle to be used in IClientUtils::GetImageRGBA(), or 0 if none set
308 // returns -1 if this image has yet to be loaded, in this case wait for a AvatarImageLoaded_t callback and then call this again
309 virtual int GetLargeFriendAvatar( CSteamID steamIDFriend ) = 0;
310
311 // requests information about a user - persona name & avatar
312 // if bRequireNameOnly is set, then the avatar of a user isn't downloaded
313 // - it's a lot slower to download avatars and churns the local cache, so if you don't need avatars, don't request them
314 // if returns true, it means that data is being requested, and a PersonaStateChange_t callback will be posted when it's retrieved
315 // if returns false, it means that we already have all the details about that user, and functions can be called immediately
316 virtual bool RequestUserInformation( CSteamID steamIDUser, bool bRequireNameOnly ) = 0;
317
318 // requests information about a clan officer list
319 // when complete, data is returned in ClanOfficerListResponse_t call result
320 // this makes available the calls below
321 // you can only ask about clans that a user is a member of
322 // note that this won't download avatars automatically; if you get an officer,
323 // and no avatar image is available, call RequestUserInformation( steamID, false ) to download the avatar
326
327 // iteration of clan officers - can only be done when a RequestClanOfficerList() call has completed
328
329 // returns the steamID of the clan owner
330 virtual CSteamID GetClanOwner( CSteamID steamIDClan ) = 0;
331 // returns the number of officers in a clan (including the owner)
332 virtual int GetClanOfficerCount( CSteamID steamIDClan ) = 0;
333 // returns the steamID of a clan officer, by index, of range [0,GetClanOfficerCount)
334 virtual CSteamID GetClanOfficerByIndex( CSteamID steamIDClan, int iOfficer ) = 0;
335
336 // Rich Presence data is automatically shared between friends who are in the same game
337 // Each user has a set of Key/Value pairs
338 // Note the following limits: k_cchMaxRichPresenceKeys, k_cchMaxRichPresenceKeyLength, k_cchMaxRichPresenceValueLength
339 // There are five magic keys:
340 // "status" - a UTF-8 string that will show up in the 'view game info' dialog in the Steam friends list
341 // "connect" - a UTF-8 string that contains the command-line for how a friend can connect to a game
342 // "steam_display" - Names a rich presence localization token that will be displayed in the viewing user's selected language
343 // in the Steam client UI. For more info: https://partner.steamgames.com/doc/api/ISteamFriends#richpresencelocalization
344 // "steam_player_group" - When set, indicates to the Steam client that the player is a member of a particular group. Players in the same group
345 // may be organized together in various places in the Steam UI.
346 // "steam_player_group_size" - When set, indicates the total number of players in the steam_player_group. The Steam client may use this number to
347 // display additional information about a group when all of the members are not part of a user's friends list.
348 // GetFriendRichPresence() returns an empty string "" if no value is set
349 // SetRichPresence() to a NULL or an empty string deletes the key
350 // You can iterate the current set of keys for a friend with GetFriendRichPresenceKeyCount()
351 // and GetFriendRichPresenceKeyByIndex() (typically only used for debugging)
352 virtual bool SetRichPresence( const char *pchKey, const char *pchValue ) = 0;
353 virtual void ClearRichPresence() = 0;
354 virtual const char *GetFriendRichPresence( CSteamID steamIDFriend, const char *pchKey ) = 0;
355 virtual int GetFriendRichPresenceKeyCount( CSteamID steamIDFriend ) = 0;
356 virtual const char *GetFriendRichPresenceKeyByIndex( CSteamID steamIDFriend, int iKey ) = 0;
357 // Requests rich presence for a specific user.
358 virtual void RequestFriendRichPresence( CSteamID steamIDFriend ) = 0;
359
360 // Rich invite support.
361 // If the target accepts the invite, a GameRichPresenceJoinRequested_t callback is posted containing the connect string.
362 // (Or you can configure your game so that it is passed on the command line instead. This is a deprecated path; ask us if you really need this.)
363 virtual bool InviteUserToGame( CSteamID steamIDFriend, const char *pchConnectString ) = 0;
364
365 // recently-played-with friends iteration
366 // this iterates the entire list of users recently played with, across games
367 // GetFriendCoplayTime() returns as a unix time
368 virtual int GetCoplayFriendCount() = 0;
369 virtual CSteamID GetCoplayFriend( int iCoplayFriend ) = 0;
370 virtual int GetFriendCoplayTime( CSteamID steamIDFriend ) = 0;
371 virtual AppId_t GetFriendCoplayGame( CSteamID steamIDFriend ) = 0;
372
373 // chat interface for games
374 // this allows in-game access to group (clan) chats from in the game
375 // the behavior is somewhat sophisticated, because the user may or may not be already in the group chat from outside the game or in the overlay
376 // use ActivateGameOverlayToUser( "chat", steamIDClan ) to open the in-game overlay version of the chat
378 virtual SteamAPICall_t JoinClanChatRoom( CSteamID steamIDClan ) = 0;
379 virtual bool LeaveClanChatRoom( CSteamID steamIDClan ) = 0;
380 virtual int GetClanChatMemberCount( CSteamID steamIDClan ) = 0;
381 virtual CSteamID GetChatMemberByIndex( CSteamID steamIDClan, int iUser ) = 0;
382 virtual bool SendClanChatMessage( CSteamID steamIDClanChat, const char *pchText ) = 0;
383 virtual int GetClanChatMessage( CSteamID steamIDClanChat, int iMessage, void *prgchText, int cchTextMax, EChatEntryType *peChatEntryType, STEAM_OUT_STRUCT() CSteamID *psteamidChatter ) = 0;
384 virtual bool IsClanChatAdmin( CSteamID steamIDClanChat, CSteamID steamIDUser ) = 0;
385
386 // interact with the Steam (game overlay / desktop)
387 virtual bool IsClanChatWindowOpenInSteam( CSteamID steamIDClanChat ) = 0;
388 virtual bool OpenClanChatWindowInSteam( CSteamID steamIDClanChat ) = 0;
389 virtual bool CloseClanChatWindowInSteam( CSteamID steamIDClanChat ) = 0;
390
391 // peer-to-peer chat interception
392 // this is so you can show P2P chats inline in the game
393 virtual bool SetListenForFriendsMessages( bool bInterceptEnabled ) = 0;
394 virtual bool ReplyToFriendMessage( CSteamID steamIDFriend, const char *pchMsgToSend ) = 0;
395 virtual int GetFriendMessage( CSteamID steamIDFriend, int iMessageID, void *pvData, int cubData, EChatEntryType *peChatEntryType ) = 0;
396
397 // following apis
401 virtual SteamAPICall_t IsFollowing( CSteamID steamID ) = 0;
403 virtual SteamAPICall_t EnumerateFollowingList( uint32 unStartIndex ) = 0;
404
405 virtual bool IsClanPublic( CSteamID steamIDClan ) = 0;
406 virtual bool IsClanOfficialGameGroup( CSteamID steamIDClan ) = 0;
407
415
416 // activates game overlay to open the remote play together invite dialog. Invitations will be sent for remote play together
418
419 // Call this before calling ActivateGameOverlayToWebPage() to have the Steam Overlay Browser block navigations
420 // to your specified protocol (scheme) uris and instead dispatch a OverlayBrowserProtocolNavigation_t callback to your game.
421 // ActivateGameOverlayToWebPage() must have been called with k_EActivateGameOverlayToWebPageMode_Modal
422 virtual bool RegisterProtocolInOverlayBrowser( const char *pchProtocol ) = 0;
423
424 // Activates the game overlay to open an invite dialog that will send the provided Rich Presence connect string to selected friends
425 virtual void ActivateGameOverlayInviteDialogConnectString( const char *pchConnectString ) = 0;
426
427 // Steam Community items equipped by a user on their profile
428 // You can register for EquippedProfileItemsChanged_t to know when a friend has changed their equipped profile items
431 virtual bool BHasEquippedProfileItem( CSteamID steamID, ECommunityProfileItemType itemType ) = 0;
434};
435
436#define STEAMFRIENDS_INTERFACE_VERSION "SteamFriends018"
437
438// Global interface accessor
441
442// callbacks
443#if defined( VALVE_CALLBACK_PACK_SMALL )
444#pragma pack( push, 4 )
445#elif defined( VALVE_CALLBACK_PACK_LARGE )
446#pragma pack( push, 8 )
447#else
448#error steam_api_common.h should define VALVE_CALLBACK_PACK_xxx
449#endif
450
451//-----------------------------------------------------------------------------
452// Purpose: called when a friends' status changes
453//-----------------------------------------------------------------------------
455{
457
458 uint64 m_ulSteamID; // steamID of the friend who changed
459 int m_nChangeFlags; // what's changed
460};
461
462
463// used in PersonaStateChange_t::m_nChangeFlags to describe what's changed about a user
464// these flags describe what the client has learned has changed recently, so on startup you'll see a name, avatar & relationship change for every friend
483
484
485//-----------------------------------------------------------------------------
486// Purpose: posted when game overlay activates or deactivates
487// the game can use this to be pause or resume single player games
488//-----------------------------------------------------------------------------
490{
492 uint8 m_bActive; // true if it's just been activated, false otherwise
493 bool m_bUserInitiated; // true if the user asked for the overlay to be activated/deactivated
494 AppId_t m_nAppID; // the appID of the game (should always be the current game)
495 uint32 m_dwOverlayPID; // used internally
496};
497
498
499//-----------------------------------------------------------------------------
500// Purpose: called when the user tries to join a different game server from their friends list
501// game client should attempt to connect to specified server when this is received
502//-----------------------------------------------------------------------------
504{
506 char m_rgchServer[64]; // server address ("127.0.0.1:27015", "tf2.valvesoftware.com")
507 char m_rgchPassword[64]; // server password, if any
508};
509
510
511//-----------------------------------------------------------------------------
512// Purpose: called when the user tries to join a lobby from their friends list
513// game client should attempt to connect to specified lobby when this is received
514//-----------------------------------------------------------------------------
516{
519
520 // The friend they did the join via (will be invalid if not directly via a friend)
522};
523
524
525//-----------------------------------------------------------------------------
526// Purpose: called when an avatar is loaded in from a previous GetLargeFriendAvatar() call
527// if the image wasn't already available
528//-----------------------------------------------------------------------------
530{
532 CSteamID m_steamID; // steamid the avatar has been loaded for
533 int m_iImage; // the image index of the now loaded image
534 int m_iWide; // width of the loaded image
535 int m_iTall; // height of the loaded image
536};
537
538
539//-----------------------------------------------------------------------------
540// Purpose: marks the return of a request officer list call
541//-----------------------------------------------------------------------------
549
550
551//-----------------------------------------------------------------------------
552// Purpose: callback indicating updated data about friends rich presence information
553//-----------------------------------------------------------------------------
555{
557 CSteamID m_steamIDFriend; // friend who's rich presence has changed
558 AppId_t m_nAppID; // the appID of the game (should always be the current game)
559};
560
561
562//-----------------------------------------------------------------------------
563// Purpose: called when the user tries to join a game from their friends list
564// rich presence will have been set with the "connect" key which is set here
565//-----------------------------------------------------------------------------
567{
569 CSteamID m_steamIDFriend; // the friend they did the join via (will be invalid if not directly via a friend)
571};
572
573
574//-----------------------------------------------------------------------------
575// Purpose: a chat message has been received for a clan chat the game has joined
576//-----------------------------------------------------------------------------
584
585
586//-----------------------------------------------------------------------------
587// Purpose: a user has joined a clan chat
588//-----------------------------------------------------------------------------
595
596
597//-----------------------------------------------------------------------------
598// Purpose: a user has left the chat we're in
599//-----------------------------------------------------------------------------
601{
605 bool m_bKicked; // true if admin kicked
606 bool m_bDropped; // true if Steam connection dropped
607};
608
609
610//-----------------------------------------------------------------------------
611// Purpose: a DownloadClanActivityCounts() call has finished
612//-----------------------------------------------------------------------------
618
619
620//-----------------------------------------------------------------------------
621// Purpose: a JoinClanChatRoom() call has finished
622//-----------------------------------------------------------------------------
629
630//-----------------------------------------------------------------------------
631// Purpose: a chat message has been received from a user
632//-----------------------------------------------------------------------------
639
640
648
649
657
658
667
668
669//-----------------------------------------------------------------------------
670// Purpose: Invoked when the status of unread messages changes
671//-----------------------------------------------------------------------------
676
677
678//-----------------------------------------------------------------------------
679// Purpose: Dispatched when an overlay browser instance is navigated to a protocol/scheme registered by RegisterProtocolInOverlayBrowser()
680//-----------------------------------------------------------------------------
686
687//-----------------------------------------------------------------------------
688// Purpose: A user's equipped profile items have changed
689//-----------------------------------------------------------------------------
695
696//-----------------------------------------------------------------------------
697// Purpose:
698//-----------------------------------------------------------------------------
711
712#pragma pack( pop )
713
714#endif // ISTEAMFRIENDS_H
virtual int GetNumChatsWithUnreadPriorityMessages()=0
virtual const char * GetClanName(CSteamID steamIDClan)=0
virtual bool SetRichPresence(const char *pchKey, const char *pchValue)=0
virtual EPersonaState GetPersonaState()=0
virtual bool IsClanOfficialGameGroup(CSteamID steamIDClan)=0
virtual CSteamID GetFriendFromSourceByIndex(CSteamID steamIDSource, int iFriend)=0
virtual void ActivateGameOverlayToStore(AppId_t nAppID, EOverlayToStoreFlag eFlag)=0
virtual AppId_t GetFriendCoplayGame(CSteamID steamIDFriend)=0
virtual int GetMediumFriendAvatar(CSteamID steamIDFriend)=0
virtual void RequestFriendRichPresence(CSteamID steamIDFriend)=0
virtual FriendsGroupID_t GetFriendsGroupIDByIndex(int iFG)=0
virtual SteamAPICall_t JoinClanChatRoom(CSteamID steamIDClan)=0
virtual SteamAPICall_t RequestEquippedProfileItems(CSteamID steamID)=0
virtual bool RegisterProtocolInOverlayBrowser(const char *pchProtocol)=0
virtual int GetClanChatMemberCount(CSteamID steamIDClan)=0
virtual EFriendRelationship GetFriendRelationship(CSteamID steamIDFriend)=0
virtual void ActivateGameOverlayRemotePlayTogetherInviteDialog(CSteamID steamIDLobby)=0
virtual void ActivateGameOverlayToWebPage(const char *pchURL, EActivateGameOverlayToWebPageMode eMode=k_EActivateGameOverlayToWebPageMode_Default)=0
virtual bool ReplyToFriendMessage(CSteamID steamIDFriend, const char *pchMsgToSend)=0
virtual void ClearRichPresence()=0
virtual const char * GetClanTag(CSteamID steamIDClan)=0
virtual const char * GetProfileItemPropertyString(CSteamID steamID, ECommunityProfileItemType itemType, ECommunityProfileItemProperty prop)=0
virtual void ActivateGameOverlayInviteDialogConnectString(const char *pchConnectString)=0
virtual EPersonaState GetFriendPersonaState(CSteamID steamIDFriend)=0
virtual int GetFriendRichPresenceKeyCount(CSteamID steamIDFriend)=0
virtual bool HasFriend(CSteamID steamIDFriend, int iFriendFlags)=0
virtual bool IsClanChatAdmin(CSteamID steamIDClanChat, CSteamID steamIDUser)=0
virtual int GetLargeFriendAvatar(CSteamID steamIDFriend)=0
virtual int GetClanChatMessage(CSteamID steamIDClanChat, int iMessage, void *prgchText, int cchTextMax, EChatEntryType *peChatEntryType, STEAM_OUT_STRUCT() CSteamID *psteamidChatter)=0
virtual int GetFriendsGroupCount()=0
virtual int GetFriendsGroupMembersCount(FriendsGroupID_t friendsGroupID)=0
virtual void ActivateGameOverlay(const char *pchDialog)=0
virtual SteamAPICall_t EnumerateFollowingList(uint32 unStartIndex)=0
virtual bool RequestUserInformation(CSteamID steamIDUser, bool bRequireNameOnly)=0
virtual bool IsClanChatWindowOpenInSteam(CSteamID steamIDClanChat)=0
virtual bool BHasEquippedProfileItem(CSteamID steamID, ECommunityProfileItemType itemType)=0
virtual CSteamID GetClanOfficerByIndex(CSteamID steamIDClan, int iOfficer)=0
virtual SteamAPICall_t DownloadClanActivityCounts(STEAM_ARRAY_COUNT(cClansToRequest) CSteamID *psteamIDClans, int cClansToRequest)=0
virtual CSteamID GetClanByIndex(int iClan)=0
virtual const char * GetPersonaName()=0
virtual int GetClanOfficerCount(CSteamID steamIDClan)=0
virtual int GetCoplayFriendCount()=0
virtual uint32 GetProfileItemPropertyUint(CSteamID steamID, ECommunityProfileItemType itemType, ECommunityProfileItemProperty prop)=0
virtual const char * GetFriendRichPresence(CSteamID steamIDFriend, const char *pchKey)=0
virtual CSteamID GetChatMemberByIndex(CSteamID steamIDClan, int iUser)=0
virtual SteamAPICall_t RequestClanOfficerList(CSteamID steamIDClan)=0
virtual CSteamID GetCoplayFriend(int iCoplayFriend)=0
virtual int GetFriendCoplayTime(CSteamID steamIDFriend)=0
virtual bool GetFriendGamePlayed(CSteamID steamIDFriend, STEAM_OUT_STRUCT() FriendGameInfo_t *pFriendGameInfo)=0
virtual int GetFriendSteamLevel(CSteamID steamIDFriend)=0
virtual void SetPlayedWith(CSteamID steamIDUserPlayedWith)=0
virtual bool GetClanActivityCounts(CSteamID steamIDClan, int *pnOnline, int *pnInGame, int *pnChatting)=0
virtual SteamAPICall_t GetFollowerCount(CSteamID steamID)=0
virtual CSteamID GetClanOwner(CSteamID steamIDClan)=0
virtual bool IsClanPublic(CSteamID steamIDClan)=0
virtual CSteamID GetFriendByIndex(int iFriend, int iFriendFlags)=0
virtual int GetFriendCount(int iFriendFlags)=0
virtual void ActivateGameOverlayToUser(const char *pchDialog, CSteamID steamID)=0
virtual bool LeaveClanChatRoom(CSteamID steamIDClan)=0
virtual bool IsUserInSource(CSteamID steamIDUser, CSteamID steamIDSource)=0
virtual bool OpenClanChatWindowInSteam(CSteamID steamIDClanChat)=0
virtual bool SendClanChatMessage(CSteamID steamIDClanChat, const char *pchText)=0
virtual void SetInGameVoiceSpeaking(CSteamID steamIDUser, bool bSpeaking)=0
virtual void ActivateGameOverlayInviteDialog(CSteamID steamIDLobby)=0
virtual const char * GetFriendPersonaNameHistory(CSteamID steamIDFriend, int iPersonaName)=0
virtual int GetClanCount()=0
virtual int GetFriendMessage(CSteamID steamIDFriend, int iMessageID, void *pvData, int cubData, EChatEntryType *peChatEntryType)=0
virtual const char * GetFriendsGroupName(FriendsGroupID_t friendsGroupID)=0
virtual const char * GetFriendPersonaName(CSteamID steamIDFriend)=0
virtual const char * GetPlayerNickname(CSteamID steamIDPlayer)=0
virtual SteamAPICall_t IsFollowing(CSteamID steamID)=0
virtual void GetFriendsGroupMembersList(FriendsGroupID_t friendsGroupID, STEAM_OUT_ARRAY_CALL(nMembersCount, GetFriendsGroupMembersCount, friendsGroupID) CSteamID *pOutSteamIDMembers, int nMembersCount)=0
virtual bool SetListenForFriendsMessages(bool bInterceptEnabled)=0
virtual bool InviteUserToGame(CSteamID steamIDFriend, const char *pchConnectString)=0
virtual const char * GetFriendRichPresenceKeyByIndex(CSteamID steamIDFriend, int iKey)=0
virtual int GetSmallFriendAvatar(CSteamID steamIDFriend)=0
virtual int GetFriendCountFromSource(CSteamID steamIDSource)=0
virtual bool CloseClanChatWindowInSteam(CSteamID steamIDClanChat)=0
int16 FriendsGroupID_t
@ k_cchMaxRichPresenceValueLength
const uint32 k_cubChatMetadataMax
@ k_cwchPersonaNameMax
@ k_cchPersonaNameMax
EFriendRelationship
@ k_EFriendRelationshipNone
@ k_EFriendRelationshipFriend
@ k_EFriendRelationshipBlocked
@ k_EFriendRelationshipSuggested_DEPRECATED
@ k_EFriendRelationshipIgnoredFriend
@ k_EFriendRelationshipRequestInitiator
@ k_EFriendRelationshipMax
@ k_EFriendRelationshipIgnored
@ k_EFriendRelationshipRequestRecipient
const uint16 k_usFriendGameInfoQueryPort_Error
ISteamFriends * SteamFriends()
EActivateGameOverlayToWebPageMode
@ k_EActivateGameOverlayToWebPageMode_Modal
@ k_EActivateGameOverlayToWebPageMode_Default
EPersonaChange
@ k_EPersonaChangeRelationshipChanged
@ k_EPersonaChangeGameServer
@ k_EPersonaChangeStatus
@ k_EPersonaChangeBroadcast
@ k_EPersonaChangeGoneOffline
@ k_EPersonaChangeNickname
@ k_EPersonaChangeRichPresence
@ k_EPersonaChangeComeOnline
@ k_EPersonaChangeLeftSource
@ k_EPersonaChangeNameFirstSet
@ k_EPersonaChangeAvatar
@ k_EPersonaChangeSteamLevel
@ k_EPersonaChangeGamePlayed
@ k_EPersonaChangeName
@ k_EPersonaChangeJoinedSource
ECommunityProfileItemType
@ k_ECommunityProfileItemType_AnimatedAvatar
@ k_ECommunityProfileItemType_AvatarFrame
@ k_ECommunityProfileItemType_MiniProfileBackground
@ k_ECommunityProfileItemType_ProfileModifier
@ k_ECommunityProfileItemType_ProfileBackground
@ k_cchMaxRichPresenceKeyLength
const int k_cchMaxFriendsGroupName
EFriendFlags
@ k_EFriendFlagRequestingFriendship
@ k_EFriendFlagFriendshipRequested
@ k_EFriendFlagRequestingInfo
@ k_EFriendFlagAll
@ k_EFriendFlagImmediate
@ k_EFriendFlagClanMember
@ k_EFriendFlagNone
@ k_EFriendFlagIgnored
@ k_EFriendFlagChatMember
@ k_EFriendFlagBlocked
@ k_EFriendFlagOnGameServer
@ k_EFriendFlagIgnoredFriend
#define STEAMFRIENDS_INTERFACE_VERSION
const FriendsGroupID_t k_FriendsGroupID_Invalid
EOverlayToStoreFlag
@ k_EOverlayToStoreFlag_AddToCart
@ k_EOverlayToStoreFlag_None
@ k_EOverlayToStoreFlag_AddToCartAndShow
const int k_cEnumerateFollowersMax
ECommunityProfileItemProperty
@ k_ECommunityProfileItemProperty_MovieWebM
@ k_ECommunityProfileItemProperty_InternalName
@ k_ECommunityProfileItemProperty_AppID
@ k_ECommunityProfileItemProperty_Title
@ k_ECommunityProfileItemProperty_MovieMP4Small
@ k_ECommunityProfileItemProperty_MovieWebMSmall
@ k_ECommunityProfileItemProperty_MovieMP4
@ k_ECommunityProfileItemProperty_TypeID
@ k_ECommunityProfileItemProperty_ImageSmall
@ k_ECommunityProfileItemProperty_Description
@ k_ECommunityProfileItemProperty_ImageLarge
@ k_ECommunityProfileItemProperty_Class
@ k_cchMaxRichPresenceKeys
const int k_cFriendsGroupLimit
const uint16 k_usFriendGameInfoQueryPort_NotInitialized
EPersonaState
@ k_EPersonaStateLookingToPlay
@ k_EPersonaStateOffline
@ k_EPersonaStateInvisible
@ k_EPersonaStateSnooze
@ k_EPersonaStateBusy
@ k_EPersonaStateOnline
@ k_EPersonaStateLookingToTrade
@ k_EPersonaStateAway
@ k_EPersonaStateMax
const char *typedef uint32(S_CALLTYPE *SteamAPI_CheckCallbackRegistered_t)(int iCallbackNum)
#define STEAM_DEFINE_USER_INTERFACE_ACCESSOR(type, name, version)
#define STEAM_ARRAY_COUNT(COUNTER)
#define STEAM_CALL_RESULT(RESULT_TYPE)
#define STEAM_OUT_ARRAY_CALL(COUNTER, FUNCTION, PARAMS)
@ k_iSteamFriendsCallbacks
#define STEAM_OUT_STRUCT()
EChatRoomEnterResponse
EChatEntryType
uint32 AppId_t
Definition steamtypes.h:81
unsigned short uint16
Definition steamtypes.h:56
unsigned long long uint64
Definition steamtypes.h:60
short int16
Definition steamtypes.h:55
int int32
Definition steamtypes.h:57
uint64 SteamAPICall_t
Definition steamtypes.h:93
unsigned char uint8
Definition steamtypes.h:11
CSteamID m_steamIDLobby
CSteamID m_rgSteamID[k_cEnumerateFollowersMax]
char m_rgchConnect[k_cchMaxRichPresenceValueLength]
EChatRoomEnterResponse m_eChatRoomEnterResponse