File indexing completed on 2024-05-05 04:41:00
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_SVNCLIENT_H 0008 #define KDEVPLATFORM_PLUGIN_SVNCLIENT_H 0009 0010 #include <QObject> 0011 0012 #include "kdevsvncpp/path.hpp" 0013 #include "kdevsvncpp/revision.hpp" 0014 #include "kdevsvncpp/client.hpp" 0015 0016 #include <vcs/vcsevent.h> 0017 0018 class SvnClient : public QObject, public svn::Client 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit SvnClient( svn::Context* = nullptr ); 0023 0024 QString diff( const svn::Path& src, const svn::Revision& srcRev, 0025 const svn::Path& dst, const svn::Revision& dstRev, 0026 const bool recurse, const bool ignoreAncestry, 0027 const bool noDiffDeleted, const bool ignoreContentType ); 0028 0029 QString diff( const svn::Path& src, const svn::Revision& pegRev, 0030 const svn::Revision& srcRev, const svn::Revision& dstRev, 0031 const bool recurse, const bool ignoreAncestry, 0032 const bool noDiffDeleted, const bool ignoreContentType ); 0033 0034 void log( const char* path, 0035 const svn::Revision& start, 0036 const svn::Revision& end, 0037 int limit, 0038 bool discoverChangedPaths = false, 0039 bool strictNodeHistory = true ); 0040 0041 void emitLogEventReceived( const KDevelop::VcsEvent& ); 0042 0043 Q_SIGNALS: 0044 void logEventReceived( const KDevelop::VcsEvent& ); 0045 private: 0046 svn::Context* m_ctxt; 0047 }; 0048 0049 #endif 0050