mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +01:00
798ebc188d
*Corrected Screensaver appearance on startup after 30sec of unconnected WiiMote *Complete rewrite of theme downloader. (Downloading themes is not working currently because Deak Phreak changed something on wii.spiffy360.com. He said it's going to be changed back soon) *Added possibility to load theme images from a folder with the same name as the .them file. The "Image-Folder: Example\n" from the .them file is prioritized. *Updated some language files. (Translators please redownload the files from SVN. Many files had a lot of errors in them)
52 lines
1.5 KiB
C++
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 u8 * xmlfile);
|
|
std::vector<Theme_Info> ThemesList;
|
|
};
|
|
|
|
#endif
|