1 | #ifndef ABOUT_H |
---|
2 | #define ABOUT_H |
---|
3 | |
---|
4 | int screenabout(void) |
---|
5 | { |
---|
6 | char *text = NULL, *tmpstr = NULL; |
---|
7 | struct dvbdev* dvbnode = dvbdev; |
---|
8 | |
---|
9 | text = ostrcat(_("Image"), ": ", 0, 0); |
---|
10 | text = ostrcat(text, PROGNAME, 1, 0); |
---|
11 | text = ostrcat(text, "\n", 1, 0); |
---|
12 | text = ostrcat(text, _("Version"), 1, 0); |
---|
13 | text = ostrcat(text, ": ", 1, 0); |
---|
14 | text = ostrcat(text, OVERSION, 1, 0); |
---|
15 | text = ostrcat(text, "\n", 1, 0); |
---|
16 | text = ostrcat(text, _("Copyright"), 1, 0); |
---|
17 | text = ostrcat(text, ": ", 1, 0); |
---|
18 | text = ostrcat(text, COPYRIGHT, 1, 0); |
---|
19 | text = ostrcat(text, "\n\n", 1, 0); |
---|
20 | |
---|
21 | while(dvbnode != NULL) |
---|
22 | { |
---|
23 | if(dvbnode->type == FRONTENDDEV && dvbnode->feinfo != NULL) |
---|
24 | { |
---|
25 | text = ostrcat(text, _("Tuner"), 1, 0); |
---|
26 | text = ostrcat(text, ": ", 1, 0); |
---|
27 | if(dvbnode->feinfo->name != NULL) |
---|
28 | text = ostrcat(text, dvbnode->feinfo->name, 1, 0); |
---|
29 | else |
---|
30 | text = ostrcat(text, _("unknown"), 1, 0); |
---|
31 | text = ostrcat(text, "\n", 1, 0); |
---|
32 | text = ostrcat(text, _("Tunertype"), 1, 0); |
---|
33 | text = ostrcat(text, ": ", 1, 0); |
---|
34 | |
---|
35 | tmpstr = fegettypestr(dvbnode); |
---|
36 | text = ostrcat(text, tmpstr, 1, 1); |
---|
37 | text = ostrcat(text, "\n\n", 1, 0); |
---|
38 | } |
---|
39 | dvbnode = dvbnode->next; |
---|
40 | } |
---|
41 | |
---|
42 | char* flog = readfiletomem("/tmp/.firmware.log", 0); |
---|
43 | text = ostrcat(text, flog, 1, 1); |
---|
44 | |
---|
45 | textbox(_("System-Info"), text, _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 600, 0, 0); |
---|
46 | free(text); |
---|
47 | |
---|
48 | return 0; |
---|
49 | } |
---|
50 | |
---|
51 | #endif |
---|