From 3ab746babd6d879f05b4cbc76662c65cf4146397 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 16 Jun 2002 13:26:00 +0200 Subject: Changed 'cStatusMonitor' to 'cStatus' --- PLUGINS.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'PLUGINS.html') diff --git a/PLUGINS.html b/PLUGINS.html index a0f7ebc9..a3adc937 100644 --- a/PLUGINS.html +++ b/PLUGINS.html @@ -857,12 +857,12 @@ plugin's name, and 0.0.1 will be your plugin's current version number.
A piece of the action

If a plugin wants to get informed on various events in VDR, it can derive a class from -cStatusMonitor, as in +cStatus, as in


#include <vdr/status.h> -class cMyStatusMonitor : public cStatusMonitor { +class cMyStatusMonitor : public cStatus { protected: virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber); }; @@ -914,15 +914,15 @@ Note that the actual object is created in the Start() function, not in constructor! It is also important to delete the object in the destructor, in order to avoid memory leaks.

-A Plugin can implement any number of cStatusMonitor derived objects, and once +A Plugin can implement any number of cStatus derived objects, and once the plugin has been started it may create and delete them as necessary. -No further action apart from creating an object derived from cStatusMonitor +No further action apart from creating an object derived from cStatus is necessary. VDR will automatically hook it into a list of status monitors, with their individual virtual member functions being called in the same sequence as the objects were created.

See the file status.h for detailed information on which status monitor -member functions are available in cStatusMonitor. You only need to implement +member functions are available in cStatus. You only need to implement the functions you actually want to use.

-- cgit v1.2.3