Line | |
---|
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; |
---|
11 | int pluginversion = PLUGINVERSION; |
---|
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 | |
---|
21 | tmpstr = ostrcat(getconfig("pluginpath", NULL), "/filemanager/skin.xml", 0, 0); |
---|
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 | { |
---|
39 | screenfilemanager(); |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.