mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
The new function cDevice::DeviceName() returns a string identifying the name of the given device
This commit is contained in:
parent
ed10aaf68b
commit
4dcbf19ea2
4
HISTORY
4
HISTORY
@ -7010,7 +7010,7 @@ Video Disk Recorder Revision History
|
|||||||
which is higher than any normal table id that is broadcast in the EIT data.
|
which is higher than any normal table id that is broadcast in the EIT data.
|
||||||
See PLUGINS.html, section "Electronic Program Guide" for more information.
|
See PLUGINS.html, section "Electronic Program Guide" for more information.
|
||||||
|
|
||||||
2012-03-12: Version 1.7.27
|
2012-03-13: Version 1.7.27
|
||||||
|
|
||||||
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
||||||
- Changed the Green button in the "Edit timer" menu from "Once" to "Single"
|
- Changed the Green button in the "Edit timer" menu from "Once" to "Single"
|
||||||
@ -7033,3 +7033,5 @@ Video Disk Recorder Revision History
|
|||||||
in their Makefiles.
|
in their Makefiles.
|
||||||
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
|
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
|
||||||
- Improved fast forwarding to the end of a timeshift recording.
|
- Improved fast forwarding to the end of a timeshift recording.
|
||||||
|
- The new function cDevice::DeviceName() returns a string identifying the name of
|
||||||
|
the given device.
|
||||||
|
7
device.c
7
device.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: device.c 2.57 2012/03/07 14:17:49 kls Exp $
|
* $Id: device.c 2.58 2012/03/13 09:48:14 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
@ -162,6 +162,11 @@ int cDevice::DeviceNumber(void) const
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cString cDevice::DeviceName(void) const
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
void cDevice::MakePrimaryDevice(bool On)
|
void cDevice::MakePrimaryDevice(bool On)
|
||||||
{
|
{
|
||||||
if (!On) {
|
if (!On) {
|
||||||
|
5
device.h
5
device.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: device.h 2.37 2012/03/06 12:13:46 kls Exp $
|
* $Id: device.h 2.38 2012/03/13 10:17:16 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DEVICE_H
|
#ifndef __DEVICE_H
|
||||||
@ -201,6 +201,9 @@ public:
|
|||||||
///< Returns the card index of this device (0 ... MAXDEVICES - 1).
|
///< Returns the card index of this device (0 ... MAXDEVICES - 1).
|
||||||
int DeviceNumber(void) const;
|
int DeviceNumber(void) const;
|
||||||
///< Returns the number of this device (0 ... numDevices).
|
///< Returns the number of this device (0 ... numDevices).
|
||||||
|
virtual cString DeviceName(void) const;
|
||||||
|
///< Returns a string identifying the name of this device.
|
||||||
|
///< The default implementation returns an empty string.
|
||||||
virtual bool HasDecoder(void) const;
|
virtual bool HasDecoder(void) const;
|
||||||
///< Tells whether this device has an MPEG decoder.
|
///< Tells whether this device has an MPEG decoder.
|
||||||
virtual bool AvoidRecording(void) const { return false; }
|
virtual bool AvoidRecording(void) const { return false; }
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: dvbdevice.c 2.67 2012/03/08 09:49:58 kls Exp $
|
* $Id: dvbdevice.c 2.68 2012/03/13 09:50:56 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbdevice.h"
|
#include "dvbdevice.h"
|
||||||
@ -1090,6 +1090,11 @@ bool cDvbDevice::Probe(int Adapter, int Frontend)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cString cDvbDevice::DeviceName(void) const
|
||||||
|
{
|
||||||
|
return frontendInfo.name;
|
||||||
|
}
|
||||||
|
|
||||||
bool cDvbDevice::Initialize(void)
|
bool cDvbDevice::Initialize(void)
|
||||||
{
|
{
|
||||||
new cDvbSourceParam('A', "ATSC");
|
new cDvbSourceParam('A', "ATSC");
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: dvbdevice.h 2.24 2012/02/29 12:20:51 kls Exp $
|
* $Id: dvbdevice.h 2.25 2012/03/13 10:11:15 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DVBDEVICE_H
|
#ifndef __DVBDEVICE_H
|
||||||
@ -138,6 +138,7 @@ public:
|
|||||||
int Adapter(void) const { return adapter; }
|
int Adapter(void) const { return adapter; }
|
||||||
int Frontend(void) const { return frontend; }
|
int Frontend(void) const { return frontend; }
|
||||||
virtual bool Ready(void);
|
virtual bool Ready(void);
|
||||||
|
virtual cString DeviceName(void) const;
|
||||||
static bool BondDevices(const char *Bondings);
|
static bool BondDevices(const char *Bondings);
|
||||||
///< Bonds the devices as defined in the given Bondings string.
|
///< Bonds the devices as defined in the given Bondings string.
|
||||||
///< A bonding is a sequence of device numbers (starting at 1),
|
///< A bonding is a sequence of device numbers (starting at 1),
|
||||||
|
Loading…
Reference in New Issue
Block a user