diff --git a/Makefile b/Makefile index d2d77aa..04242b8 100644 --- a/Makefile +++ b/Makefile @@ -65,6 +65,7 @@ OBJS = $(PLUGIN).o \ displayreplay.o \ displaytracks.o \ displayvolume.o \ + displayplugin.o \ libcore/pixmapcontainer.o \ libcore/fontmanager.o \ libcore/imagecache.o \ diff --git a/designer.h b/designer.h index abb63bc..5c51ebd 100644 --- a/designer.h +++ b/designer.h @@ -10,6 +10,7 @@ #include "displayvolume.h" #include "displaytracks.h" #include "displaymessage.h" +#include "displayplugin.h" #include class cSkinDesigner : public cSkin { diff --git a/displaymenu.c b/displaymenu.c index 2d922cd..d64e920 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -19,6 +19,7 @@ cSDDisplayMenu::cSDDisplayMenu(cTemplate *menuTemplate) { doOutput = false; return; } + esyslog("skindesigner: menu opened"); } cSDDisplayMenu::~cSDDisplayMenu() { @@ -26,6 +27,7 @@ cSDDisplayMenu::~cSDDisplayMenu() { delete rootView; if (textAreaFont) delete textAreaFont; + esyslog("skindesigner: menu closed"); } void cSDDisplayMenu::Scroll(bool Up, bool Page) { @@ -184,6 +186,7 @@ bool cSDDisplayMenu::SetItemPlugin(map *stringTokens, mapGetListView(); diff --git a/displayplugin.c b/displayplugin.c new file mode 100644 index 0000000..c8661b9 --- /dev/null +++ b/displayplugin.c @@ -0,0 +1,7 @@ +#include "displayplugin.h" + +cDisplayPlugin::cDisplayPlugin(cTemplate *menuTemplate) { +} + +cDisplayPlugin::~cDisplayPlugin() { +} \ No newline at end of file diff --git a/displayplugin.h b/displayplugin.h new file mode 100644 index 0000000..bad6759 --- /dev/null +++ b/displayplugin.h @@ -0,0 +1,13 @@ +#ifndef __DISPLAYPLUGIN_H +#define __DISPLAYPLUGIN_H + +#include "libtemplate/template.h" + +class cDisplayPlugin { +private: +public: + cDisplayPlugin(cTemplate *pluginTemplate); + virtual ~cDisplayPlugin(); +}; + +#endif //__DISPLAYPLUGIN_H diff --git a/libtemplate/xmlparser.c b/libtemplate/xmlparser.c index 9e095a4..8df22e8 100644 --- a/libtemplate/xmlparser.c +++ b/libtemplate/xmlparser.c @@ -9,6 +9,7 @@ void SkinDesignerXMLErrorHandler (void * userData, xmlErrorPtr error) { } cXmlParser::cXmlParser(void) { + view = NULL; doc = NULL; root = NULL; ctxt = NULL; diff --git a/services.h b/services.h index 3c477b2..203e715 100644 --- a/services.h +++ b/services.h @@ -35,4 +35,33 @@ public: //out cSDDisplayMenu *displayMenu; }; + +// Data structure for service "RegisterStandalonePlugin" +/* +class RegisterStandalonePlugin { +public: + RegisterStandalonePlugin(void) { + name = ""; + rootView = ""; + }; + void SetMenu(int key, string templateName) { + menus.insert(pair(key, templateName)); + } +// in + string name; //name of plugin + string rootView; //name of plugin + map< int, string > menus; //menus as key -> templatename hashmap +//out +}; +*/ +// Data structure for service "GetDisplayPlugin" +class GetDisplayPlugin { +public: + GetDisplayPlugin(void) { + displayPlugin = NULL; + }; +// in +//out + cDisplayPlugin *displayPlugin; +}; #endif //__SKINDESIGNERSERVICES_H \ No newline at end of file