diff options
Diffstat (limited to 'scraper/thetvdbscraper/tvdbmirrors.h')
-rw-r--r-- | scraper/thetvdbscraper/tvdbmirrors.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/scraper/thetvdbscraper/tvdbmirrors.h b/scraper/thetvdbscraper/tvdbmirrors.h new file mode 100644 index 0000000..cf7dc62 --- /dev/null +++ b/scraper/thetvdbscraper/tvdbmirrors.h @@ -0,0 +1,32 @@ +#ifndef __TVSCRAPER_TVDBMIRRORS_H +#define __TVSCRAPER_TVDBMIRRORS_H + +#include <iostream> +#include <string> +#include <sstream> +#include <vector> +#include <libxml/parser.h> +#include <libxml/tree.h> + +using namespace std; + +// --- cTVDBMirrors ------------------------------------------------------------- + +class cTVDBMirrors { +private: + vector<string> xmlmirrors; + vector<string> bannermirrors; + vector<string> zipmirrors; + bool ReadEntry(xmlDoc *doc, xmlNode *node); + bool CreateMirror(string path, int typemask); +public: + cTVDBMirrors(void); + virtual ~cTVDBMirrors(void); + bool ParseXML(string xml); + string GetMirrorXML(void); + string GetMirrorBanner(void); + string GetMirrorZip(void); +}; + + +#endif //__TVSCRAPER_TVDBMIRRORS_H |