2009-07-15 12:28:40 +02:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2011-01-11 16:28:15 +01:00
|
|
|
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
2009-07-15 12:28:40 +02:00
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Contact: Nokia Corporation (info@qt.nokia.com)
|
2009-07-15 12:28:40 +02:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** This file may be used under the terms of the GNU Lesser General Public
|
|
|
|
|
** License version 2.1 as published by the Free Software Foundation and
|
|
|
|
|
** appearing in the file LICENSE.LGPL included in the packaging of this file.
|
|
|
|
|
** Please review the following information to ensure the GNU Lesser General
|
|
|
|
|
** Public License version 2.1 requirements will be met:
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2009-07-15 12:28:40 +02:00
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2010-12-17 16:01:08 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** If you have questions regarding the use of this file, please contact
|
|
|
|
|
** Nokia at qt-info@nokia.com.
|
2009-07-15 12:28:40 +02:00
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef CVSCONTROL_H
|
|
|
|
|
#define CVSCONTROL_H
|
|
|
|
|
|
|
|
|
|
#include <coreplugin/iversioncontrol.h>
|
|
|
|
|
|
|
|
|
|
namespace CVS {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class CVSPlugin;
|
|
|
|
|
|
|
|
|
|
// Just a proxy for CVSPlugin
|
|
|
|
|
class CVSControl : public Core::IVersionControl
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
explicit CVSControl(CVSPlugin *plugin);
|
2010-01-07 18:17:24 +01:00
|
|
|
virtual QString displayName() const;
|
2009-07-15 12:28:40 +02:00
|
|
|
|
2010-05-20 16:24:39 +02:00
|
|
|
virtual bool managesDirectory(const QString &directory, QString *topLevel = 0) const;
|
2009-07-15 12:28:40 +02:00
|
|
|
|
|
|
|
|
virtual bool supportsOperation(Operation operation) const;
|
|
|
|
|
virtual bool vcsOpen(const QString &fileName);
|
|
|
|
|
virtual bool vcsAdd(const QString &fileName);
|
|
|
|
|
virtual bool vcsDelete(const QString &filename);
|
2010-05-11 14:13:38 +02:00
|
|
|
virtual bool vcsMove(const QString &from, const QString &to);
|
2010-01-12 16:45:21 +01:00
|
|
|
virtual bool vcsCreateRepository(const QString &directory);
|
2010-09-29 12:16:35 +02:00
|
|
|
virtual bool vcsCheckout(const QString &directory, const QByteArray &url);
|
|
|
|
|
virtual QString vcsGetRepositoryURL(const QString &directory);
|
2010-01-15 12:24:06 +01:00
|
|
|
virtual QString vcsCreateSnapshot(const QString &topLevel);
|
|
|
|
|
virtual QStringList vcsSnapshots(const QString &topLevel);
|
|
|
|
|
virtual bool vcsRestoreSnapshot(const QString &topLevel, const QString &name);
|
|
|
|
|
virtual bool vcsRemoveSnapshot(const QString &topLevel, const QString &name);
|
2010-03-19 17:22:18 +01:00
|
|
|
virtual bool vcsAnnotate(const QString &file, int line);
|
2009-07-15 12:28:40 +02:00
|
|
|
|
2009-11-11 14:32:54 +01:00
|
|
|
void emitRepositoryChanged(const QString &s);
|
|
|
|
|
void emitFilesChanged(const QStringList &l);
|
|
|
|
|
|
2009-07-15 12:28:40 +02:00
|
|
|
private:
|
|
|
|
|
bool m_enabled;
|
|
|
|
|
CVSPlugin *m_plugin;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace CVS
|
|
|
|
|
|
|
|
|
|
#endif // CVSCONTROL_H
|