Adding
a Feature
How to add a feature using RFeatureControl.
Determine the Uid of the feature you want to add,
create an instance of TFeatureEntry,
set its Uid, feature flags and feature data to the correct values for
the feature you want to add,
create an instance of RFeatureControl,
call its Open() function,
call its AddFeature() function with a reference to
the TFeatureEntry as argument, and
call its Close() function.
The call to AddFeature() requires WriteDeviceData capability.
It returns:
KErrNone if
the feature was successfully added,
KPermissionDenied if
a capability check fails,
KAlreadyExists if
the feature already exists, and
otherwise returns an
error code.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.