42 lines
892 B
C++
42 lines
892 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Cluster/IDisplayClusterClusterEventListener.h"
|
|
#include "Cluster/IDisplayClusterClusterManager.h"
|
|
|
|
|
|
/**
|
|
* Internal handler for the system cluster events
|
|
*/
|
|
class FDisplayClusterClusterEventHandler
|
|
: public IDisplayClusterClusterEventListener
|
|
{
|
|
protected:
|
|
|
|
FDisplayClusterClusterEventHandler();
|
|
|
|
public:
|
|
|
|
/** Singleton access */
|
|
static FDisplayClusterClusterEventHandler& Get()
|
|
{
|
|
static FDisplayClusterClusterEventHandler Instance;
|
|
return Instance;
|
|
}
|
|
|
|
/** Returns JSON event handler delegate */
|
|
FOnClusterEventJsonListener& GetJsonListenerDelegate()
|
|
{
|
|
return ListenerDelegate;
|
|
}
|
|
|
|
protected:
|
|
|
|
/** Cluster event processing function */
|
|
void HandleClusterEvent(const FDisplayClusterClusterEventJson& InEvent);
|
|
|
|
/** Cluster event listener delegate */
|
|
FOnClusterEventJsonListener ListenerDelegate;
|
|
};
|