Navigation
Unreal Engine C++ API Reference > Developer > SourceControl
Inheritance Hierarchy
- IModularFeature
- ISourceControlProvider
References
Module | SourceControl |
Header | /Engine/Source/Developer/SourceControl/Public/ISourceControlProvider.h |
Include | #include "ISourceControlProvider.h" |
Syntax
class ISourceControlProvider : public IModularFeature
Remarks
Interface to talking with source control providers.
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Virtual destructor |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | Whether the provider allow a diff between a changed file and the depot | |
![]() ![]() |
bool | CanCancelOperation
(
const FSourceControlOperationRef& InOperation |
Check to see if we can cancel an operation. |
![]() |
void | CancelOperation
(
const FSourceControlOperationRef& InOperation |
Attempt to cancel an operation in progress. |
![]() ![]() |
bool | CanExecuteOperation
(
const FSourceControlOperationRef& InOperation |
Check to see if we can execute an operation. |
![]() |
void | Close () |
Shut down source control provider. |
![]() ![]() ![]() |
TUniquePtr< ISourceControlProvider > | Create
(
const FStringView& OwnerName, |
Creates a new instance of the source control provider type. |
![]() ![]() |
ECommandResult::Type | Execute
(
const FSourceControlOperationRef& InOperation, |
Helper overload for operation execution, see Execute(). |
![]() ![]() |
ECommandResult::Type | Execute
(
const FSourceControlOperationRef& InOperation, |
Helper overload for operation execution, see Execute(). |
![]() ![]() |
ECommandResult::Type | Execute
(
const FSourceControlOperationRef& InOperation, |
Helper overload for operation execution, see Execute(). |
![]() ![]() |
ECommandResult::Type | Execute
(
const FSourceControlOperationRef& InOperation, |
Helper overload for operation execution, see Execute(). |
![]() |
ECommandResult::Type | Execute
(
const FSourceControlOperationRef& InOperation, |
Attempt to execute an operation on the passed-in files (if any are required). |
![]() ![]() |
ECommandResult::Type | Execute
(
const FSourceControlOperationRef& InOperation, |
Helper overload for operation execution, see Execute(). |
![]() ![]() |
ECommandResult::Type | Execute
(
const FSourceControlOperationRef& InOperation, |
Helper overload for operation execution, see Execute(). |
![]() ![]() |
TArray< FSourceControlStateRef > | GetCachedStateByPredicate
(
TFunctionRef< bool(const FSourceControlStateRef&)> Predicate |
Get all cached source control state objects for which the supplied predicate returns true |
![]() |
TArray< FSourceControlChangelistRef > | GetChangelists
(
EStateCacheUsage::Type InStateCacheUsage |
Returns the list of available changelists if the underlying source control supports the 'changelist' concept. |
![]() ![]() ![]() |
TSharedPtr< class ISourceControlLabel > | Get a label matching the passed-in name. | |
![]() ![]() |
TArray< TSharedRef< class ISourceControlLabel > > | Get an array of labels matching the passed-in spec. | |
![]() ![]() |
const FName & | GetName () |
Get the source control provider name |
![]() ![]() |
TOptional< int > | Returns the number of changes in the local workspace NOTE: This concept is currently only implemented for the Skein source control provider. | |
![]() ![]() |
ECommandResult::Type | GetState
(
const TArray< UPackage* >& InPackages, |
Helper overload for state retrieval, see GetState(). |
![]() ![]() |
FSourceControlStatePtr | GetState
(
const FString& InFile, |
Helper overload for state retrieval, see GetState(). |
![]() ![]() |
FSourceControlStatePtr | GetState
(
const UPackage* InPackage, |
Helper overload for state retrieval, see GetState(). |
![]() ![]() |
FSourceControlChangelistStatePtr | GetState
(
const FSourceControlChangelistRef& InChangelist, |
Helper overload for state retrieval, see GetState(). |
![]() |
ECommandResult::Type | GetState
(
const TArray< FSourceControlChangelistRef >& InChangelists, |
Get the state of each of the passed-in changelists. |
![]() |
ECommandResult::Type | GetState
(
const TArray< FString >& InFiles, |
Get the state of each of the passed-in files. |
![]() ![]() |
int32 | GetStateBranchIndex
(
const FString& BranchName |
Gets the state index of the specified branch, higher index branches are generally closer to releases |
![]() ![]() |
TMap< EStatus, FString > | GetStatus () |
Get the source control status as a series of key value pairs |
![]() ![]() |
FText | Get the source control status as plain, human-readable text | |
![]() |
void | Init
(
bool bForceConnection |
Initialize source control provider. |
![]() ![]() |
TOptional< bool > | Whether the current source control client is at the latest version | |
![]() ![]() |
bool | IsAvailable () |
Quick check if source control is available for use (server-based providers can use this to return whether the server is available or not) |
![]() ![]() |
bool | IsEnabled () |
Quick check if source control is enabled. |
![]() ![]() |
ECommandResult::Type | Login
(
const FString& InPassword, |
Login to the source control server (if any). |
![]() ![]() |
TSharedRef< class SWidget > | Create a settings widget for display in the login window. | |
![]() |
bool | QueryStateBranchConfig
(
const FString& ConfigSrc, |
Queries branch configuration from source control |
![]() |
FDelegateHandle | RegisterSourceControlStateChanged_Handle
(
const FSourceControlStateChanged::FDelegate& SourceControlStateChanged |
Register a delegate to be called when source control state(s) change |
![]() |
void | RegisterStateBranches
(
const TArray< FString >& BranchNames, |
Register branches to query for state in addition to the current branch |
![]() ![]() |
ECommandResult::Type | SwitchWorkspace
(
FStringView NewWorkspaceName, |
Used to switch the provider from one workspace to another. |
![]() |
void | Tick () |
Called every update. |
![]() |
bool | TryToDownloadFileFromBackgroundThread
(
const TSharedRef< class FDownloadFile >& InOperation, |
Executes the FDownloadFile operation, but unlike the Execute method this can be called from a background thread, this works because FDownloadFile is thread safe and it does not change the state of source control. |
![]() ![]() |
bool | TryToDownloadFileFromBackgroundThread
(
const TSharedRef< class FDownloadFile >& InOperation, |
Executes the FDownloadFile operation, but unlike the Execute method this can be called from a background thread, this works because FDownloadFile is thread safe and it does not change the state of source control. |
![]() |
void | Unregister a delegate to be called when source control state(s) change | |
![]() ![]() |
bool | Whether the provider uses changelists to identify commits/revisions | |
![]() ![]() |
bool | UsesCheckout () |
Whether the provider uses the checkout workflow |
![]() ![]() |
bool | Whether the provider uses individual file revisions | |
![]() ![]() |
bool | Whether the provider uses local read-only state to signal whether a file is editable. | |
![]() ![]() |
bool | Whether the provider uses snapshots | |
![]() ![]() |
bool | Whether the provider supports uncontrolled changelists to allow work offline |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EStatus |