You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902 #ROBOMERGE-BOT: (v613-10869866) [CL 10870584 by ryan durand in Main branch]
29 lines
961 B
C++
29 lines
961 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "IDirectoryWatcher.h"
|
|
|
|
class FDirectoryWatchRequestLinux;
|
|
|
|
class FDirectoryWatcherLinux : public IDirectoryWatcher
|
|
{
|
|
public:
|
|
FDirectoryWatcherLinux();
|
|
virtual ~FDirectoryWatcherLinux();
|
|
|
|
virtual bool RegisterDirectoryChangedCallback_Handle (const FString& Directory, const FDirectoryChanged& InDelegate, FDelegateHandle& OutHandle, uint32 Flags) override;
|
|
virtual bool UnregisterDirectoryChangedCallback_Handle(const FString& Directory, FDelegateHandle InHandle) override;
|
|
virtual void Tick (float DeltaSeconds) override;
|
|
|
|
/** Map of directory paths to requests */
|
|
TMap<FString, FDirectoryWatchRequestLinux*> RequestMap;
|
|
TArray<FDirectoryWatchRequestLinux*> RequestsPendingDelete;
|
|
|
|
/** A count of FDirectoryWatchRequestLinux created to ensure they are cleaned up on shutdown */
|
|
int32 NumRequests;
|
|
};
|
|
|
|
typedef FDirectoryWatcherLinux FDirectoryWatcher;
|