diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-10 15:10:43 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-10 15:10:43 +0100 |
commit | 860786f809e55ac36d3f347b132d93118ca201d4 (patch) | |
tree | 3a99189a28a55ed499dcca562ba3eaabed568ae0 /PLUGINS.html | |
parent | bc06fc2ce38392605ef094cfe544faafad9c1cb8 (diff) | |
download | vdr-860786f809e55ac36d3f347b132d93118ca201d4.tar.gz vdr-860786f809e55ac36d3f347b132d93118ca201d4.tar.bz2 |
Added a new plugin interface for implementing EPG handlers1.7.26
Diffstat (limited to 'PLUGINS.html')
-rw-r--r-- | PLUGINS.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PLUGINS.html b/PLUGINS.html index 4d939430..82164bff 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -102,6 +102,7 @@ structures and allows it to hook itself into specific areas to perform special a <li><a href="#Audio">Audio</a> <li><a href="#Remote Control">Remote Control</a> <li><a href="#Conditional Access">Conditional Access</a> +<li><modified><a href="#Electronic Program Guide">Electronic Program Guide</modified></a> </ul> </ul> @@ -2212,5 +2213,37 @@ virtual bool Assign(cDevice *Device, bool Query = false); See the description of this function in <tt>ci.h</tt> for details. +<div class="modified"> +<hr><h2><a name="Electronic Program Guide">Electronic Program Guide</a></h2> + +<div class="blurb">The grass is always greener on the other side...</div><p> + +In case the <i>Electronic Program Guide (EPG)</i> provided by the broadcaster +isn't sufficient for your taste, you can implement a <tt>cEpgHandler</tt> to +improve it from external sources. For instance, to replace the description +of the broadcaster's EPG with one from some external database, you could do: + +<p><table><tr><td class="code"><pre> +#include <vdr/epg.h> + +class cMyEpgHandler : public cEpgHandler { +public: + virtual bool SetDescription(cEvent *Event, const char *Description); + }; + +bool cMyEpgHandler::SetDescription(cEvent *Event, const char *Description) +{ + Event->SetDescription(DescriptionFromDatabase(Event)); + return true; +} +</pre></td></tr></table><p> + +where <tt>DescriptionFromDatabase()</tt> would derive the description of the + given event from some external source. Note that the function returns <tt>true</tt> +to signal VDR that no other EPG handlers shall be queried after this one. +<p> +See <tt>VDR/epg.h</tt> for details. +</div modified> + </body> </html> |