28 #ifndef IVERSIONCONTROL_H
29 #define IVERSIONCONTROL_H
33 #include <QtCore/QObject>
34 #include <QtCore/QString>
42 enum Operation { AddOperation, DeleteOperation, OpenOperation };
50 virtual QString name()
const = 0;
52 virtual bool isEnabled()
const = 0;
57 virtual void setEnabled(
bool enabled) = 0;
63 virtual bool managesDirectory(
const QString &filename)
const = 0;
76 virtual QString findTopLevelForDirectory(
const QString &directory)
const = 0;
81 virtual bool supportsOperation(Operation operation)
const = 0;
89 virtual bool vcsOpen(
const QString &fileName) = 0;
99 virtual bool vcsAdd(
const QString &filename) = 0;
108 virtual bool vcsDelete(
const QString &filename) = 0;
111 void repositoryChanged(
const QString &repository);
112 void filesChanged(
const QStringList &files);
120 #endif // IVERSIONCONTROL_H
IVersionControl(QObject *parent=0)
virtual ~IVersionControl()