summaryrefslogtreecommitdiff
path: root/libcore/skinrepo.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-07-11 13:28:19 +0200
committerlouis <louis.braun@gmx.de>2015-07-11 13:28:19 +0200
commitbffafedbd3474901f005b43e3ddf37eef7752e9f (patch)
tree384063b2413fd5a349b6d2a0358904e8f1e35c10 /libcore/skinrepo.h
parent9611291e38d29459201ab13d090be87c0ad82928 (diff)
downloadvdr-plugin-skindesigner-bffafedbd3474901f005b43e3ddf37eef7752e9f.tar.gz
vdr-plugin-skindesigner-bffafedbd3474901f005b43e3ddf37eef7752e9f.tar.bz2
changed skinrepository from static file to github repository
Diffstat (limited to 'libcore/skinrepo.h')
-rw-r--r--libcore/skinrepo.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/libcore/skinrepo.h b/libcore/skinrepo.h
index 9466a2a..d4cc88f 100644
--- a/libcore/skinrepo.h
+++ b/libcore/skinrepo.h
@@ -5,9 +5,7 @@
#include <vector>
#include <map>
#include <set>
-#include <libxml/parser.h>
-#include <libxml/tree.h>
-#include <libxml/xmlerror.h>
+#include "../libcore/libxmlwrapper.h"
#include <vdr/plugin.h>
using namespace std;
@@ -55,6 +53,7 @@ public:
void SetSpecialFont(string font) { specialFonts.push_back(font); };
void SetSupportedPlugin(string plugin) { supportedPlugins.push_back(plugin); };
void SetScreenshot(string desc, string url) { screenshots.push_back(pair<string, string>(desc, url)); };
+ bool Valid(void);
eRepoType Type(void) { return repoType; };
string Name(void) { return name; };
string Author(void) { return author; };
@@ -72,16 +71,19 @@ public:
// --- cSkinRepos -------------------------------------------------------------
-class cSkinRepos {
+class cSkinRepos : public cLibXMLWrapper {
private:
- string repoFile;
- xmlDocPtr doc;
+ string skinRepoUrl;
+ string repoFolder;
vector<cSkinRepo*> repos;
vector<cSkinRepo*>::iterator repoIt;
- void ReadRepository(xmlNodePtr node);
+ bool ParseRepository(void);
+ void InitRepoGit(string path);
+ void PullRepoGit(string path);
public:
cSkinRepos(void);
virtual ~cSkinRepos(void);
+ void Init(string path);
void Read(string path);
int Count(void) { return repos.size(); };
cSkinRepo *GetRepo(string name);