CUpnpAVDevice Class Reference

class CUpnpAVDevice : public CBase

UPnP AV Device class

UPnP AV Device class, represents a UPnP Media Server or Renderer.

-
Since
Series 60 3.1

Inherits from

Public Member Functions
~CUpnpAVDevice ()
IMPORT_C TBool AudioCapability ()
IMPORT_C TBool CopyCapability ()
IMPORT_C void CopyFromL (const CUpnpAVDevice &)
IMPORT_C TUpnpAVDeviceType DeviceType ()
IMPORT_C TBool DlnaCompatible ()
IMPORT_C void ExternalizeL ( RWriteStream &)
IMPORT_C const TDesC8 & FriendlyName ()
IMPORT_C TBool ImageCapability ()
IMPORT_C void InternalizeL ( RReadStream &)
IMPORT_C TInt LinkOffset ()
IMPORT_C TInt MaxVolume ()
IMPORT_C TBool MuteCapability ()
IMPORT_C CUpnpAVDevice * NewL ()
IMPORT_C CUpnpAVDevice * NewL (const CUpnpAVDevice &)
IMPORT_C CUpnpAVDevice * NewLC ()
IMPORT_C TBool NextAVTransportUri ()
IMPORT_C TBool PauseCapability ()
IMPORT_C TBool SearchCapability ()
IMPORT_C void SetAudioCapability ( TBool )
IMPORT_C void SetCapabilitiesBySupportedMimeTypesL (const TDesC8 &)
IMPORT_C void SetCopyCapability ( TBool )
IMPORT_C void SetDeviceType ( TUpnpAVDeviceType )
IMPORT_C void SetDlnaCompatible ( TBool )
IMPORT_C void SetFriendlyNameL (const TDesC8 &)
IMPORT_C void SetImageCapability ( TBool )
IMPORT_C void SetMaxVolume ( TInt )
IMPORT_C void SetMuteCapability ( TBool )
IMPORT_C void SetNextAVTransportUri ( TBool )
IMPORT_C void SetPauseCapability ( TBool )
IMPORT_C void SetSearchCapability ( TBool )
IMPORT_C void SetUuidL (const TDesC8 &)
IMPORT_C void SetVideoCapability ( TBool )
IMPORT_C void SetVolumeCapability ( TBool )
IMPORT_C HBufC8 * ToDes8L ()
IMPORT_C const TDesC8 & Uuid ()
IMPORT_C TBool VideoCapability ()
IMPORT_C TBool VolumeCapability ()
Protected Member Functions
CUpnpAVDevice ()
void ConstructL ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enum TUpnpAVDeviceType { EMediaServer , EMediaRenderer }
Protected Attributes
TBool iAudioMediaCapability
TBool iCopyCapability
TUpnpAVDeviceType iDeviceType
TBool iDlnaCompatible
TBool iImageMediaCapability
TInt iMaxVolume
TBool iMuteCapability
HBufC8 * iName
TBool iNextAVTransportUri
TBool iPauseCapability
TBool iSearchCapability
TSglQueLink iSlink
HBufC8 * iUuid
TBool iVideoMediaCapability
TBool iVolumeCapability

Constructor & Destructor Documentation

CUpnpAVDevice()

IMPORT_C CUpnpAVDevice ( ) [protected]

Constructor

~CUpnpAVDevice()

IMPORT_C ~CUpnpAVDevice ( ) [virtual]

Destructor.

Member Functions Documentation

AudioCapability()

IMPORT_C TBool AudioCapability ( ) const

Gets the audio media capability of the device

ConstructL()

void ConstructL ( ) [protected]

Perform the second phase construction

CopyCapability()

IMPORT_C TBool CopyCapability ( ) const

Gets the copy capability of the device

CopyFromL(const CUpnpAVDevice &)

IMPORT_C void CopyFromL ( const CUpnpAVDevice & aDevice )
Overwrites all existing data in this device and replaces it with data copied from given device.
Since
Series 60 3.1

Parameters

const CUpnpAVDevice & aDevice object to copy attributes from

DeviceType()

IMPORT_C TUpnpAVDeviceType DeviceType ( ) const

Return device type

DlnaCompatible()

IMPORT_C TBool DlnaCompatible ( ) const

Return if the device is Dlna compatible

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const
Externalizes device information to stream. Leaves in case of errors.
Since
Series 60 3.0

Parameters

RWriteStream & aStream

FriendlyName()

IMPORT_C const TDesC8 & FriendlyName ( ) const

Return friendly name

ImageCapability()

IMPORT_C TBool ImageCapability ( ) const

Gets the image media capability of the device

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aStream )
Internalizes device information from stream. Leaves in case of errors.
Since
Series 60 3.0

Parameters

RReadStream & aStream

LinkOffset()

IMPORT_C TInt LinkOffset ( ) [static]

Return link offset (used in linked list)

MaxVolume()

IMPORT_C TInt MaxVolume ( ) const

Gets the maximum volume of the device

MuteCapability()

IMPORT_C TBool MuteCapability ( ) const

Gets the mute capability of the device

NewL()

IMPORT_C CUpnpAVDevice * NewL ( ) [static]

Two-phased constructor.

NewL(const CUpnpAVDevice &)

IMPORT_C CUpnpAVDevice * NewL ( const CUpnpAVDevice & aDevice ) [static]

Two-phased constructor.

Parameters

const CUpnpAVDevice & aDevice a device to copy information from

NewLC()

IMPORT_C CUpnpAVDevice * NewLC ( ) [static]

Two-phased constructor. Instance is left in cleanup stack.

NextAVTransportUri()

IMPORT_C TBool NextAVTransportUri ( ) const

Returns the SetNextAVTransportUri capability of the device

PauseCapability()

IMPORT_C TBool PauseCapability ( ) const

Gets the pause capability of the device

SearchCapability()

IMPORT_C TBool SearchCapability ( ) const

Gets the search capability of the device

SetAudioCapability(TBool)

IMPORT_C void SetAudioCapability ( TBool aCap )

Sets audio capability of the device

Parameters

TBool aCap (TBool)

SetCapabilitiesBySupportedMimeTypesL(const TDesC8 &)

IMPORT_C void SetCapabilitiesBySupportedMimeTypesL ( const TDesC8 & aListOfMimeTypes )

Parameters

const TDesC8 & aListOfMimeTypes

SetCopyCapability(TBool)

IMPORT_C void SetCopyCapability ( TBool aCopyCap )

Sets the copy capability of the device

Parameters

TBool aCopyCap

SetDeviceType(TUpnpAVDeviceType)

IMPORT_C void SetDeviceType ( TUpnpAVDeviceType aDeviceType )

Sets the device type (Media Server/Renderer)

Parameters

TUpnpAVDeviceType aDeviceType device type

SetDlnaCompatible(TBool)

IMPORT_C void SetDlnaCompatible ( TBool aDlnaCompatible )

Sets if the device is Dlna compatible

Parameters

TBool aDlnaCompatible

SetFriendlyNameL(const TDesC8 &)

IMPORT_C void SetFriendlyNameL ( const TDesC8 & aName )

Sets the friendly name of the device

Parameters

const TDesC8 & aName name

SetImageCapability(TBool)

IMPORT_C void SetImageCapability ( TBool aCap )

Sets image capability of the device

Parameters

TBool aCap (TBool)

SetMaxVolume(TInt)

IMPORT_C void SetMaxVolume ( TInt aVolume )

Sets the maximum volume of the device

Parameters

TInt aVolume

SetMuteCapability(TBool)

IMPORT_C void SetMuteCapability ( TBool aMuteCap )

Sets the mute capability of the device

Parameters

TBool aMuteCap

SetNextAVTransportUri(TBool)

IMPORT_C void SetNextAVTransportUri ( TBool aCap )

Sets the SetNextAVTransportUri capability of the device

Parameters

TBool aCap (TBool)

SetPauseCapability(TBool)

IMPORT_C void SetPauseCapability ( TBool aPauseCap )

Sets the pause capability of the device

Parameters

TBool aPauseCap

SetSearchCapability(TBool)

IMPORT_C void SetSearchCapability ( TBool aSearchCap )

Sets the search capability of the device

Parameters

TBool aSearchCap

SetUuidL(const TDesC8 &)

IMPORT_C void SetUuidL ( const TDesC8 & aUuid )

Sets the Uuid of the device

Parameters

const TDesC8 & aUuid Uuid

SetVideoCapability(TBool)

IMPORT_C void SetVideoCapability ( TBool aCap )

Sets video capability of the device

Parameters

TBool aCap (TBool)

SetVolumeCapability(TBool)

IMPORT_C void SetVolumeCapability ( TBool aVolumeCap )

Sets the volume capability of the device

Parameters

TBool aVolumeCap

ToDes8L()

IMPORT_C HBufC8 * ToDes8L ( ) const

Externalizes device information to a heap descriptor

Uuid()

IMPORT_C const TDesC8 & Uuid ( ) const

Return Uuid

VideoCapability()

IMPORT_C TBool VideoCapability ( ) const

Gets the video media capability of the device

VolumeCapability()

IMPORT_C TBool VolumeCapability ( ) const

Gets the volume capability of the device

Member Enumerations Documentation

Enum TUpnpAVDeviceType

Enumeration to define the type of a device

Enumerators

EMediaServer
EMediaRenderer

Member Data Documentation

TBool iAudioMediaCapability

TBool iAudioMediaCapability [protected]

TBool iCopyCapability

TBool iCopyCapability [protected]

TUpnpAVDeviceType iDeviceType

TUpnpAVDeviceType iDeviceType [protected]

TBool iDlnaCompatible

TBool iDlnaCompatible [protected]

TBool iImageMediaCapability

TBool iImageMediaCapability [protected]

TInt iMaxVolume

TInt iMaxVolume [protected]

TBool iMuteCapability

TBool iMuteCapability [protected]

HBufC8 * iName

HBufC8 * iName [protected]

TBool iNextAVTransportUri

TBool iNextAVTransportUri [protected]

TBool iPauseCapability

TBool iPauseCapability [protected]

TBool iSearchCapability

TBool iSearchCapability [protected]

TSglQueLink iSlink

TSglQueLink iSlink [protected]

HBufC8 * iUuid

HBufC8 * iUuid [protected]

TBool iVideoMediaCapability

TBool iVideoMediaCapability [protected]

TBool iVolumeCapability

TBool iVolumeCapability [protected]