File indexing completed on 2024-05-05 04:41:01
0001 /* 0002 SPDX-FileCopyrightText: 2007 Andreas Pakulat <apaku@gmx.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_PLUGIN_SVNDIFFJOB_P_H 0008 #define KDEVPLATFORM_PLUGIN_SVNDIFFJOB_P_H 0009 0010 #include "svninternaljobbase.h" 0011 #include <vcs/vcsrevision.h> 0012 0013 class SvnInternalDiffJob : public SvnInternalJobBase 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit SvnInternalDiffJob( SvnJobBase* parent = nullptr ); 0018 void setSource( const KDevelop::VcsLocation& ); 0019 void setDestination( const KDevelop::VcsLocation& ); 0020 void setSrcRevision( const KDevelop::VcsRevision& ); 0021 void setDstRevision( const KDevelop::VcsRevision& ); 0022 void setPegRevision( const KDevelop::VcsRevision& ); 0023 void setRecursive( bool ); 0024 void setIgnoreAncestry( bool ); 0025 void setIgnoreContentType( bool ); 0026 void setNoDiffOnDelete( bool ); 0027 0028 bool recursive() const; 0029 bool ignoreAncestry() const; 0030 bool ignoreContentType() const; 0031 bool noDiffOnDelete() const; 0032 KDevelop::VcsLocation source() const; 0033 KDevelop::VcsLocation destination() const; 0034 KDevelop::VcsRevision srcRevision() const; 0035 KDevelop::VcsRevision dstRevision() const; 0036 KDevelop::VcsRevision pegRevision() const; 0037 0038 Q_SIGNALS: 0039 void gotDiff( const QString& ); 0040 protected: 0041 void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override; 0042 private: 0043 KDevelop::VcsLocation m_source; 0044 KDevelop::VcsLocation m_destination; 0045 KDevelop::VcsRevision m_srcRevision; 0046 KDevelop::VcsRevision m_dstRevision; 0047 KDevelop::VcsRevision m_pegRevision; 0048 bool m_recursive = true; 0049 bool m_ignoreAncestry = false; 0050 bool m_ignoreContentType = false; 0051 bool m_noDiffOnDelete = false; 0052 }; 0053 0054 0055 #endif 0056