blob: 522797d9081266eb942def196330411eb4f57e6e [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001#ifndef PERFORCE_H
2#define PERFORCE_H
3
4#include <string>
5#include <vector>
6
7using namespace std;
8
9class Perforce
10{
11public:
12 static int RunCommand(const string& cmd, string* result, bool printOnFailure);
13 static int GetResourceFileNames(const string& version, const string& base,
14 const vector<string>& apps, vector<string>* result,
15 bool printOnFailure);
16 static int GetFile(const string& file, const string& version, string* result,
17 bool printOnFailure);
18 static string GetCurrentChange(bool printOnFailure);
19 static int EditFiles(const vector<string>& filename, bool printOnFailure);
20 static int AddFiles(const vector<string>& files, bool printOnFailure);
21 static int DeleteFiles(const vector<string>& files, bool printOnFailure);
22 static string Where(const string& depotPath, bool printOnFailure);
23};
24
25#endif // PERFORCE_H