You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#UE4 - const FUniqueNetId / FOnlinePartyId changes -------- Integrated using branch Ue4-To-UE4-Fortnite-Simple (reversed) of change#2538253 by Josh.Markiewicz on 2015/05/05 17:39:19. [CL 2540329 by Josh Markiewicz in Main branch]
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
struct FFriendChatMessage;
|
|
class FChatViewModel;
|
|
|
|
class FChatItemViewModel
|
|
: public TSharedFromThis<FChatItemViewModel>
|
|
{
|
|
public:
|
|
virtual ~FChatItemViewModel() {}
|
|
|
|
virtual FText GetMessage() const = 0;
|
|
virtual const EChatMessageType::Type GetMessageType() const =0;
|
|
virtual FText GetMessageTimeText() const = 0;
|
|
virtual FDateTime GetMessageTime() const = 0;
|
|
|
|
virtual void AddMessage(const TSharedRef<FFriendChatMessage>& ChatMessage) = 0;
|
|
|
|
virtual FText GetSenderName() const = 0;
|
|
virtual const TSharedPtr<const FUniqueNetId> GetSenderID() const = 0;
|
|
|
|
virtual FText GetRecipientName() const = 0;
|
|
virtual const TSharedPtr<const FUniqueNetId> GetRecipientID() const = 0;
|
|
|
|
virtual const bool IsFromSelf() const = 0;
|
|
|
|
DECLARE_EVENT_OneParam(FChatItemViewModel, FChangedEvent, const TSharedRef<FChatItemViewModel>&)
|
|
virtual FChangedEvent& OnChanged() = 0;
|
|
};
|
|
|
|
/**
|
|
* Creates the implementation for an ChatItemViewModel.
|
|
*
|
|
* @return the newly created ChatItemViewModel implementation.
|
|
*/
|
|
FACTORY(TSharedRef< FChatItemViewModel >, FChatItemViewModel,
|
|
const TSharedRef<FFriendChatMessage>& FFriendChatMessage); |