00001 #ifndef SKINCONTROLLER_HPP
00002 #define SKINCONTROLLER_HPP
00003
00004 #define MAX_SKINS 10
00005
00006
00007
00008
00009 #include <mxml.h>
00010 #include <fat.h>
00011 #include <stdio.h>
00012 #include <stdlib.h>
00013 #include <string.h>
00014 #include <unistd.h>
00015 #include "skin.h"
00016
00017
00018 class SkinController
00019 {
00020 public:
00021 SkinController();
00022 SkinController(char* skinsXmlFile);
00023 ~SkinController();
00024 int getNumberSkins(){return numberSkins;};
00025 Skin getSkin(int skinNo);
00026
00027 private:
00028 char* skins_desc[MAX_SKINS];
00029 char* skins_code[MAX_SKINS];
00030 int numberSkins;
00031 Skin skins[MAX_SKINS];
00032
00033 void initialiseSkinsArray();
00034 void loadSkinsFile();
00035 char * skinsFile;
00036 const char* getSkinsFileName(){return skinsFile;};
00037 };
00038
00039 #endif