Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/api/locales/LocalesInfo.h

30 lines
782 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#ifndef NULLSOFT_WASABI_LOCALESINFO_H
#define NULLSOFT_WASABI_LOCALESINFO_H
#include "../xml/ifc_xmlreadercallbackI.h"
#include <bfc/string/StringW.h>
class obj_xml;
class LocaleItem
{
public:
LocaleItem(const wchar_t *name) : name(name), language(name) { };
const wchar_t *getName() { return name; }
const wchar_t *getLanguage() { return language; }
const wchar_t *getAuthor() { return author; }
protected:
StringW name;
StringW language;
StringW author;
};
class LocalesInfosXmlReader : public LocaleItem, public ifc_xmlreadercallbackI // XmlReaderCallbackI
{
public:
LocalesInfosXmlReader(const wchar_t *skinname);
void xmlReaderOnStartElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
private:
obj_xml *parser;
};
#endif