Files
UnrealEngine/Engine/Source/Developer/DeviceManager/Private/Widgets/Apps/SDeviceApps.h
2025-05-18 13:04:45 +08:00

52 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreTypes.h"
#include "Containers/Array.h"
#include "Templates/SharedPointer.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
#include "Widgets/Views/SListView.h"
class FDeviceManagerModel;
/**
* Implements the device details widget.
*/
class SDeviceApps
: public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SDeviceApps) { }
SLATE_END_ARGS()
public:
/** Destructor. */
~SDeviceApps();
public:
/**
* Constructs the widget.
*
* @param InArgs The construction arguments.
* @param InModel The view model to use.
*/
void Construct(const FArguments& InArgs, const TSharedRef<FDeviceManagerModel>& InModel);
private:
/** The list of applications deployed to the device. */
TArray<TSharedPtr<FString>> AppList;
/** The application list view. */
TSharedPtr<SListView<TSharedPtr<FString>>> AppListView;
/** Pointer the device manager's view model. */
TSharedPtr<FDeviceManagerModel> Model;
};