cDlna Class Reference

#include <dlna.h>

Collaboration diagram for cDlna:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const char * getDeviceDescription (const char *URLBase)
void registerProfile (DLNAProfile *Profile, int Op=-1, const char *Ps=NULL, int Ci=-1, unsigned int Flags=0)
void registerMainProfiles ()
const char * getSupportedProtocols ()
const char * getProtocolInfo (DLNAProfile *Prof)
DLNAProfilegetProfileOfChannel (cChannel *Channel)
DLNAProfilegetProfileOfRecording (cRecording *Recording)
DLNAProfilegetProfileOfFile (cString File)

Static Public Member Functions

static cDlnagetInstance (void)

Friends

class cUPnPServer


Detailed Description

Enable DLNA compliant media transfer

This class enables media transmission with DLNA conformity. Its compliant with version 1.5 of the DLNA guidelines.


Member Function Documentation

const char * cDlna::getDeviceDescription ( const char *  URLBase  ) 

Device description document

This will return the device description document with service type definitions as well as some DLNA specific information

Returns:
The description document
Parameters:
URLBase the URLBase to be set in the document

cDlna * cDlna::getInstance ( void   )  [static]

Returns the instance of DLNA object

This will create a DLNA object instance. It will return the same instance on subsequent calls.

Returns:
the DLNA object instance

DLNAProfile * cDlna::getProfileOfChannel ( cChannel *  Channel  ) 

Profile of a channel

Returns the DLNA profile of a VDR channel. It checks the video type to determine which profile will match.

Returns:
the matching DLNA profile
Parameters:
Channel the channel of which the profile should created from

DLNAProfile * cDlna::getProfileOfFile ( cString  File  ) 

Profile of a file

Returns the DLNA profile of a file. It checks the content of the file with ffmpeg to determine which profile will match.

Returns:
the matching DLNA profile
Parameters:
File the file of which the profile should be created from

DLNAProfile * cDlna::getProfileOfRecording ( cRecording *  Recording  ) 

Profile of a recording

Returns the DLNA profile of a VDR recording. It checks the video file to determine which profile will match.

Returns:
the matching DLNA profile
Parameters:
Recording the recording of which the profile should be created from

const char * cDlna::getProtocolInfo ( DLNAProfile Prof  ) 

Protocol info of a specific DLNA profile

Returns the protocol info string of a specific DLNA profile with its options and flags.

Returns:
the protocol info string of the profile
Parameters:
Prof the Profile of which the protocol info shall be returned

const char * cDlna::getSupportedProtocols (  ) 

CSV list of supported protocols

Returns a comma separated list with all supported protocols. This means, it returns the list of protocols of the registered profiles.

Returns:
CSV list of registered protocols

void cDlna::registerMainProfiles (  ) 

Registeres all known DLNA profiles

Registeres all well known DLNA profiles with its known options

void cDlna::registerProfile ( DLNAProfile Profile,
int  Op = -1,
const char *  Ps = NULL,
int  Ci = -1,
unsigned int  Flags = 0 
)

Registeres a DLNA profile

Registeres a DLNA profile with specific optional options

See also:
common.h
Parameters:
Profile the DLNA profile
Op operation mode
Ps play speed (CSV list)
Ci conversion indication flag
Flags DLNA flags


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

Generated on Sun Nov 8 15:44:09 2009 for UPnP/DLNA plugin for VDR by  doxygen 1.5.8