File indexing completed on 2024-05-05 04:41:00
0001 /* 0002 SPDX-FileCopyrightText: 2007 Andreas Pakulat <apaku@gmx.de> 0003 SPDX-FileCopyrightText: 2007 Dukju Ahn <dukjuahn@gmail.com> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef KDEVPLATFORM_PLUGIN_SVNCOMMITJOB_P_H 0009 #define KDEVPLATFORM_PLUGIN_SVNCOMMITJOB_P_H 0010 0011 #include <QUrl> 0012 #include "svninternaljobbase.h" 0013 0014 class SvnJobBase; 0015 0016 class SvnInternalCommitJob : public SvnInternalJobBase 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit SvnInternalCommitJob( SvnJobBase* parent = nullptr ); 0021 void setRecursive( bool ); 0022 void setCommitMessage( const QString& ); 0023 void setUrls( const QList<QUrl>& ); 0024 void setKeepLock( bool ); 0025 0026 QList<QUrl> urls() const; 0027 QString commitMessage() const; 0028 bool recursive() const; 0029 bool keepLock() const; 0030 0031 protected: 0032 void run(ThreadWeaver::JobPointer job, ThreadWeaver::Thread* thread) override; 0033 private: 0034 QList<QUrl> m_urls; 0035 bool m_recursive = true; 0036 bool m_keepLock = false; 0037 }; 0038 0039 0040 #endif 0041