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_SVNLOGJOB_P_H
0008 #define KDEVPLATFORM_PLUGIN_SVNLOGJOB_P_H
0009 
0010 #include "svninternaljobbase.h"
0011 
0012 #include <vcs/vcsrevision.h>
0013 #include <vcs/vcsevent.h>
0014 
0015 class SvnInternalLogJob : public SvnInternalJobBase
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit SvnInternalLogJob( SvnJobBase* parent = nullptr );
0020 
0021     void setLocation( const QUrl &location );
0022     void setLimit( int limit );
0023     void setEndRevision( const KDevelop::VcsRevision& rev );
0024     void setStartRevision( const KDevelop::VcsRevision& rev );
0025 
0026     QUrl location() const;
0027     KDevelop::VcsRevision startRevision() const;
0028     KDevelop::VcsRevision endRevision() const;
0029     int limit() const;
0030 Q_SIGNALS:
0031     void logEvent( const KDevelop::VcsEvent& );
0032 protected:
0033     void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
0034 private:
0035     QUrl m_location;
0036     int m_limit;
0037     KDevelop::VcsRevision m_startRevision;
0038     KDevelop::VcsRevision m_endRevision;
0039 };
0040 
0041 
0042 
0043 #endif