1 | #ifndef AAFPANEL_SETTINGS_BLUEBUTTON_H |
---|
2 | #define AAFPANEL_SETTINGS_BLUEBUTTON_H |
---|
3 | |
---|
4 | void screenaafpanel_settings_bluebutton() |
---|
5 | { |
---|
6 | debug(1000, "in"); |
---|
7 | char* skintitle = "Blue Key Action - Setup"; |
---|
8 | struct skin* plugin = getscreen("plugin"); |
---|
9 | struct skin* child = plugin->child; |
---|
10 | char* tmpstr = NULL; |
---|
11 | tmpstr = ostrcat(tmpstr, "Auto Resolution (default)\n", 1, 0); |
---|
12 | if(checkemu() == 1) |
---|
13 | tmpstr = ostrcat(tmpstr, "Softcam Panel\n", 1, 0); |
---|
14 | tmpstr = ostrcat(tmpstr, "Extentions List\n", 1, 0); |
---|
15 | tmpstr = ostrcat(tmpstr, "Multi EPG\n", 1, 0); |
---|
16 | tmpstr = ostrcat(tmpstr, "Graphic Multi EPG\n", 1, 0); |
---|
17 | tmpstr = ostrcat(tmpstr, "Sleep Timer\n", 1, 0); |
---|
18 | tmpstr = ostrcat(tmpstr, "Child Protection\n", 1, 0); |
---|
19 | tmpstr = ostrcat(tmpstr, "TV / Radio Switch\n", 1, 0); |
---|
20 | |
---|
21 | char* bluekey = getconfig("bluekey", NULL); |
---|
22 | |
---|
23 | while(child != NULL) |
---|
24 | { |
---|
25 | if(child->del == PLUGINDELMARK) |
---|
26 | { |
---|
27 | tmpstr = ostrcat(tmpstr, child->name, 1, 0); |
---|
28 | debug(60, "Bluekey: %s", child->name); |
---|
29 | tmpstr = ostrcat(tmpstr, "\n", 1, 0); |
---|
30 | } |
---|
31 | child = child->next; |
---|
32 | } |
---|
33 | debug(60, "Bluekey: %s (default)", bluekey); |
---|
34 | |
---|
35 | char* mlistbox = menulistbox(bluekey, tmpstr, NULL, skintitle, NULL, 1); |
---|
36 | |
---|
37 | if(mlistbox == NULL) |
---|
38 | { |
---|
39 | free(tmpstr); tmpstr = NULL; |
---|
40 | return; |
---|
41 | } |
---|
42 | debug(60, "(new) Bluekey=%s", mlistbox); |
---|
43 | |
---|
44 | if(ostrcmp(mlistbox, "Auto Resolution (default)") == 0) |
---|
45 | delconfig("bluekey"); |
---|
46 | else |
---|
47 | addconfig("bluekey", mlistbox); |
---|
48 | |
---|
49 | free(mlistbox); mlistbox = NULL; |
---|
50 | free(tmpstr); tmpstr = NULL; |
---|
51 | debug(1000, "out"); |
---|
52 | return; |
---|
53 | } |
---|
54 | |
---|
55 | #endif |
---|