1
0

skininfo.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _SKININFO_H
  2. #define _SKININFO_H
  3. #include "../xml/obj_xml.h"
  4. #include "../xml/ifc_xmlreadercallbacki.h"
  5. #include <bfc/string/StringW.h>
  6. class SkinInfoBlock {
  7. public:
  8. SkinInfoBlock(const wchar_t *name) : name(name),fullname(name) { }
  9. const wchar_t *getName() { return name; }
  10. const wchar_t *getParentSkin() { return parentskin; }
  11. const wchar_t *getFullName() { return fullname; }
  12. const wchar_t *getVersion() { return version; }
  13. const wchar_t *getComment() { return comment; }
  14. const wchar_t *getAuthor() { return author; }
  15. const wchar_t *getEmail() { return email; }
  16. const wchar_t *getHomepage() { return homepage; }
  17. const wchar_t *getScreenshot() { return screenshot; }
  18. protected:
  19. StringW name;
  20. StringW walversion;
  21. StringW parentskin;
  22. StringW fullname;
  23. StringW version;
  24. StringW comment;
  25. StringW author;
  26. StringW email;
  27. StringW homepage;
  28. StringW screenshot;
  29. };
  30. class SkinInfosXmlReader : public SkinInfoBlock, public ifc_xmlreadercallbackI
  31. {
  32. public:
  33. SkinInfosXmlReader(const wchar_t *skinname);
  34. void xmlReaderOnStartElementCallback(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params);
  35. void xmlReaderOnCharacterDataCallback(const wchar_t *xmlpath, const wchar_t *xmltag, const wchar_t *s);
  36. };
  37. #endif