#ifndef __IMAGELISTITEM_DVDSWITCH_H #define __IMAGELISTITEM_DVDSWITCH_H #include #include #include "helpers.h" class cImageListItem : public cListObject { private: char *LName; char *SName; eFileInfo fType; char *Value; bool HideExt; char *SString; void MakeSetupString(void) { FREENULL(SString); if(0 < asprintf(&SString, "%s|%s|%i|%s|%i", LName, SName, (int)fType, Value, HideExt)) { dsyslog("dvdswitch: ...%s", SString); } }; public: cImageListItem(const char *lname, const char *sname, eFileInfo type,const char *value, bool hide); ~cImageListItem(void); void Edit(const char *lname,const char *shortname, eFileInfo type,const char *value, bool hide); char *GetLName(void) { return LName; }; char *GetSName(void) { return SName; }; eFileInfo GetFType(void) { return fType; }; char *GetValue(void) { return Value; }; bool IsHide(void) { return HideExt; }; char *SaveString(void) { return SString; }; }; #endif // __IMAGELISTITEM_DVDSWITCH_H