vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
cPluginSoftHdDevice Class Reference

Main Plugin Class. More...

#include <softhddevice-drm-gles.h>

Public Member Functions

 cPluginSoftHdDevice (void)
 cPluginSoftHdDevice constructor
 
virtual ~cPluginSoftHdDevice (void)
 cPluginSoftHdDevice destructor
 
virtual const charVersion (void)
 Return plugin version number.
 
virtual const charDescription (void)
 Return plugin short description.
 
virtual const charCommandLineHelp (void)
 Return a string that describes all known command line options.
 
virtual bool ProcessArgs (int, char *[])
 Process the command line arguments.
 
virtual bool Initialize (void)
 Initializes the DVB devices.
 
virtual bool Start (void)
 Start any background activities the plugin shall perform.
 
virtual void Stop (void)
 Shutdown plugin.
 
virtual const charMainMenuEntry (void)
 Create main menu entry.
 
virtual cOsdObjectMainMenuAction (void)
 Perform the action when selected from the main VDR menu.
 
virtual cMenuSetupPage * SetupMenu (void)
 Return our setup menu.
 
virtual bool SetupParse (const char *, const char *)
 Parse setup parameters.
 
virtual bool Service (const char *, void *=nullptr)
 Receive requests or messages.
 
virtual const char ** SVDRPHelpPages (void)
 Return SVDRP commands help pages.
 
virtual cString SVDRPCommand (const char *, const char *, int &)
 Handle SVDRP commands.
 

Private Attributes

cSoftHdDevicem_pDevice
 pointer to cSoftHdDevice object
 
cSoftHdConfigm_pConfig
 pointer to cSoftHdConfig object
 

Detailed Description

Main Plugin Class.

Definition at line 38 of file softhddevice-drm-gles.h.

Constructor & Destructor Documentation

◆ cPluginSoftHdDevice()

cPluginSoftHdDevice::cPluginSoftHdDevice ( void  )

cPluginSoftHdDevice constructor

Initialize any member variables here.

Note
DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT!

We only create the config and the device itself, because Plugin->SetupParse is done next and that one needs config to be available. SetupParse must not access any other objects!

Definition at line 68 of file softhddevice-drm-gles.cpp.

References m_pConfig, and m_pDevice.

◆ ~cPluginSoftHdDevice()

cPluginSoftHdDevice::~cPluginSoftHdDevice ( void  )
virtual

cPluginSoftHdDevice destructor

Clean up after yourself!

Definition at line 79 of file softhddevice-drm-gles.cpp.

References m_pConfig.

Member Function Documentation

◆ CommandLineHelp()

const char * cPluginSoftHdDevice::CommandLineHelp ( void  )
virtual

Return a string that describes all known command line options.

Returns
the command line help as constant string

Definition at line 109 of file softhddevice-drm-gles.cpp.

References cSoftHdDevice::CommandLineHelp(), and m_pDevice.

◆ Description()

const char * cPluginSoftHdDevice::Description ( void  )
virtual

Return plugin short description.

Returns
a short description as constant string

Definition at line 99 of file softhddevice-drm-gles.cpp.

References DESCRIPTION.

◆ Initialize()

bool cPluginSoftHdDevice::Initialize ( void  )
virtual

Initializes the DVB devices.

Must be called before accessing any DVB functions

Definition at line 129 of file softhddevice-drm-gles.cpp.

References cSoftHdDevice::Initialize(), and m_pDevice.

◆ MainMenuAction()

cOsdObject * cPluginSoftHdDevice::MainMenuAction ( void  )
virtual

Perform the action when selected from the main VDR menu.

Definition at line 171 of file softhddevice-drm-gles.cpp.

References m_pDevice.

◆ MainMenuEntry()

const char * cPluginSoftHdDevice::MainMenuEntry ( void  )
virtual

Create main menu entry.

Definition at line 161 of file softhddevice-drm-gles.cpp.

References cSoftHdConfig::ConfigHideMainMenuEntry, m_pConfig, and MAINMENUENTRY.

◆ ProcessArgs()

bool cPluginSoftHdDevice::ProcessArgs ( int  argc,
char argv[] 
)
virtual

Process the command line arguments.

Definition at line 117 of file softhddevice-drm-gles.cpp.

References m_pDevice, and cSoftHdDevice::ProcessArgs().

◆ Service()

bool cPluginSoftHdDevice::Service ( const char id,
void data = nullptr 
)
virtual

Receive requests or messages.

Parameters
idunique identification string that identifies the service protocol
datacustom data structure

Definition at line 213 of file softhddevice-drm-gles.cpp.

◆ SetupMenu()

cMenuSetupPage * cPluginSoftHdDevice::SetupMenu ( void  )
virtual

Return our setup menu.

Definition at line 181 of file softhddevice-drm-gles.cpp.

References m_pDevice.

◆ SetupParse()

bool cPluginSoftHdDevice::SetupParse ( const char name,
const char value 
)
virtual

Parse setup parameters.

Parameters
nameparamter name (case sensetive)
valuevalue as string
Return values
trueif the parameter is supported
falseif the parameter is unsupported

Definition at line 201 of file softhddevice-drm-gles.cpp.

References m_pConfig, and cSoftHdConfig::SetupParse().

◆ Start()

bool cPluginSoftHdDevice::Start ( void  )
virtual

Start any background activities the plugin shall perform.

Definition at line 139 of file softhddevice-drm-gles.cpp.

References m_pDevice, and cSoftHdDevice::Start().

◆ Stop()

void cPluginSoftHdDevice::Stop ( void  )
virtual

Shutdown plugin.

Stop any background activities the plugin is performing

Definition at line 151 of file softhddevice-drm-gles.cpp.

References m_pDevice, and cSoftHdDevice::Stop().

◆ SVDRPCommand()

cString cPluginSoftHdDevice::SVDRPCommand ( const char command,
const char option,
int reply_code 
)
virtual

◆ SVDRPHelpPages()

const char ** cPluginSoftHdDevice::SVDRPHelpPages ( void  )
virtual

Return SVDRP commands help pages.

return a pointer to a list of help strings for all of the plugin's SVDRP commands.

Definition at line 255 of file softhddevice-drm-gles.cpp.

References SVDRPHelpText.

◆ Version()

const char * cPluginSoftHdDevice::Version ( void  )
virtual

Return plugin version number.

Returns
the version number as constant string

Definition at line 89 of file softhddevice-drm-gles.cpp.

References VERSION.

Member Data Documentation

◆ m_pConfig

cSoftHdConfig* cPluginSoftHdDevice::m_pConfig
private

pointer to cSoftHdConfig object

Definition at line 58 of file softhddevice-drm-gles.h.

Referenced by cPluginSoftHdDevice(), MainMenuEntry(), SetupParse(), and ~cPluginSoftHdDevice().

◆ m_pDevice

cSoftHdDevice* cPluginSoftHdDevice::m_pDevice
private

The documentation for this class was generated from the following files: