Files
UnrealEngineUWP/Engine/Source/Developer/SourceControl/Private/DefaultSourceControlProvider.cpp
Richard TalbotWatkin 44e15875cd Added the ability to commit file deletions from the editor.
#jira UE-6304 - Source Control: Add the ability to commit file deletions from the editor
#reviewedby Thomas.Sarkanen

[CL 2446774 by Richard TalbotWatkin in Main branch]
2015-02-16 05:11:32 -05:00

114 lines
3.2 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "SourceControlPrivatePCH.h"
#include "DefaultSourceControlProvider.h"
#include "ISourceControlState.h"
#include "ISourceControlModule.h"
#include "ISourceControlLabel.h"
#include "MessageLog.h"
#define LOCTEXT_NAMESPACE "DefaultSourceControlProvider"
void FDefaultSourceControlProvider::Init(bool bForceConnection)
{
FMessageLog("SourceControl").Info(LOCTEXT("SourceControlDisabled", "Source control is disabled"));
}
void FDefaultSourceControlProvider::Close()
{
}
FText FDefaultSourceControlProvider::GetStatusText() const
{
return LOCTEXT("SourceControlDisabled", "Source control is disabled");
}
bool FDefaultSourceControlProvider::IsAvailable() const
{
return false;
}
bool FDefaultSourceControlProvider::IsEnabled() const
{
return false;
}
const FName& FDefaultSourceControlProvider::GetName(void) const
{
static FName ProviderName("None");
return ProviderName;
}
ECommandResult::Type FDefaultSourceControlProvider::GetState( const TArray<FString>& InFiles, TArray< TSharedRef<ISourceControlState, ESPMode::ThreadSafe> >& OutState, EStateCacheUsage::Type InStateCacheUsage )
{
return ECommandResult::Failed;
}
TArray<FSourceControlStateRef> FDefaultSourceControlProvider::GetCachedStateByPredicate(const TFunctionRef<bool(const FSourceControlStateRef&)>& Predicate) const
{
return TArray<FSourceControlStateRef>();
}
void FDefaultSourceControlProvider::RegisterSourceControlStateChanged( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged )
{
}
void FDefaultSourceControlProvider::UnregisterSourceControlStateChanged( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged )
{
}
FDelegateHandle FDefaultSourceControlProvider::RegisterSourceControlStateChanged_Handle( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged )
{
return FDelegateHandle();
}
void FDefaultSourceControlProvider::UnregisterSourceControlStateChanged_Handle( FDelegateHandle Handle )
{
}
ECommandResult::Type FDefaultSourceControlProvider::Execute( const TSharedRef<ISourceControlOperation, ESPMode::ThreadSafe>& InOperation, const TArray<FString>& InFiles, EConcurrency::Type InConcurrency, const FSourceControlOperationComplete& InOperationCompleteDelegate )
{
return ECommandResult::Failed;
}
bool FDefaultSourceControlProvider::CanCancelOperation( const TSharedRef<ISourceControlOperation, ESPMode::ThreadSafe>& InOperation ) const
{
return false;
}
void FDefaultSourceControlProvider::CancelOperation( const TSharedRef<ISourceControlOperation, ESPMode::ThreadSafe>& InOperation )
{
}
bool FDefaultSourceControlProvider::UsesLocalReadOnlyState() const
{
return false;
}
bool FDefaultSourceControlProvider::UsesChangelists() const
{
return false;
}
void FDefaultSourceControlProvider::Tick()
{
}
TArray< TSharedRef<ISourceControlLabel> > FDefaultSourceControlProvider::GetLabels( const FString& InMatchingSpec ) const
{
return TArray< TSharedRef<ISourceControlLabel> >();
}
#if SOURCE_CONTROL_WITH_SLATE
TSharedRef<class SWidget> FDefaultSourceControlProvider::MakeSettingsWidget() const
{
return SNullWidget::NullWidget;
}
#endif // SOURCE_CONTROL_WITH_SLATE
#undef LOCTEXT_NAMESPACE