File indexing completed on 2024-05-05 04:41:02

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_SVNUPDATEJOB_P_H
0008 #define KDEVPLATFORM_PLUGIN_SVNUPDATEJOB_P_H
0009 
0010 #include "svninternaljobbase.h"
0011 
0012 class SvnInternalUpdateJob : public SvnInternalJobBase
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit SvnInternalUpdateJob( SvnJobBase* parent = nullptr );
0017     void setLocations( const QList<QUrl>& );
0018     void setRecursive( bool );
0019     void setRevision( const KDevelop::VcsRevision& );
0020     void setIgnoreExternals( bool );
0021 
0022     bool recursive() const;
0023     QList<QUrl> locations() const;
0024     KDevelop::VcsRevision revision() const;
0025     bool ignoreExternals() const;
0026 protected:
0027     void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
0028 private:
0029     QList<QUrl> m_locations;
0030     bool m_recursive = false;
0031     bool m_ignoreExternals = false;
0032     KDevelop::VcsRevision m_revision;
0033 };
0034 
0035 #endif
0036