CESMRFeatureSettings Class Reference

class CESMRFeatureSettings : public CBase

CESMRFeatureSettings is utility to access MRUI Features repository. Usage:

   // instantiate settings
   CESMRFeatureSettings* setting = CESMRFeatureSettings::NewL()
   // query feature
   TBool locationFeatures = setting->FeatureSupported( EESMRUILocationFeatures );
   if ( locationFeatures )
      {
      // Do something feature specific
      }
   // free resources
   delete settings;

esmrcommon.lib

Inherits from

  • CESMRFeatureSettings

Constructor & Destructor Documentation

CESMRFeatureSettings()

CESMRFeatureSettings()[private]

~CESMRFeatureSettings()

~CESMRFeatureSettings()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

FeatureSupported(TUint)

IMPORT_C TBoolFeatureSupported(TUintaFeatures)const

Gets feature setting. The setting must be enumerated in CESMRFeatureSettings::TFeature enumeration. Multiple features can be queried at the same time by bitwise-oring the corresponding feature flags.

Parameters

TUint aFeaturesthe features.

MapFeature(TUint)

TInt MapFeature(TUintaFeature)const [private]

Parameters

TUint aFeature

NewL()

IMPORT_C CESMRFeatureSettings *NewL()[static]

NewLC()

IMPORT_C CESMRFeatureSettings *NewLC()[static]

Member Enumerations Documentation

Enum TFeature

Feature setting flags.

Enumerators

EESMRUIMnFwIntegration = 0x1

Map and Navigation Fw support

EESMRUIContactsIntegration = 0x2

Contacts support

EESMRUILandmarksIntegration = 0x4

Landmarks application support

EESMRUIPreviousLocationsList = 0x8

Previous locations list

EESMRUILocationFeatures = 0xf

Any of the previous location features

EMRUIMeetingRequestViewerCmailOnly = 0x10

Meeting request viewer only for Cmail

EMRUIAllFeatures

Any of the prevuious features

Enum TFeatureIndex

Feature index array for mapping features

Enumerators

EESMRUIMnFwIntegrationIndex = 0
EESMRUIContactsIntegrationIndex
EESMRUILandmarksIntegrationIndex
EESMRUIPreviousLocationsListIndex
EMRUIMeetingRequestViewerCmailIndex
EESMRUINumFeatures

Member Data Documentation

TInt iFeatures

TInt iFeatures[private]

Feature status array