gitplugin.h 2.61 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/***************************************************************************
 *   Copyright 2008 Evgeniy Ivanov <powerfox@kde.ru>                       *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or         *
 *   modify it under the terms of the GNU General Public License as        *
 *   published by the Free Software Foundation; either version 2 of        *
 *   the License or (at your option) version 3 or any later version        *
 *   accepted by the membership of KDE e.V. (or its successor approved     *
 *   by the membership of KDE e.V.), which shall act as a proxy            *
 *   defined in Section 14 of version 3 of the license.                    *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
 ***************************************************************************/

#ifndef GIT_PLUGIN_H
#define GIT_PLUGIN_H

#include <vcs/interfaces/idistributedversioncontrol.h>
25
#include <vcs/dvcs/dvcsplugin.h>
26
27
#include <qobject.h>

28
29
30
31
32
33
namespace KDevelop
{
    class VcsJob;
    class VcsRevision;
}

34
class GitExecutor;
35
36
37
38

/**
 * This is the main class of KDevelop's Git plugin.
 *
39
 * It implements the DVCS dependent things not implemented in KDevelop::DistributedVersionControlPlugin
40
41
 * @author Evgeniy Ivanov <powerfox@kde.ru>
 */
42
class GitPlugin: public KDevelop::DistributedVersionControlPlugin
43
44
45
46
{
    Q_OBJECT
    Q_INTERFACES(KDevelop::IBasicVersionControl KDevelop::IDistributedVersionControl)

47
friend class GitExecutor;
48
49

public:
50
    GitPlugin(QObject *parent, const QVariantList & args = QVariantList() );
51
    ~GitPlugin();
52

53
54
55
56
57
58
59
    //TODO:Things to be moved to DVCSplugin, but not moved because require executor changes in all implemented DVCS
    KDevelop::VcsJob* log(const KUrl& localLocation,
                          const KDevelop::VcsRevision& rev,
                          unsigned long limit);
    KDevelop::VcsJob* log(const KUrl& localLocation,
                          const KDevelop::VcsRevision& rev,
                          const KDevelop::VcsRevision& limit);
60
61
62
};

#endif