Navigation
API > API/Developer > API/Developer/SourceControl
Inheritance Hierarchy
- IModuleInterface
- ISourceControlModule
References
| Module | SourceControl |
| Header | /Engine/Source/Developer/SourceControl/Public/ISourceControlModule.h |
| Include | #include "ISourceControlModule.h" |
Syntax
class ISourceControlModule : public IModuleInterface
Remarks
Interface for talking to source control providers
Functions
| Type | Name | Description | |
|---|---|---|---|
| TUniquePtr< ISourceControlProvider > | CreateProvider
(
const FName& Name, |
Creates and returns a unique source control provider that will be owned by the caller. | |
| ISourceControlModule & | Get () |
Gets a reference to the source control module instance. | |
| FSourceControlAssetDataCache & | Get the source control AssetData information cache. | ||
| const FSourceControlFilesDeletedDelegate & | Returns access to the delegate so that it can be broadcast as needed. | ||
| ISourceControlProvider & | GetProvider () |
Get the source control provider that is currently in use. | |
| void | GetProviderNames
(
TArray< FName >& OutProviderNames |
Returns a list of the registered source control providers | |
| FSourceControlPreSubmitDataValidationDelegate | Gets currently registered delegates for pre-submit data validation | ||
| FSourceControlFileStatusMonitor & | Returns the object used to monitor the source control status of a collection of files. | ||
| FString | Returns the project base directory to be used by the source control | ||
| bool | Get whether we should use global or per-project settings | ||
| bool | IsEnabled () |
Check whether source control is enabled. | |
| void | QueueStatusUpdate
(
const TArray< FString >& InFilenames |
Queues a file to have its source control status updated in the background. | |
| void | QueueStatusUpdate
(
const TArray< UPackage* >& InPackages |
Queues a file to have its source control status updated in the background. | |
| void | QueueStatusUpdate
(
UPackage* InPackage |
Queues a file to have its source control status updated in the background. | |
| void | QueueStatusUpdate
(
const FString& InFilename |
Queues a file to have its source control status updated in the background. | |
| FDelegateHandle | RegisterFilesDeleted
(
const FSourceControlFilesDeletedDelegate::FDelegate& InDelegate |
Registers a delegate that is invoked after source control operation deleted files. | |
| void | RegisterPreSubmitDataValidation
(
const FSourceControlPreSubmitDataValidationDelegate& PreSubmitDataValidationDelegate |
Register a delegate to be called to validate asset changes before submitting changes | |
| FDelegateHandle | RegisterProviderChanged
(
const FSourceControlProviderChanged::FDelegate& SourceControlProviderChanged |
Register a delegate to be called when the source control provider changes | |
| void | RegisterSourceControlProjectDirDelegate
(
const FSourceControlProjectDirDelegate& SourceControlProjectDirDelegate |
Register a delegate used to specify the project base directory to be used by the source control | |
| void | SetProvider
(
const FName& InName |
Set the current source control provider to the one specified here by name. | |
| void | SetUseGlobalSettings
(
bool bIsUseGlobalSettings |
Set whether we should use global or per-project settings | |
| void | ShowLoginDialog
(
const FSourceControlLoginClosed& InOnSourceControlLoginClosed, |
Show the source control login dialog | |
| void | Tick () |
Tick the source control module. | |
| void | UnregisterFilesDeleted
(
FDelegateHandle InHandle |
Unregister a previously registered delegate. | |
| void | Unregister a delegate called before submitting changes | ||
| void | UnregisterProviderChanged
(
FDelegateHandle Handle |
Unregister a delegate to be called when the source control provider changes | |
| void | Unregister the FSourceControlProjectDirDelegate delegate | ||
| bool | Returns whether a delegate has been registered to specify the project base directory to be used by the source control |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| const FSourceControlPreSubmitFinalizeDelegate & | ISourceControlModule::GetOnPreSubmitFinalize is deprecated, the functionality will be removed | ||
| FDelegateHandle | RegisterPreSubmitFinalize
(
const FSourceControlPreSubmitFinalizeDelegate::FDelegate& Delegate |
ISourceControlModule::RegisterPreSubmitFinalize is deprecated, the functionality will be removed | |
| void | UnregisterPreSubmitFinalize
(
FDelegateHandle Handle |
ISourceControlModule::UnregisterPreSubmitFinalize is deprecated, the functionality will be removed |