usbloadergx/source/themes/Theme_List.h
dimok321 53574d6bc5 *threw out mxml because it is pissed on every little crap that is wrong in the xml and stops parsing the whole xml. Changed everything to use official TinyXML now (nice C++ classes). A lot of problems with categories and probably Wiinnertag now should be solved.
*fixed Theme Downloader to actually list the themes (wonder why no one reported that its broken)
*fixed freeze on 0 games and gameGrid
*added a "Sneek Video Patch" mode. According to WiiPower it can come in handy for some games. (Thanks to WiiPower)
*made showing categories on game details screen limited by the space available
*removed alt dol prompt on "default" setting for d2x users
*Added a Block SD Reload option
2011-06-25 19:50:57 +00:00

52 lines
1.5 KiB
C++

/****************************************************************************
* Theme_List Class
* for USB Loader GX
* by dimok
***************************************************************************/
#ifndef ___THEMELIST_H_
#define ___THEMELIST_H_
#include <vector>
#include <string>
#include "network/networkops.h"
#include "network/http.h"
typedef struct _theme_info
{
std::string themetitle;
std::string author;
std::string imagelink;
std::string downloadlink;
u8 rating;
} Theme_Info;
class Theme_List
{
public:
//!Constructor
//!\param url from where to get the list of links
Theme_List(const char *url);
//!Destructor
~Theme_List();
//! Get the a theme title
//!\param list index
const char * GetThemeTitle(int index) const;
//! Get the author of the theme
//!\param list index
const char * GetThemeAuthor(int index) const;
//! Get the author of the theme
//!\param list index
const char * GetImageLink(int index) const;
//! Get the download link of the theme
//!\param list index
const char * GetDownloadLink(int index) const;
//! Get the number of links counted
int GetThemeCount() const { return ThemesList.size(); };
protected:
//!Get Themes into a struct from the XML file amount
bool ParseXML(const char * xmlfile);
std::vector<Theme_Info> ThemesList;
};
#endif