You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
API break: added new pure virtual ISourceControlProvider::UsesChangelists() API break: added new pure virtual ISourceControlState::FindHistoryRevision(const FString&) API break: added new pure virtual ISourceControlRevision::GetRevision() Implementing a Git provider requires us to be able to display revisions that are not indices as Git revisions are hashes. This updates the relvant code to allow us to display these revisions correctly. [CL 2411986 by Thomas Sarkanen in Main branch]
45 lines
2.6 KiB
C++
45 lines
2.6 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "ISourceControlProvider.h"
|
|
|
|
// We disable the deprecation warnings here because otherwise it'll complain about us
|
|
// implementing RegisterSourceControlStateChanged and UnregisterSourceControlStateChanged. We know
|
|
// that, but we only want it to complain if *others* implement or call these functions.
|
|
//
|
|
// These macros should be removed when those functions are removed.
|
|
PRAGMA_DISABLE_DEPRECATION_WARNINGS
|
|
|
|
/**
|
|
* Default source control provider implementation - "None"
|
|
*/
|
|
class FDefaultSourceControlProvider : public ISourceControlProvider
|
|
{
|
|
public:
|
|
// ISourceControlProvider implementation
|
|
virtual void Init(bool bForceConnection = true) override;
|
|
virtual void Close() override;
|
|
virtual FText GetStatusText() const override;
|
|
virtual bool IsAvailable() const override;
|
|
virtual bool IsEnabled() const override;
|
|
virtual const FName& GetName(void) const override;
|
|
virtual ECommandResult::Type GetState( const TArray<FString>& InFiles, TArray< TSharedRef<ISourceControlState, ESPMode::ThreadSafe> >& OutState, EStateCacheUsage::Type InStateCacheUsage ) override;
|
|
virtual void RegisterSourceControlStateChanged( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged ) override;
|
|
virtual void UnregisterSourceControlStateChanged( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged ) override;
|
|
virtual FDelegateHandle RegisterSourceControlStateChanged_Handle( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged ) override;
|
|
virtual void UnregisterSourceControlStateChanged_Handle( FDelegateHandle Handle ) override;
|
|
virtual ECommandResult::Type Execute( const TSharedRef<ISourceControlOperation, ESPMode::ThreadSafe>& InOperation, const TArray<FString>& InFiles, EConcurrency::Type InConcurrency = EConcurrency::Synchronous, const FSourceControlOperationComplete& InOperationCompleteDelegate = FSourceControlOperationComplete() ) override;
|
|
virtual bool CanCancelOperation( const TSharedRef<ISourceControlOperation, ESPMode::ThreadSafe>& InOperation ) const override;
|
|
virtual void CancelOperation( const TSharedRef<ISourceControlOperation, ESPMode::ThreadSafe>& InOperation ) override;
|
|
virtual bool UsesLocalReadOnlyState() const override;
|
|
virtual bool UsesChangelists() const override;
|
|
virtual void Tick() override;
|
|
virtual TArray< TSharedRef<class ISourceControlLabel> > GetLabels( const FString& InMatchingSpec ) const override;
|
|
#if SOURCE_CONTROL_WITH_SLATE
|
|
virtual TSharedRef<class SWidget> MakeSettingsWidget() const override;
|
|
#endif // SOURCE_CONTROL_WITH_SLATE
|
|
};
|
|
|
|
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|