source: titan/plugins/TopfieldVFD/TopfieldVFD.c @ 26912

Last change on this file since 26912 was 19974, checked in by obi, 11 years ago

[titan] fix build

File size: 1.7 KB
Line 
1/*
2 * TopfieldVFD.c
3 *
4 *  Created on: Jul 30, 2011
5 *      Author: topfi
6 */
7
8#include "../titan/struct.h"
9#include "../titan/debug.h"
10#include "../titan/header.h"
11
12char pluginname[] = "TopfieldVFD";
13char plugindesc[] = "Topfield specific functions of VFD";
14char pluginpic[] = "%pluginpath%/TopfieldVFD/plugin.png";
15
16#include "TopfieldVFD.h"
17
18int pluginaktiv = 0;
19int pluginversion = PLUGINVERSION;
20
21struct stimerthread *TopfieldVFDstimerthread = NULL;
22
23void updateTopfieldVfd()
24{
25        updateRec(0);
26        updateProgress(0);
27        updateHDD(0);
28        updateUSB(0);
29        updateEth(0);
30        updateTimeshift(0);
31}
32
33//wird beim laden ausgefuehrt
34void init(void)
35{
36        if(checkbox("TF7700"))
37        {
38                pluginaktiv = 1;
39                debug(10, "TopfieldVFD loaded !!!");
40                TopfieldVFDstimerthread = addtimer(&updateTopfieldVfd, START, 1000, -1, NULL, NULL, NULL);
41        }
42        else
43        {
44                debug(10, "TopfieldVFD Plugin: Not a Topfield TF7700PVR, plugin not started!");
45        }
46}
47
48//wird beim entladen ausgefuehrt
49void deinit(void)
50{
51        if(checkbox("TF7700"))
52        {
53                deltimer(TopfieldVFDstimerthread, 1);
54                pluginaktiv = 0;
55                debug(10, "TopfieldVFD removed !!!");
56        }
57        else
58        {
59                debug(10, "TopfieldVFD Plugin: Not a Topfield TF7700PVR, plugin not removed!");
60        }
61}
62
63//wird in der Pluginverwaltung bzw Menue ausfefuehrt
64void start(void)
65{
66        if(checkbox("TF7700"))
67        {
68                textbox(_("Message"), _("TopfieldVFD settings dialog not implemented yet!\n\nComing soon ..."), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), '\0', 0, '\0', 0, 600, 200, 0, 0);
69        }
70        else
71        {
72                textbox(_("Message"), _("TopfieldVFD plugin not available, wrong box!"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), '\0', 0, '\0', 0, 600, 200, 0, 0);
73        }
74}
Note: See TracBrowser for help on using the repository browser.