Files
BeatLanguageMapper/Plugins/ZipUtility-ue4/Source/WindowsUtility/Private/WFUFileListLambdaDelegate.cpp
squeaksies 7b6050b843 Mk2Rev1
various bugfixes and such.
also bookmarks, temp song loaderm and undo overhaul with near complete multiplayer, but menu items disabled. i really wish i could split this into multiple commits, but i don't know how to work unreal.
2018-11-07 18:00:46 -08:00

32 lines
886 B
C++

#include "WindowsFileUtilityPrivatePCH.h"
#include "WindowsFileUtilityFunctionLibrary.h"
#include "WFUFileListLambdaDelegate.h"
UWFUFileListLambdaDelegate::UWFUFileListLambdaDelegate()
{
OnDoneCallback = nullptr;
}
void UWFUFileListLambdaDelegate::SetOnDoneCallback(TFunction<void(const TArray<FString>&, const TArray<FString>&)> InOnDoneCallback)
{
OnDoneCallback = InOnDoneCallback;
}
void UWFUFileListLambdaDelegate::OnListFileFound_Implementation(const FString& FileName, int32 ByteCount, const FString& FilePath)
{
}
void UWFUFileListLambdaDelegate::OnListDirectoryFound_Implementation(const FString& DirectoryName, const FString& FilePath)
{
}
void UWFUFileListLambdaDelegate::OnListDone_Implementation(const FString& DirectoryPath, const TArray<FString>& Files, const TArray<FString>& Folders)
{
if (OnDoneCallback != nullptr)
{
OnDoneCallback(Files, Folders);
}
}