blob: cf7dc62574fa7b6b7a34ef24e64b03c6b436a41d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|