SkinList.h
上传用户:lusi_8715
上传日期:2007-01-08
资源大小:199k
文件大小:2k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /**************************************************************************************
  2.  *                                                                                    *
  3.  * This application contains code from OpenDivX and is released as a "Larger Work"    *
  4.  * under that license. Consistant with that license, this application is released     *
  5.  * under the GNU General Public License.                                              *
  6.  *                                                                                    *
  7.  * The OpenDivX license can be found at: http://www.projectmayo.com/opendivx/docs.php *
  8.  * The GPL can be found at: http://www.gnu.org/copyleft/gpl.html                      *
  9.  *                                                                                    *
  10.  * Copyright (c) 2001 - Project Mayo                                                  *
  11.  *                                                                                    *
  12.  * Authors: Damien Chavarria <adrc at projectmayo.com>                                *
  13.  *                                                                                    *
  14.  **************************************************************************************/
  15. #ifndef _SKINLIST_H
  16. #define _SKINLIST_H
  17. #include "debug.h"
  18. /*
  19.  * Skin Info Class
  20.  */
  21. class SkinInfo {
  22. public:
  23. char *directory;
  24. char *name;
  25. char *text;
  26. /*
  27.  * Creation and Data functions
  28.  */
  29. SkinInfo(char *directory);
  30. ~SkinInfo();
  31. };
  32. /*
  33.  * skinlist type
  34.  */
  35. typedef struct _skinlist_t {
  36. SkinInfo           *info;
  37. struct _skinlist_t *next;
  38. } skinlist_t;
  39. /*
  40.  * SkinList Class
  41.  */
  42. class SkinList {
  43. public:
  44. int          totalSkins;
  45. skinlist_t  *skins;
  46. char        *skinsDir;
  47. void Add(SkinInfo *skinInfo);
  48. SkinList();
  49. ~SkinList();
  50. int Scan();
  51. int Reset();
  52. int SetDir(char *dir);
  53. int       getNumberOfSkins();
  54. SkinInfo *getSkinInfo(int position);
  55. };
  56. #endif // _SKINLIST_H