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_SVNLOGJOB_P_H
8 #define KDEVPLATFORM_PLUGIN_SVNLOGJOB_P_H
9 
10 #include "svninternaljobbase.h"
11 
12 #include <vcs/vcsrevision.h>
13 #include <vcs/vcsevent.h>
14 
15 class SvnInternalLogJob : public SvnInternalJobBase
16 {
17     Q_OBJECT
18 public:
19     explicit SvnInternalLogJob( SvnJobBase* parent = nullptr );
20 
21     void setLocation( const QUrl &location );
22     void setLimit( int limit );
23     void setEndRevision( const KDevelop::VcsRevision& rev );
24     void setStartRevision( const KDevelop::VcsRevision& rev );
25 
26     QUrl location() const;
27     KDevelop::VcsRevision startRevision() const;
28     KDevelop::VcsRevision endRevision() const;
29     int limit() const;
30 Q_SIGNALS:
31     void logEvent( const KDevelop::VcsEvent& );
32 protected:
33     void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread* thread) override;
34 private:
35     QUrl m_location;
36     int m_limit;
37     KDevelop::VcsRevision m_startRevision;
38     KDevelop::VcsRevision m_endRevision;
39 };
40 
41 
42 
43 #endif
44