summaryrefslogtreecommitdiff
path: root/imagelist-item.h
blob: 3ff10cf7255d185fe70fb852af5d6e25986b9e56 (plain)
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
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)
    {
      dsyslog("Neuer SetupString");
      FREENULL(SString);
      asprintf(&SString, "%s|%s|%i|%s|%i", LName, SName, (int)fType, Value, HideExt);
      dsyslog("...%s", SString);
    };

    void debug(void);
  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