engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IXmppPresence类 参考abstract

Interface for updating presence for current user and for obtaining updates of roster members 更多...

#include <XmppPresence.h>

Public 成员函数

 DECLARE_MULTICAST_DELEGATE_ThreeParams (FOnXmppPresenceReceived, const TSharedRef< IXmppConnection > &, const FXmppUserJid &, const TSharedRef< FXmppUserPresence > &)
 Delegate callback for when new presence data is received for a given user. 更多...
 
virtual const FXmppUserPresence & GetPresence () const =0
 Get the last cached presence for the current user 更多...
 
virtual void GetRosterMembers (TArray< FXmppUserJid > &OutMembers)=0
 Obtain a list of current roster member id 更多...
 
virtual TArray< TSharedPtr< FXmppUserPresence > > GetRosterPresence (const FString &UserId)=0
 Obtain presence info for a given roster member id 更多...
 
virtual FOnXmppPresenceReceived & OnReceivePresence ()=0
 
virtual bool QueryPresence (const FString &UserId)=0
 Kick off a query for presence data for a given user 更多...
 
virtual bool UpdatePresence (const FXmppUserPresence &Presence)=0
 Send a presence update to Xmpp service for current user logged in with the connection. 更多...
 
virtual ~IXmppPresence ()
 destructor
 

详细描述

Interface for updating presence for current user and for obtaining updates of roster members

成员函数说明

◆ DECLARE_MULTICAST_DELEGATE_ThreeParams()

IXmppPresence::DECLARE_MULTICAST_DELEGATE_ThreeParams ( FOnXmppPresenceReceived  ,
const TSharedRef< IXmppConnection > &  ,
const FXmppUserJid &  ,
const TSharedRef< FXmppUserPresence > &   
)

Delegate callback for when new presence data is received for a given user.

Can also obtain cached data via GetRosterPresence()

参数
Connectionthe xmpp connection this message was received on
UserIdroster member or current user that updated
Presencepresence data that was received

◆ GetPresence()

virtual const FXmppUserPresence & IXmppPresence::GetPresence ( ) const
pure virtual

Get the last cached presence for the current user

返回
Presence status data

◆ GetRosterMembers()

virtual void IXmppPresence::GetRosterMembers ( TArray< FXmppUserJid > &  OutMembers)
pure virtual

Obtain a list of current roster member id

参数
OutMembers[out] members to update

◆ GetRosterPresence()

virtual TArray< TSharedPtr< FXmppUserPresence > > IXmppPresence::GetRosterPresence ( const FString &  UserId)
pure virtual

Obtain presence info for a given roster member id

返回
cached presence or NULL if not found

◆ OnReceivePresence()

virtual FOnXmppPresenceReceived & IXmppPresence::OnReceivePresence ( )
pure virtual
返回
presence received delegate

◆ QueryPresence()

virtual bool IXmppPresence::QueryPresence ( const FString &  UserId)
pure virtual

Kick off a query for presence data for a given user

返回
true if successfully sent

◆ UpdatePresence()

virtual bool IXmppPresence::UpdatePresence ( const FXmppUserPresence &  Presence)
pure virtual

Send a presence update to Xmpp service for current user logged in with the connection.

Also updates cached copy of presence data

参数
Presencestatus data to update
返回
true if successfully sent

该类的文档由以下文件生成: