Files
UnrealEngineUWP/Engine/Source/Developer/DirectoryWatcher/Private/Linux/DirectoryWatcherLinux.h
Dmitry Rekman 263bbe7e0c Support for modular builds (cross and native).
- Parts of PR #242 (with changes).

#codereview Josh.Adams

[CL 2222405 by Dmitry Rekman in Main branch]
2014-07-17 13:49:42 -04:00

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;