UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
XmppPrivateChatStrophe.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
#include "
XmppChat.h
"
7
8
#include "
Containers/Ticker.h
"
9
#include "Containers/Queue.h"
10
11
#if WITH_XMPP_STROPHE
12
13
class
FXmppChatMessage
;
14
class
FXmppConnectionStrophe
;
15
class
FStropheStanza
;
16
17
class
FXmppPrivateChatStrophe
18
:
public
IXmppChat
19
,
public
FTSTickerObjectBase
20
{
21
friend
FXmppConnectionStrophe
;
22
23
public
:
24
// FXmppPrivateChatStrophe
25
FXmppPrivateChatStrophe
(
FXmppConnectionStrophe
&
InConnectionManager
);
26
virtual
~FXmppPrivateChatStrophe
();
27
28
// XMPP Thread
29
bool
ReceiveStanza
(
const
FStropheStanza
&
IncomingStanza
);
30
31
// Game Thread
32
void
OnDisconnect
();
33
void
OnReconnect
();
34
35
// IXmppChat
36
virtual
bool
SendChat
(
const
FXmppUserJid
&
RecipientId
,
const
FString& Message)
override
;
37
virtual
FOnXmppChatReceived
&
OnReceiveChat
()
override
{
return
OnChatReceivedDelegate
; }
38
39
// FTSTickerObjectBase
40
virtual
bool
Tick
(
float
DeltaTime)
override
;
41
42
protected
:
43
void
OnChatReceived
(
TUniquePtr<FXmppChatMessage>
&& Chat);
44
46
void
CleanupMessages
();
47
48
protected
:
50
FXmppConnectionStrophe
&
ConnectionManager
;
51
56
TQueue<TUniquePtr<FXmppChatMessage>
>
IncomingChatMessages
;
57
59
FOnXmppChatReceived
OnChatReceivedDelegate
;
60
};
61
62
#endif
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EUpdateClockSource::Tick
@ Tick
Ticker.h
XmppChat.h
FTSTickerObjectBase
Definition
Ticker.h:137
FXmppChatMessage
Definition
XmppChat.h:12
FXmppUserJid
Definition
XmppConnection.h:99
IXmppChat
Definition
XmppChat.h:33
IXmppChat::OnReceiveChat
virtual FOnXmppChatReceived & OnReceiveChat()=0
IXmppChat::SendChat
virtual bool SendChat(const FXmppUserJid &RecipientId, const FString &Message)=0
TQueue
Definition
Queue.h:48
TUniquePtr
Definition
UniquePtr.h:107
Engine
Source
Runtime
Online
XMPP
Private
XmppStrophe
XmppPrivateChatStrophe.h
Generated by
1.9.8