Files
UnrealEngineUWP/Engine/Source/Developer/DirectoryWatcher/Private/Linux/DirectoryWatcherLinux.h
Ben Marsh 1c2f8cc368 Fix DirectoryWatcher on Linux.
#codereview Dmitry.Rekman

[CL 2547187 by Ben Marsh in Main branch]
2015-05-12 10:09:42 -04:00

26 lines
1.1 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
class FDirectoryWatcherLinux : public IDirectoryWatcher
{
public:
FDirectoryWatcherLinux();
virtual ~FDirectoryWatcherLinux();
virtual bool RegisterDirectoryChangedCallback(const FString& Directory, const FDirectoryChanged& InDelegate) override;
virtual bool UnregisterDirectoryChangedCallback(const FString& Directory, const FDirectoryChanged& InDelegate) override;
virtual bool RegisterDirectoryChangedCallback_Handle(const FString& Directory, const FDirectoryChanged& InDelegate, FDelegateHandle& OutHandle, bool bIncludeDirectoryChanges) 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;