You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
+ Expand source control menu context with selected changelist, + Expose information about if changelist is default and its source control specific identifier, #rb Patrick.Enfedaque, Patrick.Laflamme, zach.rammell #preflight skip #p4v-cherrypick 25526575 #preflight 64665919b91ab13b09c2089c [CL 25528171 by jordan hoffmann in ue5-main branch]
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
class ISourceControlChangelist;
|
|
|
|
typedef TSharedRef<class ISourceControlChangelist, ESPMode::ThreadSafe> FSourceControlChangelistRef;
|
|
typedef TSharedPtr<class ISourceControlChangelist, ESPMode::ThreadSafe> FSourceControlChangelistPtr;
|
|
|
|
/**
|
|
* An abstraction of a changelist under source control
|
|
*/
|
|
class ISourceControlChangelist : public TSharedFromThis<ISourceControlChangelist, ESPMode::ThreadSafe>
|
|
{
|
|
public:
|
|
/**
|
|
* Virtual destructor
|
|
*/
|
|
virtual ~ISourceControlChangelist() = default;
|
|
|
|
/**
|
|
* Returns true if the changelist is deletable. Some special changelist might not be deletable like the
|
|
* default Perforce changelist.
|
|
*/
|
|
virtual bool CanDelete() const { return true; }
|
|
|
|
/**
|
|
* Get source control specific identifier for this changelist, for example CL number in Perforce.
|
|
*/
|
|
virtual FString GetIdentifier() const { return TEXT(""); }
|
|
|
|
/**
|
|
* Returns true if this changelist is a default changelist.
|
|
*/
|
|
virtual bool IsDefault() const { return false; }
|
|
};
|