You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Parts of PR #242 (with changes). #codereview Josh.Adams [CL 2222405 by Dmitry Rekman in Main branch]
24 lines
832 B
C++
24 lines
832 B
C++
// Copyright 1998-2014 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 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;
|