TFeatureSet Class Reference

#include <featdiscovery.h>

Link against: featdiscovery.lib

class TFeatureSet

Detailed Description

Wrapper class used for multiple feature queries.

Constructor & Destructor Documentation

TFeatureSet ( )

IMPORT_CTFeatureSet()

Constructor

~TFeatureSet ( )

IMPORT_C~TFeatureSet()

Destructor

Member Function Documentation

Append ( TUid )

IMPORT_C TIntAppend(TUidaFeature)

Method to add features before querying support statuses. This method must be called to initialize feature array before querying support statuses from server with FeaturesSupported(L) and finally check the status with a call to IsFeatureSupported or AreAllFeaturesSupported.

Returns: KErrNone if feature addition succeded. Otherwise one of the Symbian OS error codes

Append ( TUid, TBool )

TInt Append(TUidaFeature,
TBoolaSupported
)

AreAllFeaturesSupported ( )

IMPORT_C TBoolAreAllFeaturesSupported()const

Method to check whether all features queried are supported.

Returns: ETrue if all features queried are supported or no features have been queried. Otherwise EFalse.

Count ( )

TInt Count()

FeatureId ( TInt )

TUid FeatureId(TIntaIndex)const

IsFeatureSupported ( TUid )

IMPORT_C TBoolIsFeatureSupported(TUidaFeature)const

Method to check feature's support status.

ParameterDescription
aFeatureis the feature UID of the feature that is queried.

Returns: a TBool indicating whether the feature is supported (ETrue) or not (EFalse). If the feature does not exist, the return value is EFalse.

Reset ( )

voidReset()