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

Base interface for connecting to Xmpp 更多...

#include <XmppConnection.h>

+ 类 IXmppConnection 继承关系图:

Public 类型

using FOnXmppLogingChanged = FOnXmppLoginChanged
 Alias for old typo, remove in 4.24
 

Public 成员函数

 DECLARE_MULTICAST_DELEGATE_OneParam (FOnXmppStanzaReceived, const IXmppStanza &)
 Delegate called when a message is received (ONLY STROPHE) 更多...
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FOnXmppStanzaSent, const IXmppStanza &)
 Delegate called when a message is sent (ONLY STROPHE) 更多...
 
 DECLARE_MULTICAST_DELEGATE_ThreeParams (FOnXmppLoginComplete, const FXmppUserJid &, bool, const FString &)
 Delegate called when login completes 更多...
 
 DECLARE_MULTICAST_DELEGATE_ThreeParams (FOnXmppLogoutComplete, const FXmppUserJid &, bool, const FString &)
 Delegate called when logout completes 更多...
 
 DECLARE_MULTICAST_DELEGATE_TwoParams (FOnXmppLoginChanged, const FXmppUserJid &, EXmppLoginStatus::Type)
 Delegate called when login completes 更多...
 
virtual void DumpState () const =0
 Debug dump of this connection
 
virtual EXmppLoginStatus::Type GetLoginStatus () const =0
 Obtain currently cached login status 更多...
 
virtual const FXmppServer & GetServer () const =0
 Obtain last server details associated with the connection 更多...
 
virtual const FXmppUserJid & GetUserJid () const =0
 Get the jid of the last user login attempt Note that he may be logged out 更多...
 
virtual void Login (const FString &UserId, const FString &Auth)=0
 Login on the connection. 更多...
 
virtual void Logout ()=0
 Logout on the connection with a user that has previously logged in. 更多...
 
virtual IXmppMessagesPtr Messages ()=0
 
virtual IXmppMultiUserChatPtr MultiUserChat ()=0
 
virtual FOnXmppLoginChanged & OnLoginChanged ()=0
 
virtual FOnXmppLoginComplete & OnLoginComplete ()=0
 
virtual FOnXmppLogoutComplete & OnLogoutComplete ()=0
 
virtual FOnXmppStanzaReceived & OnStanzaReceived ()=0
 
virtual FOnXmppStanzaSent & OnStanzaSent ()=0
 
virtual IXmppPresencePtr Presence ()=0
 
virtual IXmppChatPtr PrivateChat ()=0
 
virtual IXmppPubSubPtr PubSub ()=0
 
virtual void SetServer (const FXmppServer &Server)=0
 Configure the connection with server details 更多...
 
virtual ~IXmppConnection ()
 destructor
 
- Public 成员函数 继承自 TSharedFromThis< IXmppConnection >
TSharedRef< IXmppConnection, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< IXmppConnection const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

额外继承的成员函数

- Protected 成员函数 继承自 TSharedFromThis< IXmppConnection >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 
- 静态 Protected 成员函数 继承自 TSharedFromThis< IXmppConnection >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 

详细描述

Base interface for connecting to Xmpp

成员函数说明

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [1/2]

IXmppConnection::DECLARE_MULTICAST_DELEGATE_OneParam ( FOnXmppStanzaReceived  ,
const IXmppStanza &   
)

Delegate called when a message is received (ONLY STROPHE)

参数
referenceto stanza

◆ DECLARE_MULTICAST_DELEGATE_OneParam() [2/2]

IXmppConnection::DECLARE_MULTICAST_DELEGATE_OneParam ( FOnXmppStanzaSent  ,
const IXmppStanza &   
)

Delegate called when a message is sent (ONLY STROPHE)

参数
referenceto stanza

◆ DECLARE_MULTICAST_DELEGATE_ThreeParams() [1/2]

IXmppConnection::DECLARE_MULTICAST_DELEGATE_ThreeParams ( FOnXmppLoginComplete  ,
const FXmppUserJid &  ,
bool  ,
const FString &   
)

Delegate called when login completes

参数
UserJidjid of user that attempted to login
bWasSuccesstrue if successfully logged in user, false otherwise
Errorstring representing error or empty if success

◆ DECLARE_MULTICAST_DELEGATE_ThreeParams() [2/2]

IXmppConnection::DECLARE_MULTICAST_DELEGATE_ThreeParams ( FOnXmppLogoutComplete  ,
const FXmppUserJid &  ,
bool  ,
const FString &   
)

Delegate called when logout completes

参数
UserJidjid of user that logged out
bWasSuccesstrue if successfully logged out, false otherwise
Errorstring representing error or empty if success

◆ DECLARE_MULTICAST_DELEGATE_TwoParams()

IXmppConnection::DECLARE_MULTICAST_DELEGATE_TwoParams ( FOnXmppLoginChanged  ,
const FXmppUserJid &  ,
EXmppLoginStatus::Type   
)

Delegate called when login completes

参数
UserJidjid of user that changed login state
LoginStatenew login state (see EXmppLoginStatus)

◆ GetLoginStatus()

virtual EXmppLoginStatus::Type IXmppConnection::GetLoginStatus ( ) const
pure virtual

Obtain currently cached login status

返回
EXmppLoginStatus based on logged in and socket connection state

◆ GetServer()

virtual const FXmppServer & IXmppConnection::GetServer ( ) const
pure virtual

Obtain last server details associated with the connection

返回
Server server details

◆ GetUserJid()

virtual const FXmppUserJid & IXmppConnection::GetUserJid ( ) const
pure virtual

Get the jid of the last user login attempt Note that he may be logged out

参数
jidto identity user

◆ Login()

virtual void IXmppConnection::Login ( const FString &  UserId,
const FString &  Auth 
)
pure virtual

Login on the connection.

No socket connection is created until user attempts to login See OnLoginComplete(), OnLoginChanged() delegates for completion

参数
UserIdjust the id portion of the jid (domain is in server config)
Authplain text auth credentials for user

◆ Logout()

virtual void IXmppConnection::Logout ( )
pure virtual

Logout on the connection with a user that has previously logged in.

This will close the socket connection and cleanup. See OnLogoutComplete(), OnLoginChanged() delegates for completion

◆ Messages()

virtual IXmppMessagesPtr IXmppConnection::Messages ( )
pure virtual
返回
Messages interface if available. NULL otherwise

◆ MultiUserChat()

virtual IXmppMultiUserChatPtr IXmppConnection::MultiUserChat ( )
pure virtual
返回
MultiUserChat interface if available. NULL otherwise

◆ OnLoginChanged()

virtual FOnXmppLoginChanged & IXmppConnection::OnLoginChanged ( )
pure virtual
返回
login changed delegate

◆ OnLoginComplete()

virtual FOnXmppLoginComplete & IXmppConnection::OnLoginComplete ( )
pure virtual
返回
login complete delegate

◆ OnLogoutComplete()

virtual FOnXmppLogoutComplete & IXmppConnection::OnLogoutComplete ( )
pure virtual
返回
logout complete delegate

◆ OnStanzaReceived()

virtual FOnXmppStanzaReceived & IXmppConnection::OnStanzaReceived ( )
pure virtual
返回
Stanza received delegate

◆ OnStanzaSent()

virtual FOnXmppStanzaSent & IXmppConnection::OnStanzaSent ( )
pure virtual
返回
Stanza sent delegate

◆ Presence()

virtual IXmppPresencePtr IXmppConnection::Presence ( )
pure virtual
返回
Presence interface if available. NULL otherwise

◆ PrivateChat()

virtual IXmppChatPtr IXmppConnection::PrivateChat ( )
pure virtual
返回
PrivateChat interface if available. NULL otherwise

◆ PubSub()

virtual IXmppPubSubPtr IXmppConnection::PubSub ( )
pure virtual
返回
PubSub interface if available. NULL otherwise

◆ SetServer()

virtual void IXmppConnection::SetServer ( const FXmppServer &  Server)
pure virtual

Configure the connection with server details

参数
Serverserver details

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