www.pudn.com > MyPlayerbylqh.rar > SkinList.h


/************************************************************************************** 
 *                                                                                    * 
 *                                                                                    * 
 **************************************************************************************/ 
 
#ifndef _SKINLIST_H 
#define _SKINLIST_H 
 
/* 
 * 外壳信息类 
 */ 
 
 
class SkinInfo { 
 
public: 
 
	char *directory; 
	char *name; 
	char *text; 
 
	SkinInfo(char *directory); 
	~SkinInfo(); 
}; 
 
/* 
 * 外壳链表节点的类型 
 */ 
 
typedef struct _skinlist_t { 
 
	SkinInfo           *info; 
	struct _skinlist_t *next; 
 
} skinlist_t; 
 
/* 
 * 外壳链表类 
 */ 
 
class SkinList { 
 
public: 
 
	int          totalSkins; 
	skinlist_t  *skins; 
	char        *skinsDir; 
 
	void Add(SkinInfo *skinInfo); 
 
	SkinList(); 
	~SkinList(); 
 
	int Scan(); 
	int Reset(); 
 
	int SetDir(char *dir); 
 
	int       getNumberOfSkins(); 
	SkinInfo *getSkinInfo(int position); 
}; 
 
#endif