summaryrefslogtreecommitdiff
path: root/libskindesigner/skindesignerosdbase.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-03-12 17:17:29 +0100
committerlouis <louis.braun@gmx.de>2015-03-12 17:17:29 +0100
commit7b8402030a1c79cb532026a8036e85379511f1e4 (patch)
treeb402b8d2628de92a249958090296a417532b6ac7 /libskindesigner/skindesignerosdbase.c
parentd000794647981b956ad763ea4069f077f6163bf4 (diff)
downloadvdr-plugin-weatherforecast-0.0.3.tar.gz
vdr-plugin-weatherforecast-0.0.3.tar.bz2
version 0.0.3 - adapted libskindesigner0.0.3
Diffstat (limited to 'libskindesigner/skindesignerosdbase.c')
-rw-r--r--libskindesigner/skindesignerosdbase.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/libskindesigner/skindesignerosdbase.c b/libskindesigner/skindesignerosdbase.c
index 821efdc..4d40615 100644
--- a/libskindesigner/skindesignerosdbase.c
+++ b/libskindesigner/skindesignerosdbase.c
@@ -1,4 +1,41 @@
#include "skindesignerosdbase.h"
+#include "osdelements.h"
+
+/**********************************************************************
+* cSkindesignerOsdObject
+**********************************************************************/
+
+cSkindesignerOsdObject::cSkindesignerOsdObject(void) {
+ pSkinDesigner = NULL;
+ pluginName = "";
+}
+
+cSkindesignerOsdObject::~cSkindesignerOsdObject() {
+}
+
+bool cSkindesignerOsdObject::InitSkindesignerInterface(string pluginName) {
+ this->pluginName = pluginName;
+ pSkinDesigner = cPluginManager::GetPlugin("skindesigner");
+ if (!pSkinDesigner) {
+ return false;
+ }
+ return true;
+}
+
+cOsdView *cSkindesignerOsdObject::GetOsdView(int viewID, int subViewID) {
+ cSkinDisplayPlugin *displayPlugin = NULL;
+ cOsdView *view = NULL;
+ GetDisplayPlugin call;
+ call.pluginName = pluginName;
+ call.viewID = viewID;
+ call.subViewID = subViewID;
+ bool ok = pSkinDesigner->Service("GetDisplayPlugin", &call);
+ if (ok) {
+ displayPlugin = call.displayPlugin;
+ view = new cOsdView(displayPlugin);
+ }
+ return view;
+}
/**********************************************************************
* cSkindesignerOsdItem