source: titan/plugins/networkbrowser/networkbrowser.c @ 15268

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

[titan] update netwerkbrowser

File size: 1.3 KB
Line 
1#include "../titan/struct.h"
2#include "../titan/debug.h"
3#include "../titan/header.h"
4#include "netlib/nbtscan.h"
5#include "netlib/showmount.h"
6#include "netlib/smbinfo.h"
7#include "networkbrowser.h"
8
9char pluginname[] = "Networkbrowser";
10char plugindesc[] = "Networkbrowser";
11char pluginpic[] = "%pluginpath%/networkbrowser/plugin.png";
12
13int pluginaktiv = 0;
14struct skin* pluginmenu = NULL;
15int pluginflag = 1; //don't show the plugin in pluginmanager
16
17//wird beim laden ausgefuehrt
18void init(void)
19{
20        pluginaktiv = 1;
21        char* tmpstr = NULL;
22        struct skin* networkmenu = getscreen("networkmenu");
23        struct skin* listbox = getscreennode(networkmenu, "listbox");
24        struct skin* child = NULL;
25
26        if(networkmenu == NULL || listbox == NULL)
27                return;
28
29        child = getscreennode(networkmenu, "networkbrowser");
30        if(child != NULL)
31                changeinput(child, "start");
32        pluginmenu = child;
33
34        tmpstr = ostrcat(getconfig("pluginpath", NULL), "/networkbrowser/skin.xml", 0, 0);
35        readscreen(tmpstr, 100, 1);
36        free(tmpstr); tmpstr = NULL;
37
38        debug(70, "Networkbrowser Plugin loadet !!!");
39}
40
41//wird beim entladen ausgefuehrt
42void deinit(void)
43{
44        delmarkedscreen(100);
45        pluginaktiv = 0;
46        debug(70, "Networkbrowser Plugin removed !!!");
47}
48
49
50//wird in der Pluginverwaltung bzw Menue ausfeguehrt
51void start(void)
52{
53        screennetworkbrowser();
54}
Note: See TracBrowser for help on using the repository browser.