MSsyPropertyProvider Class Reference

class MSsyPropertyProvider

Channel property provider implementation

Member Functions Documentation

CheckPropertyDependenciesL(const TSensrvChannelId, const TSensrvProperty &, RSensrvChannelList &)

voidCheckPropertyDependenciesL(const TSensrvChannelIdaChannelId,
const TSensrvProperty &aProperty,
RSensrvChannelList &aAffectedChannels
)[pure virtual]

Check if property value affects other sensor channels already open. If the new property value is legal but affects somehow other channels' properties, SSY must return list of the affected channels so that the sensor server can check if the client is allowed to set this property. If the SSY value is not legal SSY must leave with KErrArgument-value.

Since
S60 5.0
leave
KErrNotFound If the property is not found.

Parameters

const TSensrvChannelId aChannelIdChannel Id to be linked to this operation
const TSensrvProperty & aPropertyProperty to be checked.
RSensrvChannelList & aAffectedChannelsReturn list of the channel which will be affected if the property value will be set.

GetAllPropertiesL(const TSensrvChannelId, RSensrvPropertyList &)

voidGetAllPropertiesL(const TSensrvChannelIdaChannelId,
RSensrvPropertyList &aChannelPropertyList
)[pure virtual]

Get all channel properties. Returns all properties which are related to this channel.

Since
S60 5.0

Parameters

const TSensrvChannelId aChannelIdChannel Id to be linked to this get all properties operation
RSensrvPropertyList & aChannelPropertyListList of the all properties of the channel.

GetPropertyL(const TSensrvChannelId, TSensrvProperty &)

voidGetPropertyL(const TSensrvChannelIdaChannelId,
TSensrvProperty &aProperty
)[pure virtual]

Get channel property value. The property parameter contains channel id and item index.

In case of array property, the required array index is also included. If array index is not defined and the property is an array property, then array info property object must be returned (ESensrvArrayPropertyInfo).

SSY fills values and attributes to the property object.

Since
S60 5.0
leave
KErrNotFound If the property is not found.

Parameters

const TSensrvChannelId aChannelIdChannel Id to be linked to this get property operation
TSensrvProperty & aPropertyReference to a property object to be filled with property values and attributes.

GetPropertyProviderInterfaceL(TUid, TAny *&)

voidGetPropertyProviderInterfaceL(TUidaInterfaceUid,
TAny *&aInterface
)[pure virtual]

Returns a pointer to a specified interface - to allow future extension of this class without breaking binary compatibility

Since
S60 5.0

Parameters

TUid aInterfaceUidIdentifier of the interface to be retrieved
TAny *& aInterfaceA reference to a pointer that retrieves the specified interface.

SetPropertyL(const TSensrvChannelId, const TSensrvProperty &)

voidSetPropertyL(const TSensrvChannelIdaChannelId,
const TSensrvProperty &aProperty
)[pure virtual]

Set property for the channel. SSY is responsible for checking that the property setting is legal.

Since
S60 5.0
leave
KErrNotFound If the property is not found.
leave
KErrArgument If the property value is invalid.
leave
KErrPermissionDenied If client capabilities are not enough to set the property.

Parameters

const TSensrvChannelId aChannelIdChannel Id to be linked to this set property operation
const TSensrvProperty & aPropertyRereference to a property object to be set. iSecurityInfo of the property contains client capabilities.