The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | #ifndef PERFORCE_H |
| 2 | #define PERFORCE_H |
| 3 | |
| 4 | #include <string> |
| 5 | #include <vector> |
| 6 | |
| 7 | using namespace std; |
| 8 | |
| 9 | class Perforce |
| 10 | { |
| 11 | public: |
| 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 |