vdr  1.7.27
Public Member Functions | Private Attributes
cSatCableNumbers Class Reference

#include <config.h>

List of all members.

Public Member Functions

 cSatCableNumbers (int Size, const char *s=NULL)
 ~cSatCableNumbers ()
int Size (void) const
int * Array (void)
bool FromString (const char *s)
cString ToString (void)
int FirstDeviceIndex (int DeviceIndex) const
 cSatCableNumbers (int Size, const char *s=NULL)
 ~cSatCableNumbers ()
int Size (void) const
int * Array (void)
bool FromString (const char *s)
cString ToString (void)
int FirstDeviceIndex (int DeviceIndex) const

Private Attributes

int size
int * array

Detailed Description

Definition at line 76 of file config.h.


Constructor & Destructor Documentation

cSatCableNumbers::cSatCableNumbers ( int  Size,
const char *  s = NULL 
)

Definition at line 68 of file config.c.

References array, FromString(), MALLOC, size, and Size().

Definition at line 75 of file config.c.

References array.

cSatCableNumbers::cSatCableNumbers ( int  Size,
const char *  s = NULL 
)

Member Function Documentation

int* cSatCableNumbers::Array ( void  ) [inline]

Definition at line 84 of file config.h.

References array.

Referenced by cMenuSetupLNB::Setup().

int* cSatCableNumbers::Array ( void  ) [inline]

Definition at line 84 of file include/vdr/config.h.

References array.

int cSatCableNumbers::FirstDeviceIndex ( int  DeviceIndex) const

Returns the first device index (starting at 0) that uses the same sat cable number as the device with the given DeviceIndex.

If the given device does not use the same sat cable as any other device, or if the resulting value would be the same as DeviceIndex, or if DeviceIndex is out of range, -1 is returned.

Definition at line 115 of file config.c.

References array, and size.

Referenced by cDvbDevice::BondDevices().

int cSatCableNumbers::FirstDeviceIndex ( int  DeviceIndex) const

Returns the first device index (starting at 0) that uses the same sat cable number as the device with the given DeviceIndex.

If the given device does not use the same sat cable as any other device, or if the resulting value would be the same as DeviceIndex, or if DeviceIndex is out of range, -1 is returned.

bool cSatCableNumbers::FromString ( const char *  s)
bool cSatCableNumbers::FromString ( const char *  s)

Definition at line 80 of file config.c.

References array, esyslog, size, and skipspace().

Referenced by cMenuSetupLNB::cMenuSetupLNB(), and cSatCableNumbers().

int cSatCableNumbers::Size ( void  ) const [inline]

Definition at line 83 of file config.h.

References size.

Referenced by cSatCableNumbers().

int cSatCableNumbers::Size ( void  ) const [inline]

Definition at line 83 of file include/vdr/config.h.

References size.

Definition at line 106 of file config.c.

References array, size, and cString::sprintf().

Referenced by cMenuSetupLNB::ProcessKey().


Member Data Documentation

int * cSatCableNumbers::array [private]
int cSatCableNumbers::size [private]

Definition at line 78 of file config.h.

Referenced by cSatCableNumbers(), FirstDeviceIndex(), FromString(), Size(), and ToString().


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