summaryrefslogtreecommitdiffstats
path: root/gui/pages.hpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-07-21 22:24:39 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-07-28 15:50:59 +0200
commit780cd39e422943f7c46be84de5494ae7045e1a5e (patch)
tree0ed259ee9c6e5f2106fae19fd4013281a98f1e09 /gui/pages.hpp
parentOnly disable recovery flash if it is truly "stock" recovery (diff)
downloadandroid_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.gz
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.bz2
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.lz
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.xz
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.tar.zst
android_bootable_recovery-780cd39e422943f7c46be84de5494ae7045e1a5e.zip
Diffstat (limited to '')
-rw-r--r--gui/pages.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/pages.hpp b/gui/pages.hpp
index a9cc0c1d0..c384cf0d7 100644
--- a/gui/pages.hpp
+++ b/gui/pages.hpp
@@ -35,7 +35,7 @@ class HardwareKeyboard;
class Page
{
public:
- Page(xml_node<>* page, xml_node<>* templates = NULL);
+ Page(xml_node<>* page, std::vector<xml_node<>*> *templates = NULL);
virtual ~Page();
std::string GetName(void) { return mName; }
@@ -61,7 +61,7 @@ protected:
COLOR mBackground;
protected:
- bool ProcessNode(xml_node<>* page, xml_node<>* templates = NULL, int depth = 0);
+ bool ProcessNode(xml_node<>* page, std::vector<xml_node<>*> *templates = NULL, int depth = 0);
};
class PageSet
@@ -72,6 +72,7 @@ public:
public:
int Load(ZipArchive* package);
+ int CheckInclude(ZipArchive* package, xml_document<> *parentDoc);
Page* FindPage(std::string name);
int SetPage(std::string page);
@@ -91,7 +92,7 @@ public:
int NotifyVarChange(std::string varName, std::string value);
protected:
- int LoadPages(xml_node<>* pages, xml_node<>* templates = NULL);
+ int LoadPages(xml_node<>* pages);
int LoadVariables(xml_node<>* vars);
protected:
@@ -99,6 +100,7 @@ protected:
xml_document<> mDoc;
ResourceManager* mResources;
std::vector<Page*> mPages;
+ std::vector<xml_node<>*> templates;
Page* mCurrentPage;
Page* mOverlayPage; // This is a special case, used for "locking" the screen
};