diff options
Diffstat (limited to 'imagelist-item.h')
-rw-r--r-- | imagelist-item.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/imagelist-item.h b/imagelist-item.h new file mode 100644 index 0000000..95e986b --- /dev/null +++ b/imagelist-item.h @@ -0,0 +1,40 @@ +#ifndef __IMAGELISTITEM_DVDSWITCH_H +#define __IMAGELISTITEM_DVDSWITCH_H + +#include <vdr/tools.h> +#include <vdr/i18n.h> +#include "helpers.h" + +class cImageListItem : public cListObject +{ + private: + char *LName; + char *SName; + eFileInfo fType; + char *Value; + bool HideExt; + char *SString; + + void MakeSetupString(void) + { + DEBUG("Neuer SetupString"); + FREENULL(SString); + asprintf(&SString, "%s|%s|%i|%s|%i", LName, SName, (int)fType, Value, HideExt); + DEBUG("...%s", SString); + }; + + void Debug(void); + public: + cImageListItem(char *lname, char *sname, eFileInfo type, char *value, bool hide); + ~cImageListItem(void); + void Edit(char *lname, char *shortname, eFileInfo type, 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 |