![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <XmppModule.h>
Inheritance diagram for FXmppModule:Static Public Member Functions | |
| static XMPP_API FXmppModule & | Get () |
| static XMPP_API bool | IsAvailable () |
Static Public Member Functions inherited from FSelfRegisteringExec | |
| static CORE_API bool | StaticExec (UWorld *Inworld, const TCHAR *Cmd, FOutputDevice &Ar) |
Public Attributes | |
| FOnXmppConnectionAcquired | OnXmppConnectionAcquired |
| FOnXmppConnectionRelinquished | OnXmppConnectionRelinquished |
| FOnXmppConnectionCreated | OnXmppConnectionCreated |
Protected Member Functions | |
| virtual XMPP_API bool | Exec_Runtime (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) override |
Protected Member Functions inherited from FExec | |
| virtual bool | Exec_Dev (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
| virtual bool | Exec_Editor (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
Module for Xmpp connections Use CreateConnection to create a new Xmpp connection
| TSharedRef< IXmppConnection > FXmppModule::CreateConnection | ( | const FString & | UserId | ) |
Creates a new Xmpp connection for the current platform and associated it with the user
| FXmppModule::DECLARE_EVENT_TwoParams | ( | FXmppModule | , |
| FOnXmppConnectionAcquired | , | ||
| const TSharedRef< IXmppConnection > & | , | ||
| const FString & | |||
| ) |
Delegate callback when a system acquires ownership over an XMPP connection
| XmppConnection | The connection that is acquired |
| SystemName | The name of the system initiating this request |
| FXmppModule::DECLARE_EVENT_TwoParams | ( | FXmppModule | , |
| FOnXmppConnectionRelinquished | , | ||
| const TSharedRef< IXmppConnection > & | , | ||
| const FString & | |||
| ) |
Delegate callback when a system relinquishes ownership of an XMPP connection
| XmppConnection | The connection that is relinquished |
| SystemName | The name of the system initiating this request |
| FXmppModule::DECLARE_MULTICAST_DELEGATE_OneParam | ( | FOnXmppConnectionCreated | , |
| const TSharedRef< IXmppConnection > & | |||
| ) |
Delegate fired when an Xmpp connection is created.
| NewConnection | Reference to newly created Xmpp connection |
|
overrideprotectedvirtual |
Handle exec commands starting with "XMPP"
| InWorld | the world context |
| Cmd | the exec command being executed |
| Ar | the archive to log results to |
Reimplemented from FExec.
|
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.
| TSharedPtr< IXmppConnection > FXmppModule::GetConnection | ( | const FString & | UserId | ) | const |
Return an existing Xmpp connection associated with a user
| bool FXmppModule::HandleXmppCommand | ( | const TCHAR * | Cmd, |
| FOutputDevice & | Ar | ||
| ) |
Exec command handlers
|
static |
Checks to see if this module is loaded and ready.
|
inline |
| void FXmppModule::ProcessPendingRemovals | ( | ) |
Clean up any pending connection removals
| void FXmppModule::RemoveConnection | ( | const FString & | UserId | ) |
Remove an existing Xmpp connection associated with a user
| UserId | user to find connection for |
| void FXmppModule::RemoveConnection | ( | const TSharedRef< class IXmppConnection > & | Connection | ) |
Remove an existing Xmpp connection
| Connection | reference to find/remove |
Pure virtual that must be overloaded by the inheriting class.
| DeltaTime | time passed since the last call. |
Implements FTSTickerObjectBase.
| FOnXmppConnectionAcquired FXmppModule::OnXmppConnectionAcquired |
| FOnXmppConnectionCreated FXmppModule::OnXmppConnectionCreated |
| FOnXmppConnectionRelinquished FXmppModule::OnXmppConnectionRelinquished |