-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtfscontrol.h
54 lines (40 loc) · 1.55 KB
/
tfscontrol.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef TFSCONTROL_H
#define TFSCONTROL_H
#include <coreplugin/iversioncontrol.h>
namespace Tfs {
namespace Internal {
class TfsClient;
class TfsControl : public Core::IVersionControl
{
Q_OBJECT
public:
explicit TfsControl(TfsClient *client);
QString displayName() const;
Core::Id id() const;
bool managesDirectory(const QString &directory, QString *topLevel = 0) const;
bool managesFile(const QString &workingDirectory, const QString &fileName) const;
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 vcsCheckout(const QString &directory, const QByteArray &url);
QString vcsGetRepositoryURL(const QString &directory);
QString vcsCreateSnapshot(const QString &topLevel);
QStringList vcsSnapshots(const QString &topLevel);
bool vcsRestoreSnapshot(const QString &topLevel, const QString &name);
bool vcsRemoveSnapshot(const QString &topLevel, const QString &name);
bool vcsAnnotate(const QString &file, int line);
QStringList listRemoteDirectory(QString path);
public slots:
void changed(const QVariant&);
void emitConfigurationChanged();
private:
TfsClient *tfsClient;
};
}
}
#endif // TFSCONTROL_H