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 TBoolAudioCapability()
IMPORT_C TBoolCopyCapability()
IMPORT_C voidCopyFromL(const CUpnpAVDevice &)
IMPORT_C TUpnpAVDeviceTypeDeviceType()
IMPORT_C TBoolDlnaCompatible()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C const TDesC8 &FriendlyName()
IMPORT_C TBoolImageCapability()
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C TIntLinkOffset()
IMPORT_C TIntMaxVolume()
IMPORT_C TBoolMuteCapability()
IMPORT_C CUpnpAVDevice *NewL()
IMPORT_C CUpnpAVDevice *NewL(const CUpnpAVDevice &)
IMPORT_C CUpnpAVDevice *NewLC()
IMPORT_C TBoolNextAVTransportUri()
IMPORT_C TBoolPauseCapability()
IMPORT_C TBoolSearchCapability()
IMPORT_C voidSetAudioCapability(TBool)
IMPORT_C voidSetCapabilitiesBySupportedMimeTypesL(const TDesC8 &)
IMPORT_C voidSetCopyCapability(TBool)
IMPORT_C voidSetDeviceType(TUpnpAVDeviceType)
IMPORT_C voidSetDlnaCompatible(TBool)
IMPORT_C voidSetFriendlyNameL(const TDesC8 &)
IMPORT_C voidSetImageCapability(TBool)
IMPORT_C voidSetMaxVolume(TInt)
IMPORT_C voidSetMuteCapability(TBool)
IMPORT_C voidSetNextAVTransportUri(TBool)
IMPORT_C voidSetPauseCapability(TBool)
IMPORT_C voidSetSearchCapability(TBool)
IMPORT_C voidSetUuidL(const TDesC8 &)
IMPORT_C voidSetVideoCapability(TBool)
IMPORT_C voidSetVolumeCapability(TBool)
IMPORT_C HBufC8 *ToDes8L()
IMPORT_C const TDesC8 &Uuid()
IMPORT_C TBoolVideoCapability()
IMPORT_C TBoolVolumeCapability()
Protected Member Functions
CUpnpAVDevice()
voidConstructL()
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
enumTUpnpAVDeviceType { 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_CCUpnpAVDevice()[protected]

Constructor

~CUpnpAVDevice()

IMPORT_C~CUpnpAVDevice()[virtual]

Destructor.

Member Functions Documentation

AudioCapability()

IMPORT_C TBoolAudioCapability()const

Gets the audio media capability of the device

ConstructL()

voidConstructL()[protected]

Perform the second phase construction

CopyCapability()

IMPORT_C TBoolCopyCapability()const

Gets the copy capability of the device

CopyFromL(const CUpnpAVDevice &)

IMPORT_C voidCopyFromL(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 & aDeviceobject to copy attributes from

DeviceType()

IMPORT_C TUpnpAVDeviceTypeDeviceType()const

Return device type

DlnaCompatible()

IMPORT_C TBoolDlnaCompatible()const

Return if the device is Dlna compatible

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(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 TBoolImageCapability()const

Gets the image media capability of the device

InternalizeL(RReadStream &)

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

Parameters

RReadStream & aStream

LinkOffset()

IMPORT_C TIntLinkOffset()[static]

Return link offset (used in linked list)

MaxVolume()

IMPORT_C TIntMaxVolume()const

Gets the maximum volume of the device

MuteCapability()

IMPORT_C TBoolMuteCapability()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 & aDevicea device to copy information from

NewLC()

IMPORT_C CUpnpAVDevice *NewLC()[static]

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

NextAVTransportUri()

IMPORT_C TBoolNextAVTransportUri()const

Returns the SetNextAVTransportUri capability of the device

PauseCapability()

IMPORT_C TBoolPauseCapability()const

Gets the pause capability of the device

SearchCapability()

IMPORT_C TBoolSearchCapability()const

Gets the search capability of the device

SetAudioCapability(TBool)

IMPORT_C voidSetAudioCapability(TBoolaCap)

Sets audio capability of the device

Parameters

TBool aCap(TBool)

SetCapabilitiesBySupportedMimeTypesL(const TDesC8 &)

IMPORT_C voidSetCapabilitiesBySupportedMimeTypesL(const TDesC8 &aListOfMimeTypes)

Parameters

const TDesC8 & aListOfMimeTypes

SetCopyCapability(TBool)

IMPORT_C voidSetCopyCapability(TBoolaCopyCap)

Sets the copy capability of the device

Parameters

TBool aCopyCap

SetDeviceType(TUpnpAVDeviceType)

IMPORT_C voidSetDeviceType(TUpnpAVDeviceTypeaDeviceType)

Sets the device type (Media Server/Renderer)

Parameters

TUpnpAVDeviceType aDeviceTypedevice type

SetDlnaCompatible(TBool)

IMPORT_C voidSetDlnaCompatible(TBoolaDlnaCompatible)

Sets if the device is Dlna compatible

Parameters

TBool aDlnaCompatible

SetFriendlyNameL(const TDesC8 &)

IMPORT_C voidSetFriendlyNameL(const TDesC8 &aName)

Sets the friendly name of the device

Parameters

const TDesC8 & aNamename

SetImageCapability(TBool)

IMPORT_C voidSetImageCapability(TBoolaCap)

Sets image capability of the device

Parameters

TBool aCap(TBool)

SetMaxVolume(TInt)

IMPORT_C voidSetMaxVolume(TIntaVolume)

Sets the maximum volume of the device

Parameters

TInt aVolume

SetMuteCapability(TBool)

IMPORT_C voidSetMuteCapability(TBoolaMuteCap)

Sets the mute capability of the device

Parameters

TBool aMuteCap

SetNextAVTransportUri(TBool)

IMPORT_C voidSetNextAVTransportUri(TBoolaCap)

Sets the SetNextAVTransportUri capability of the device

Parameters

TBool aCap(TBool)

SetPauseCapability(TBool)

IMPORT_C voidSetPauseCapability(TBoolaPauseCap)

Sets the pause capability of the device

Parameters

TBool aPauseCap

SetSearchCapability(TBool)

IMPORT_C voidSetSearchCapability(TBoolaSearchCap)

Sets the search capability of the device

Parameters

TBool aSearchCap

SetUuidL(const TDesC8 &)

IMPORT_C voidSetUuidL(const TDesC8 &aUuid)

Sets the Uuid of the device

Parameters

const TDesC8 & aUuidUuid

SetVideoCapability(TBool)

IMPORT_C voidSetVideoCapability(TBoolaCap)

Sets video capability of the device

Parameters

TBool aCap(TBool)

SetVolumeCapability(TBool)

IMPORT_C voidSetVolumeCapability(TBoolaVolumeCap)

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 TBoolVideoCapability()const

Gets the video media capability of the device

VolumeCapability()

IMPORT_C TBoolVolumeCapability()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]