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
| 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()
| Connection | the xmpp connection this message was received on |
| UserId | roster member or current user that updated |
| Presence | presence data that was received |
|
pure virtual |
Get the last cached presence for the current user
|
pure virtual |
Obtain a list of current roster member id
| OutMembers | [out] members to update |
|
pure virtual |
Obtain presence info for a given roster member id
|
pure virtual |
|
pure virtual |
Kick off a query for presence data for a given user
|
pure virtual |
Send a presence update to Xmpp service for current user logged in with the connection.
Also updates cached copy of presence data
| Presence | status data to update |