summaryrefslogtreecommitdiff
path: root/src/plugins/cvs
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2011-04-20 15:46:48 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2011-04-20 15:50:29 +0200
commit6fb754e6460134081f5c6113938244707aa0a5eb (patch)
tree57deca86cc2acd0b084d3b322b0a38fa24c690fb /src/plugins/cvs
parent0b1cc0f4158ddb2267a1cc7e527af43a467fe981 (diff)
downloadqt-creator-6fb754e6460134081f5c6113938244707aa0a5eb.tar.gz
VCS: Add id to IVersionControl
... and all derived classes
Diffstat (limited to 'src/plugins/cvs')
-rw-r--r--src/plugins/cvs/cvscontrol.cpp7
-rw-r--r--src/plugins/cvs/cvscontrol.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/cvs/cvscontrol.cpp b/src/plugins/cvs/cvscontrol.cpp
index 237ccb09b4..d03c96d3b5 100644
--- a/src/plugins/cvs/cvscontrol.cpp
+++ b/src/plugins/cvs/cvscontrol.cpp
@@ -34,6 +34,8 @@
#include "cvsplugin.h"
#include "cvssettings.h"
+#include <vcsbase/vcsbaseconstants.h>
+
#include <QtCore/QFileInfo>
using namespace CVS;
@@ -49,6 +51,11 @@ QString CVSControl::displayName() const
return QLatin1String("cvs");
}
+QString CVSControl::id() const
+{
+ return QLatin1String(VCSBase::Constants::VCS_ID_CVS);
+}
+
bool CVSControl::isConfigured() const
{
const QString binary = m_plugin->settings().cvsCommand;
diff --git a/src/plugins/cvs/cvscontrol.h b/src/plugins/cvs/cvscontrol.h
index 52876649ba..ddc6e9aba0 100644
--- a/src/plugins/cvs/cvscontrol.h
+++ b/src/plugins/cvs/cvscontrol.h
@@ -47,6 +47,7 @@ class CVSControl : public Core::IVersionControl
public:
explicit CVSControl(CVSPlugin *plugin);
QString displayName() const;
+ QString id() const;
bool managesDirectory(const QString &directory, QString *topLevel = 0) const;