You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb none #lockdown Nick.Penwarden #ROBOMERGE-OWNER: ryan.gerleve #ROBOMERGE-AUTHOR: ben.marsh #ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/... #ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking) [CL 4662413 by ben marsh in Dev-Networking branch]
29 lines
971 B
C++
29 lines
971 B
C++
// Copyright 1998-2019 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;
|