forked from qt-creator/qt-creator
Vcs: Sprinkle overrides over IVersionControls
Do this in a separate step to keep the next patch more readable. Change-Id: I37cfd5481dcbfda52135eccec30852aefde1b950 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -50,19 +50,19 @@ class BazaarControl: public Core::IVersionControl
|
||||
public:
|
||||
explicit BazaarControl(BazaarClient *bazaarClient);
|
||||
|
||||
QString displayName() const;
|
||||
Core::Id id() const;
|
||||
QString displayName() const override;
|
||||
Core::Id id() const override;
|
||||
|
||||
bool managesDirectory(const QString &filename, QString *topLevel = 0) const;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const;
|
||||
bool isConfigured() const;
|
||||
bool supportsOperation(Operation operation) const;
|
||||
bool vcsOpen(const QString &fileName);
|
||||
bool vcsAdd(const QString &filename);
|
||||
bool vcsDelete(const QString &filename);
|
||||
bool vcsMove(const QString &from, const QString &to);
|
||||
bool vcsCreateRepository(const QString &directory);
|
||||
bool vcsAnnotate(const QString &file, int line);
|
||||
bool managesDirectory(const QString &filename, QString *topLevel = 0) const override;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const override;
|
||||
bool isConfigured() const override;
|
||||
bool supportsOperation(Operation operation) const override;
|
||||
bool vcsOpen(const QString &fileName) override;
|
||||
bool vcsAdd(const QString &filename) override;
|
||||
bool vcsDelete(const QString &filename) override;
|
||||
bool vcsMove(const QString &from, const QString &to) override;
|
||||
bool vcsCreateRepository(const QString &directory) override;
|
||||
bool vcsAnnotate(const QString &file, int line) override;
|
||||
|
||||
public slots:
|
||||
// To be connected to the VCSTask's success signal to emit the repository/
|
||||
|
||||
@@ -45,28 +45,28 @@ class ClearCaseControl : public Core::IVersionControl
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ClearCaseControl(ClearCasePlugin *plugin);
|
||||
QString displayName() const;
|
||||
Core::Id id() const;
|
||||
QString displayName() const override;
|
||||
Core::Id id() const override;
|
||||
|
||||
bool managesDirectory(const QString &directory, QString *topLevel = 0) const;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const;
|
||||
bool managesDirectory(const QString &directory, QString *topLevel = 0) const override;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const override;
|
||||
|
||||
bool isConfigured() const;
|
||||
bool isConfigured() const override;
|
||||
|
||||
bool supportsOperation(Operation operation) const;
|
||||
OpenSupportMode openSupportMode(const QString &fileName) const;
|
||||
bool vcsOpen(const QString &fileName);
|
||||
SettingsFlags settingsFlags() const;
|
||||
bool vcsAdd(const QString &fileName);
|
||||
bool vcsDelete(const QString &filename);
|
||||
bool vcsMove(const QString &from, const QString &to);
|
||||
bool vcsCreateRepository(const QString &directory);
|
||||
bool supportsOperation(Operation operation) const override;
|
||||
OpenSupportMode openSupportMode(const QString &fileName) const override;
|
||||
bool vcsOpen(const QString &fileName) override;
|
||||
SettingsFlags settingsFlags() const override;
|
||||
bool vcsAdd(const QString &fileName) override;
|
||||
bool vcsDelete(const QString &filename) override;
|
||||
bool vcsMove(const QString &from, const QString &to) override;
|
||||
bool vcsCreateRepository(const QString &directory) override;
|
||||
|
||||
bool vcsAnnotate(const QString &file, int line);
|
||||
bool vcsAnnotate(const QString &file, int line) override;
|
||||
|
||||
QString vcsOpenText() const;
|
||||
QString vcsMakeWritableText() const;
|
||||
QString vcsTopic(const QString &directory);
|
||||
QString vcsOpenText() const override;
|
||||
QString vcsMakeWritableText() const override;
|
||||
QString vcsTopic(const QString &directory) override;
|
||||
|
||||
void emitRepositoryChanged(const QString &);
|
||||
void emitFilesChanged(const QStringList &);
|
||||
|
||||
@@ -229,18 +229,18 @@ public:
|
||||
int fileCount() const { return m_fileCount; }
|
||||
|
||||
// IVersionControl interface
|
||||
QString displayName() const { return m_displayName; }
|
||||
Id id() const { return m_id; }
|
||||
bool managesDirectory(const QString &filename, QString *topLevel) const;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const;
|
||||
bool isConfigured() const { return true; }
|
||||
bool supportsOperation(Operation) const { return false; }
|
||||
bool vcsOpen(const QString &) { return false; }
|
||||
bool vcsAdd(const QString &) { return false; }
|
||||
bool vcsDelete(const QString &) { return false; }
|
||||
bool vcsMove(const QString &, const QString &) { return false; }
|
||||
bool vcsCreateRepository(const QString &) { return false; }
|
||||
bool vcsAnnotate(const QString &, int) { return false; }
|
||||
QString displayName() const override { return m_displayName; }
|
||||
Id id() const override { return m_id; }
|
||||
bool managesDirectory(const QString &filename, QString *topLevel) const override;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const override;
|
||||
bool isConfigured() const override { return true; }
|
||||
bool supportsOperation(Operation) const override { return false; }
|
||||
bool vcsOpen(const QString &) override { return false; }
|
||||
bool vcsAdd(const QString &) override { return false; }
|
||||
bool vcsDelete(const QString &) override { return false; }
|
||||
bool vcsMove(const QString &, const QString &) override { return false; }
|
||||
bool vcsCreateRepository(const QString &) override { return false; }
|
||||
bool vcsAnnotate(const QString &, int) override { return false; }
|
||||
|
||||
private:
|
||||
Id m_id;
|
||||
|
||||
@@ -45,23 +45,23 @@ class CvsControl : public Core::IVersionControl
|
||||
|
||||
public:
|
||||
explicit CvsControl(CvsPlugin *plugin);
|
||||
QString displayName() const;
|
||||
Core::Id id() const;
|
||||
QString displayName() const override;
|
||||
Core::Id id() const override;
|
||||
|
||||
bool managesDirectory(const QString &directory, QString *topLevel = 0) const;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const;
|
||||
bool managesDirectory(const QString &directory, QString *topLevel = 0) const override;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const override;
|
||||
|
||||
bool isConfigured() const;
|
||||
bool supportsOperation(Operation operation) const;
|
||||
OpenSupportMode openSupportMode(const QString &fileName) const;
|
||||
bool vcsOpen(const QString &fileName);
|
||||
bool vcsAdd(const QString &fileName);
|
||||
bool vcsDelete(const QString &filename);
|
||||
bool vcsMove(const QString &from, const QString &to);
|
||||
bool vcsCreateRepository(const QString &directory);
|
||||
bool vcsAnnotate(const QString &file, int line);
|
||||
bool isConfigured() const override;
|
||||
bool supportsOperation(Operation operation) const override;
|
||||
OpenSupportMode openSupportMode(const QString &fileName) const override;
|
||||
bool vcsOpen(const QString &fileName) override;
|
||||
bool vcsAdd(const QString &fileName) override;
|
||||
bool vcsDelete(const QString &filename) override;
|
||||
bool vcsMove(const QString &from, const QString &to) override;
|
||||
bool vcsCreateRepository(const QString &directory) override;
|
||||
bool vcsAnnotate(const QString &file, int line) override;
|
||||
|
||||
QString vcsOpenText() const;
|
||||
QString vcsOpenText() const override;
|
||||
|
||||
void emitRepositoryChanged(const QString &s);
|
||||
void emitFilesChanged(const QStringList &l);
|
||||
|
||||
@@ -51,19 +51,20 @@ class MercurialControl: public Core::IVersionControl
|
||||
public:
|
||||
explicit MercurialControl(MercurialClient *mercurialClient);
|
||||
|
||||
QString displayName() const;
|
||||
Core::Id id() const;
|
||||
bool managesDirectory(const QString &filename, QString *topLevel = 0) const;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const;
|
||||
bool isConfigured() const;
|
||||
bool supportsOperation(Operation operation) const;
|
||||
bool vcsOpen(const QString &fileName);
|
||||
bool vcsAdd(const QString &filename);
|
||||
bool vcsDelete(const QString &filename);
|
||||
bool vcsMove(const QString &from, const QString &to);
|
||||
bool vcsCreateRepository(const QString &directory);
|
||||
QString displayName() const override;
|
||||
Core::Id id() const override;
|
||||
bool managesDirectory(const QString &filename, QString *topLevel = 0) const override;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const override;
|
||||
bool isConfigured() const override;
|
||||
bool supportsOperation(Operation operation) const override;
|
||||
bool vcsOpen(const QString &fileName) override;
|
||||
bool vcsAdd(const QString &filename) override;
|
||||
bool vcsDelete(const QString &filename) override;
|
||||
bool vcsMove(const QString &from, const QString &to) override;
|
||||
bool vcsCreateRepository(const QString &directory) override;
|
||||
bool vcsAnnotate(const QString &file, int line) override;
|
||||
|
||||
bool sccManaged(const QString &filename);
|
||||
bool vcsAnnotate(const QString &file, int line);
|
||||
|
||||
public slots:
|
||||
// To be connected to the HgTask's success signal to emit the repository/
|
||||
|
||||
@@ -44,24 +44,24 @@ class PerforceVersionControl : public Core::IVersionControl
|
||||
public:
|
||||
explicit PerforceVersionControl(PerforcePlugin *plugin);
|
||||
|
||||
QString displayName() const;
|
||||
Core::Id id() const;
|
||||
QString displayName() const override;
|
||||
Core::Id id() const override;
|
||||
|
||||
bool managesDirectory(const QString &directory, QString *topLevel = 0) const;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const;
|
||||
bool managesDirectory(const QString &directory, QString *topLevel = 0) const override;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const override;
|
||||
|
||||
bool isConfigured() const;
|
||||
bool supportsOperation(Operation operation) const;
|
||||
OpenSupportMode openSupportMode(const QString &fileName) const;
|
||||
bool vcsOpen(const QString &fileName);
|
||||
SettingsFlags settingsFlags() const;
|
||||
bool vcsAdd(const QString &fileName);
|
||||
bool vcsDelete(const QString &filename);
|
||||
bool vcsMove(const QString &from, const QString &to);
|
||||
bool vcsCreateRepository(const QString &directory);
|
||||
bool vcsAnnotate(const QString &file, int line);
|
||||
QString vcsOpenText() const;
|
||||
QString vcsMakeWritableText() const;
|
||||
bool isConfigured() const override;
|
||||
bool supportsOperation(Operation operation) const override;
|
||||
OpenSupportMode openSupportMode(const QString &fileName) const override;
|
||||
bool vcsOpen(const QString &fileName) override;
|
||||
SettingsFlags settingsFlags() const override;
|
||||
bool vcsAdd(const QString &fileName) override;
|
||||
bool vcsDelete(const QString &filename) override;
|
||||
bool vcsMove(const QString &from, const QString &to) override;
|
||||
bool vcsCreateRepository(const QString &directory) override;
|
||||
bool vcsAnnotate(const QString &file, int line) override;
|
||||
QString vcsOpenText() const override;
|
||||
QString vcsMakeWritableText() const override;
|
||||
|
||||
void emitRepositoryChanged(const QString &s);
|
||||
void emitFilesChanged(const QStringList &l);
|
||||
|
||||
@@ -44,21 +44,21 @@ class SubversionControl : public Core::IVersionControl
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SubversionControl(SubversionPlugin *plugin);
|
||||
QString displayName() const;
|
||||
Core::Id id() const;
|
||||
QString displayName() const override;
|
||||
Core::Id id() const override;
|
||||
|
||||
bool managesDirectory(const QString &directory, QString *topLevel = 0) const;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const;
|
||||
bool managesDirectory(const QString &directory, QString *topLevel = 0) const override;
|
||||
bool managesFile(const QString &workingDirectory, const QString &fileName) const override;
|
||||
|
||||
bool isConfigured() const;
|
||||
bool supportsOperation(Operation operation) const;
|
||||
bool vcsOpen(const QString &fileName);
|
||||
bool vcsAdd(const QString &fileName);
|
||||
bool vcsDelete(const QString &filename);
|
||||
bool vcsMove(const QString &from, const QString &to);
|
||||
bool vcsCreateRepository(const QString &directory);
|
||||
bool isConfigured() const override;
|
||||
bool supportsOperation(Operation operation) const override;
|
||||
bool vcsOpen(const QString &fileName) override;
|
||||
bool vcsAdd(const QString &fileName) override;
|
||||
bool vcsDelete(const QString &filename) override;
|
||||
bool vcsMove(const QString &from, const QString &to) override;
|
||||
bool vcsCreateRepository(const QString &directory) override;
|
||||
|
||||
bool vcsAnnotate(const QString &file, int line);
|
||||
bool vcsAnnotate(const QString &file, int line) override;
|
||||
|
||||
void emitRepositoryChanged(const QString &);
|
||||
void emitFilesChanged(const QStringList &);
|
||||
|
||||
Reference in New Issue
Block a user