1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#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)
{
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
|