From 4d7700aecedf475038d57e10f45ab2dd4bcf806f Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 12 Feb 2015 18:50:58 +0100 Subject: plugin interface --- libtemplate/template.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libtemplate/template.h') diff --git a/libtemplate/template.h b/libtemplate/template.h index 2c1cfb2..79a824b 100644 --- a/libtemplate/template.h +++ b/libtemplate/template.h @@ -26,7 +26,8 @@ enum eViewType { vtDisplayReplay, vtDisplayVolume, vtDisplayAudioTracks, - vtDisplayMessage + vtDisplayMessage, + vtDisplayPlugin }; class cTemplate { @@ -37,13 +38,13 @@ private: protected: cGlobals *globals; cTemplateView *rootView; - void CreateView(void); + void CreateView(string pluginName, int viewID); void GetUsedFonts(cTemplateView *view, vector< pair > &usedFonts); void CacheImages(cTemplateView *view); public: - cTemplate(eViewType viewType); + cTemplate(eViewType viewType, string pluginName = "", int viewID = -1); virtual ~cTemplate(void); - bool ReadFromXML(void); + bool ReadFromXML(string xmlfile = ""); void SetGlobals(cGlobals *globals); cTemplateView *GetRootView(void) { return rootView; }; void Translate(void); -- cgit v1.2.3