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

Module for Xmpp connections Use CreateConnection to create a new Xmpp connection 更多...

#include <XmppModule.h>

+ 类 FXmppModule 继承关系图:

Public 成员函数

TSharedRef< class IXmppConnection > CreateConnection (const FString &UserId)
 Creates a new Xmpp connection for the current platform and associated it with the user 更多...
 
 DECLARE_EVENT_TwoParams (FXmppModule, FOnXmppConnectionAcquired, const TSharedRef< IXmppConnection > &, const FString &)
 Delegate callback when a system acquires ownership over an XMPP connection 更多...
 
 DECLARE_EVENT_TwoParams (FXmppModule, FOnXmppConnectionRelinquished, const TSharedRef< IXmppConnection > &, const FString &)
 Delegate callback when a system relinquishes ownership of an XMPP connection 更多...
 
 DECLARE_MULTICAST_DELEGATE_OneParam (FOnXmppConnectionCreated, const TSharedRef< IXmppConnection > &)
 Delegate fired when an Xmpp connection is created. 更多...
 
virtual bool Exec (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) override
 Handle exec commands starting with "XMPP" 更多...
 
TSharedPtr< class IXmppConnection > GetConnection (const FString &UserId) const
 Return an existing Xmpp connection associated with a user 更多...
 
bool HandleXmppCommand (const TCHAR *Cmd, FOutputDevice &Ar)
 Exec command handlers
 
bool IsXmppEnabled () const
 
void ProcessPendingRemovals ()
 Clean up any pending connection removals
 
void RemoveConnection (const FString &UserId)
 Remove an existing Xmpp connection associated with a user 更多...
 
void RemoveConnection (const TSharedRef< class IXmppConnection > &Connection)
 Remove an existing Xmpp connection 更多...
 
virtual bool Tick (float DeltaTime) override
 Pure virtual that must be overloaded by the inheriting class. 更多...
 
- Public 成员函数 继承自 IModuleInterface
virtual bool IsGameModule () const
 Returns true if this module hosts gameplay code 更多...
 
virtual void PostLoadCallback ()
 Called after the module has been reloaded
 
virtual void PreUnloadCallback ()
 Called before the module has been unloaded
 
virtual void ShutdownModule ()
 Called before the module is unloaded, right before the module object is destroyed. 更多...
 
virtual void StartupModule ()
 Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多...
 
virtual bool SupportsAutomaticShutdown ()
 Override this to set whether your module would like cleanup on application shutdown 更多...
 
virtual bool SupportsDynamicReloading ()
 Override this to set whether your module is allowed to be unloaded on the fly 更多...
 
virtual ~IModuleInterface ()
 Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface

 
- Public 成员函数 继承自 FSelfRegisteringExec
 FSelfRegisteringExec ()
 Constructor, registering this instance.
 
virtual ~FSelfRegisteringExec ()
 Destructor, unregistering this instance.
 
- Public 成员函数 继承自 FTickerObjectBase
CORE_API FTickerObjectBase (float InDelay=0.0f, FTicker &Ticker=FTicker::GetCoreTicker())
 Constructor 更多...
 
virtual bool Tick (float DeltaTime)=0
 Pure virtual that must be overloaded by the inheriting class. 更多...
 
virtual CORE_API ~FTickerObjectBase ()
 Virtual destructor.
 

静态 Public 成员函数

static FXmppModule & Get ()
 Singleton-like access to this module's interface. 更多...
 
static bool IsAvailable ()
 Checks to see if this module is loaded and ready. 更多...
 
- 静态 Public 成员函数 继承自 FSelfRegisteringExec
static bool StaticExec (UWorld *Inworld, const TCHAR *Cmd, FOutputDevice &Ar)
 Routes a command to the self-registered execs.
 

详细描述

Module for Xmpp connections Use CreateConnection to create a new Xmpp connection

成员函数说明

◆ CreateConnection()

TSharedRef< class IXmppConnection > FXmppModule::CreateConnection ( const FString &  UserId)

Creates a new Xmpp connection for the current platform and associated it with the user

返回
new Xmpp connection instance

◆ DECLARE_EVENT_TwoParams() [1/2]

FXmppModule::DECLARE_EVENT_TwoParams ( FXmppModule  ,
FOnXmppConnectionAcquired  ,
const TSharedRef< IXmppConnection > &  ,
const FString &   
)

Delegate callback when a system acquires ownership over an XMPP connection

参数
XmppConnectionThe connection that is acquired
SystemNameThe name of the system initiating this request

◆ DECLARE_EVENT_TwoParams() [2/2]

FXmppModule::DECLARE_EVENT_TwoParams ( FXmppModule  ,
FOnXmppConnectionRelinquished  ,
const TSharedRef< IXmppConnection > &  ,
const FString &   
)

Delegate callback when a system relinquishes ownership of an XMPP connection

参数
XmppConnectionThe connection that is relinquished
SystemNameThe name of the system initiating this request

◆ DECLARE_MULTICAST_DELEGATE_OneParam()

FXmppModule::DECLARE_MULTICAST_DELEGATE_OneParam ( FOnXmppConnectionCreated  ,
const TSharedRef< IXmppConnection > &   
)

Delegate fired when an Xmpp connection is created.

参数
NewConnectionReference to newly created Xmpp connection

◆ Exec()

virtual bool FXmppModule::Exec ( UWorld *  InWorld,
const TCHAR *  Cmd,
FOutputDevice &  Ar 
)
overridevirtual

Handle exec commands starting with "XMPP"

参数
InWorldthe world context
Cmdthe exec command being executed
Arthe archive to log results to
返回
true if the handler consumed the input, false to continue searching handlers

◆ Get()

static FXmppModule & FXmppModule::Get ( )
static

Singleton-like access to this module's interface.

This is just for convenience! Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.

返回
Returns singleton instance, loading the module on demand if needed

◆ GetConnection()

TSharedPtr< class IXmppConnection > FXmppModule::GetConnection ( const FString &  UserId) const

Return an existing Xmpp connection associated with a user

返回
new Xmpp connection instance

◆ IsAvailable()

static bool FXmppModule::IsAvailable ( )
static

Checks to see if this module is loaded and ready.

返回
True if the module is loaded and ready to use

◆ IsXmppEnabled()

bool FXmppModule::IsXmppEnabled ( ) const
inline
返回
true if Xmpp requests are globally enabled

◆ RemoveConnection() [1/2]

void FXmppModule::RemoveConnection ( const FString &  UserId)

Remove an existing Xmpp connection associated with a user

参数
UserIduser to find connection for

◆ RemoveConnection() [2/2]

void FXmppModule::RemoveConnection ( const TSharedRef< class IXmppConnection > &  Connection)

Remove an existing Xmpp connection

参数
Connectionreference to find/remove

◆ Tick()

virtual bool FXmppModule::Tick ( float  DeltaTime)
overridevirtual

Pure virtual that must be overloaded by the inheriting class.

参数
DeltaTimetime passed since the last call.
返回
true if should continue ticking

实现了 FTickerObjectBase.


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