[12607] | 1 | #include "../titan/struct.h" |
---|
| 2 | #include "../titan/debug.h" |
---|
| 3 | #include "../titan/header.h" |
---|
| 4 | #include "imdb.h" |
---|
| 5 | |
---|
| 6 | char pluginname[] = "Imdb"; |
---|
| 7 | char plugindesc[] = "Extensions"; |
---|
| 8 | char pluginpic[] = "%pluginpath%/panel/plugin.png"; |
---|
| 9 | |
---|
| 10 | int pluginaktiv = 0; |
---|
| 11 | struct skin* pluginmenu = NULL; |
---|
[12615] | 12 | int pluginflag = 0; //don't show the plugin in pluginmanager |
---|
[12607] | 13 | |
---|
| 14 | //wird beim laden ausgefuehrt |
---|
| 15 | void init(void) |
---|
| 16 | { |
---|
| 17 | pluginaktiv = 1; |
---|
| 18 | char* tmpstr = NULL; |
---|
| 19 | struct skin* mainmenu = getscreen("mainmenu"); |
---|
| 20 | struct skin* listbox = getscreennode(mainmenu, "listbox"); |
---|
| 21 | struct skin* child = NULL; |
---|
| 22 | |
---|
| 23 | if(mainmenu == NULL || listbox == NULL) |
---|
| 24 | return; |
---|
| 25 | |
---|
| 26 | child = getscreennode(mainmenu, "imdb"); |
---|
| 27 | if(child != NULL) |
---|
| 28 | changeinput(child, "start"); |
---|
| 29 | |
---|
| 30 | pluginmenu = child; |
---|
| 31 | tmpstr = ostrcat(getconfig("pluginpath", NULL), "/imdb/skin.xml", 0, 0); |
---|
[13646] | 32 | readscreen(tmpstr, 201, 1); |
---|
[12607] | 33 | free(tmpstr); tmpstr = NULL; |
---|
| 34 | debug(10, "Panel Plugin loadet !!!"); |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | //wird beim entladen ausgefuehrt |
---|
| 38 | void deinit(void) |
---|
| 39 | { |
---|
[13646] | 40 | delmarkedscreen(201); |
---|
[12607] | 41 | pluginaktiv = 0; |
---|
| 42 | debug(10, "Imdb Plugin removed !!!"); |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
| 47 | void start(void) |
---|
| 48 | { |
---|
| 49 | imdb(); |
---|
| 50 | } |
---|