1 /* 2 SPDX-FileCopyrightText: 2007 Andreas Pakulat <apaku@gmx.de> 3 4 SPDX-License-Identifier: LGPL-2.0-or-later 5 */ 6 7 #ifndef KDEVPLATFORM_PLUGIN_SVNCHECKOUTJOB_P_H 8 #define KDEVPLATFORM_PLUGIN_SVNCHECKOUTJOB_P_H 9 10 11 #include "svninternaljobbase.h" 12 #include <vcs/interfaces/ibasicversioncontrol.h> 13 14 class SvnInternalCheckoutJob : public SvnInternalJobBase 15 { 16 Q_OBJECT 17 public: 18 explicit SvnInternalCheckoutJob( SvnJobBase* parent = nullptr ); 19 void setMapping(const KDevelop::VcsLocation & sourceRepository, const QUrl &destinationDirectory, KDevelop::IBasicVersionControl::RecursionMode recursion); 20 21 bool isValid() const; 22 KDevelop::VcsLocation source() const; 23 QUrl destination() const; 24 KDevelop::IBasicVersionControl::RecursionMode recursion() const; 25 protected: 26 void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override; 27 private: 28 KDevelop::VcsLocation m_sourceRepository; 29 QUrl m_destinationDirectory; 30 KDevelop::IBasicVersionControl::RecursionMode m_recursion = KDevelop::IBasicVersionControl::Recursive; 31 }; 32 33 34 #endif 35 36