blob: 6b210548b9121f47d77b0333ab3e67d3f93aff13 [file] [log] [blame]
Dees_Troy812660f2012-09-20 09:55:17 -04001/* OpenRecoveryScript class for TWRP
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15 * 02110-1301, USA.
16 *
17 * The code was written from scratch by Dees_Troy dees_troy at
18 * yahoo
19 *
20 * Copyright (c) 2012
21 */
22
23#ifndef _OPENRECOVERYSCRIPT_HPP
24#define _OPENRECOVERYSCRIPT_HPP
25
26#include <string>
27
28using namespace std;
29
30// Partition class
31class OpenRecoveryScript
32{
33public:
34 static int check_for_script_file(); // Checks to see if the ORS file is present in /cache
35 static int run_script_file(); // Executes the commands in the ORS file
36
37private:
38 static string Locate_Zip_File(string Path, string File); // Attempts to locate the zip file in storage
39
40};
41
42#endif // _OPENRECOVERYSCRIPT_HPP