FeatureManager Class Reference

class FeatureManager
Feature manager API. Feature manager API offers the following functionality:
  • Inquire whether a certain static feature is supported. For usage, see example code at the end of the header file.

Use the class CFeatureDiscovery for basic feature queries, or the class RFeatureControl for advanced feature queries and control.

Public Member Functions
IMPORT_C TBool FeatureSupported ( TInt )
IMPORT_C void InitializeLibL ()
IMPORT_C void UnInitializeLib ()
Private Member Functions
FeatureManager ()
CFeatMgrTlsData * TlsData ()

Constructor & Destructor Documentation

FeatureManager()

FeatureManager ( ) [private]

C++ default constructor. Prohibits instantiation of this class.

Member Functions Documentation

FeatureSupported(TInt)

IMPORT_C TBool FeatureSupported ( TInt aFeature ) [static]

Fetches information whether a certain feature is supported.

Use the class CFeatureDiscovery for basic feature queries, or the class RFeatureControl for advanced feature queries and control.

Parameters

TInt aFeature feature id.

InitializeLibL()

IMPORT_C void InitializeLibL ( ) [static]

This must be called in the scope of the thread before calling any other methods. It sets up TLS. Uninitialization is done by calling the UnInitializeLib() function.

leave
KErrNoMemory Memory allocation failure.
Use the class CFeatureDiscovery for basic feature queries, or the class RFeatureControl for advanced feature queries and control.

TlsData()

CFeatMgrTlsData * TlsData ( ) [private, static]

Get TlsData pointer.

UnInitializeLib()

IMPORT_C void UnInitializeLib ( ) [static]

This must be called in the scope of the thread after calling InitializeLibL() . It frees the allocated TLS. Do not call UnInitializeLib() if InitalizeLibL() leaves.

Use the class CFeatureDiscovery for basic feature queries, or the class RFeatureControl for advanced feature queries and control.