Rev | Line | |
---|
[16909] | 1 | #include "../titan/struct.h" |
---|
| 2 | #include "../titan/debug.h" |
---|
| 3 | #include "../titan/header.h" |
---|
| 4 | #include "filemanager.h" |
---|
| 5 | |
---|
| 6 | char pluginname[] = "File Manager"; |
---|
| 7 | char plugindesc[] = "File Manager"; |
---|
| 8 | char pluginpic[] = "%pluginpath%/filemanager/plugin.png"; |
---|
| 9 | |
---|
| 10 | int pluginaktiv = 0; |
---|
[17097] | 11 | int pluginversion = PLUGINVERSION; |
---|
[16909] | 12 | struct skin* pluginmenu = NULL; |
---|
| 13 | int pluginflag = 0; |
---|
| 14 | |
---|
| 15 | //wird beim laden ausgefuehrt |
---|
| 16 | void init(void) |
---|
| 17 | { |
---|
| 18 | pluginaktiv = 1; |
---|
| 19 | char* tmpstr = NULL; |
---|
| 20 | |
---|
[24056] | 21 | tmpstr = createpluginpath("/filemanager/skin.xml", 0); |
---|
[16909] | 22 | readscreen(tmpstr, 240, 1); |
---|
| 23 | free(tmpstr); tmpstr = NULL; |
---|
| 24 | |
---|
| 25 | debug(10, "File Manager Plugin loadet !!!"); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | //wird beim entladen ausgefuehrt |
---|
| 29 | void deinit(void) |
---|
| 30 | { |
---|
| 31 | delmarkedscreen(240); |
---|
| 32 | pluginaktiv = 0; |
---|
| 33 | debug(10, "File Manager Plugin removed !!!"); |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | //wird in der Pluginverwaltung bzw Menue ausfeguehrt |
---|
| 37 | void start(void) |
---|
| 38 | { |
---|
[22562] | 39 | status.hangtime = 99999; |
---|
[16909] | 40 | screenfilemanager(); |
---|
[22562] | 41 | status.hangtime = getconfigint("hangtime", NULL); |
---|
[16909] | 42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.