1 | #ifndef SETTINGS_BLUEBUTTON_H |
---|
2 | #define SETTINGS_BLUEBUTTON_H |
---|
3 | |
---|
4 | void screensettings_bluebutton() |
---|
5 | { |
---|
6 | char* skintitle = _("Blue Key Action - Setup"); |
---|
7 | struct skin* plugin = getscreen("plugin"); |
---|
8 | struct skin* child = plugin->child; |
---|
9 | char* tmpstr = NULL; |
---|
10 | struct menulist* mlist = NULL, *mbox = NULL; |
---|
11 | |
---|
12 | addmenulist(&mlist, "TV / Radio Switch", _("TV / Radio Switch"), NULL, 0, 0); |
---|
13 | if(checkemu() == 1) |
---|
14 | addmenulist(&mlist, "Softcam Panel", _("Softcam Panel"), NULL, 0, 0); |
---|
15 | addmenulist(&mlist, "Extensions List", _("Extensions List"), NULL, 0, 0); |
---|
16 | addmenulist(&mlist, "Multi EPG", _("Multi EPG"), NULL, 0, 0); |
---|
17 | addmenulist(&mlist, "Graphic Multi EPG", _("Graphic Multi EPG"), NULL, 0, 0); |
---|
18 | addmenulist(&mlist, "Sleep Timer", _("Sleep Timer"), NULL, 0, 0); |
---|
19 | addmenulist(&mlist, "Child Protection", _("Child Protection"), NULL, 0, 0); |
---|
20 | addmenulist(&mlist, "Subchannel", _("Subchannel"), NULL, 0, 0); |
---|
21 | addmenulist(&mlist, "Downloads", _("Downloads"), NULL, 0, 0); |
---|
22 | |
---|
23 | while(child != NULL) |
---|
24 | { |
---|
25 | if(child->del == PLUGINDELMARK && (status.security == 1 || (status.security == 0 && checkpluginskip(child->name) == 0))) |
---|
26 | addmenulist(&mlist, child->name, _(child->name), child->pic, 0, 0); |
---|
27 | child = child->next; |
---|
28 | } |
---|
29 | |
---|
30 | char* bluekey = getconfig("bluekey", NULL); |
---|
31 | debug(60, "Bluekey: %s (default)", bluekey); |
---|
32 | |
---|
33 | setmenulistdefault(mlist, bluekey); |
---|
34 | mbox = menulistbox(mlist, NULL, skintitle, _("Choose your plugin / menu item from the following list and show it so the blue button"), NULL, NULL, 1, 0); |
---|
35 | |
---|
36 | if(mbox == NULL) |
---|
37 | { |
---|
38 | free(tmpstr); tmpstr = NULL; |
---|
39 | return; |
---|
40 | } |
---|
41 | debug(60, "(new) Bluekey=%s", mbox->name); |
---|
42 | |
---|
43 | if(ostrcmp(mbox->name, "TV / Radio Switch") == 0) |
---|
44 | delconfig("bluekey"); |
---|
45 | else |
---|
46 | addconfig("bluekey", mbox->name); |
---|
47 | |
---|
48 | freemenulist(mlist, 1); mlist = NULL; |
---|
49 | free(tmpstr); tmpstr = NULL; |
---|
50 | return; |
---|
51 | } |
---|
52 | |
---|
53 | #endif |
---|