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

Last change on this file since 26912 was 24056, checked in by nit, 10 years ago

[titan] add new plugindir system

File size: 926 bytes
RevLine 
[16909]1#include "../titan/struct.h"
2#include "../titan/debug.h"
3#include "../titan/header.h"
4#include "filemanager.h"
5
6char pluginname[] = "File Manager";
7char plugindesc[] = "File Manager";
8char pluginpic[] = "%pluginpath%/filemanager/plugin.png";
9
10int pluginaktiv = 0;
[17097]11int pluginversion = PLUGINVERSION;
[16909]12struct skin* pluginmenu = NULL;
13int pluginflag = 0;
14
15//wird beim laden ausgefuehrt
16void 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
29void 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
37void 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.