Files
UnrealEngineUWP/Engine/Source/Developer/DeviceManager/Private/Models/DeviceDetailsCommands.h
2014-04-02 18:09:23 -04:00

69 lines
2.4 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
DeviceDetailsCommands.h: Declares the FDeviceDetailsCommands class.
=============================================================================*/
#pragma once
/**
* The device details commands
*/
class FDeviceDetailsCommands
: public TCommands<FDeviceDetailsCommands>
{
public:
/**
* Default constructor.
*/
FDeviceDetailsCommands()
: TCommands<FDeviceDetailsCommands>(
"DeviceDetails",
NSLOCTEXT("Contexts", "DeviceDetails", "Device Details"),
NAME_None, FEditorStyle::GetStyleSetName()
)
{ }
public:
// Begin TCommands interface
virtual void RegisterCommands( ) OVERRIDE
{
UI_COMMAND(Claim, "Claim", "Claim the device", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(Release, "Release", "Release the device", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(Remove, "Remove", "Remove the device", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(Share, "Share", "Share the device with other users", EUserInterfaceActionType::ToggleButton, FInputGesture());
UI_COMMAND(Connect, "Connect", "Connect to the device", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(Disconnect, "Disconnect", "Disconnect from the device", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(PowerOff, "Power Off", "Power off the device", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(PowerOffForce, "Power Off (Force)", "Power off the device (forcefully close any running applications)", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(PowerOn, "Power On", "Power on the device", EUserInterfaceActionType::Button, FInputGesture());
UI_COMMAND(Reboot, "Reboot", "Reboot the device", EUserInterfaceActionType::Button, FInputGesture());
}
// End TCommands interface
public:
// ownership commands
TSharedPtr<FUICommandInfo> Claim;
TSharedPtr<FUICommandInfo> Release;
TSharedPtr<FUICommandInfo> Remove;
TSharedPtr<FUICommandInfo> Share;
// connectivity commands
TSharedPtr<FUICommandInfo> Connect;
TSharedPtr<FUICommandInfo> Disconnect;
// remote control commands
TSharedPtr<FUICommandInfo> PowerOff;
TSharedPtr<FUICommandInfo> PowerOffForce;
TSharedPtr<FUICommandInfo> PowerOn;
TSharedPtr<FUICommandInfo> Reboot;
};