You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "IDirectoryWatcher.h"
|
|
#include "Containers/Map.h"
|
|
#include "Containers/Array.h"
|
|
#include "Containers/UnrealString.h"
|
|
#include "Delegates/Delegate.h"
|
|
|
|
class FDirectoryWatchRequestWindows;
|
|
|
|
class FDirectoryWatcherWindows : public IDirectoryWatcher
|
|
{
|
|
public:
|
|
FDirectoryWatcherWindows();
|
|
virtual ~FDirectoryWatcherWindows();
|
|
|
|
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, FDirectoryWatchRequestWindows*> RequestMap;
|
|
TArray<FDirectoryWatchRequestWindows*> RequestsPendingDelete;
|
|
|
|
/** A count of FDirectoryWatchRequestWindows created to ensure they are cleaned up on shutdown */
|
|
int32 NumRequests;
|
|
};
|
|
|
|
typedef FDirectoryWatcherWindows FDirectoryWatcher;
|