CFeatMngrExample Class Reference

List of all members.

Public Member Functions

virtual ~CFeatMngrExample ()
void RequestCharacter ()
void ProcessKeyPressL (TChar)
virtual void DoCancel ()
virtual void RunL ()
void AddL ()
void DeleteL ()
void UpdateL ()
void ListFeaturesL ()
void CheckFeatureSupportL ()
void EnableFeatureL ()
TInt64 GetUserInput (TBool aDecimal)

Static Public Member Functions

static CFeatMngrExampleNewL (TInt aPriority=EPriorityStandard)

Protected Member Functions

void ConstructL ()

Detailed Description

Demonstrates how to use the RFeatureControl class to add, delete, update and modify features.

This class presents the main menu to the user. Depending on the user's input, it performs various feature-related operations. It also creates and runs the FeatureChecker process so that any changes to features made in this process receive corresponding notification.

Definition at line 33 of file FeatMngrExample.h.


Constructor & Destructor Documentation

CFeatMngrExample::~CFeatMngrExample (  )  [virtual]

Destructor

Definition at line 58 of file FeatMngrExample.cpp.


Member Function Documentation

void CFeatMngrExample::ProcessKeyPressL ( TChar  aChar  ) 

This function is called after the user has made a selection from the menu options. Depending on the user's choice, the appropriate function is called.

Definition at line 80 of file FeatMngrExample.cpp.

void CFeatMngrExample::AddL (  ) 

Gets the UID of a feature added by the user. A limited range of UIDs is subscribed to by the FeatureChecker process. The UID should be in that range.

Definition at line 124 of file FeatMngrExample.cpp.

void CFeatMngrExample::DeleteL (  ) 

Gets the UID of the feature which needs to be deleted and deletes it. This causes the corresponding notification to be received by the featurechecker process.

Definition at line 162 of file FeatMngrExample.cpp.

void CFeatMngrExample::UpdateL (  ) 

Updates the feature data.

Definition at line 315 of file FeatMngrExample.cpp.

void CFeatMngrExample::ListFeaturesL (  ) 

Gets the list of all the current features.

Definition at line 245 of file FeatMngrExample.cpp.

void CFeatMngrExample::CheckFeatureSupportL (  ) 

Checks if the given feature is supported in the current environment. If it is not supported it prints an error message, depending on the value returned by RFeatureControl::FeatureSupported().

Definition at line 207 of file FeatMngrExample.cpp.

void CFeatMngrExample::EnableFeatureL (  ) 

Gets the UID of the feature whose feature flag needs to be updated. This causes the corresponding notification to be received by the featurechecker process.

Definition at line 182 of file FeatMngrExample.cpp.

TInt64 CFeatMngrExample::GetUserInput ( TBool  aDecimal  ) 

Takes input from the console and returns a TInt64 value. It resembles scanf. It takes a boolean value as a parameter which identifies whether the data to be scanned is decimal or hexadecimal.

Parameters:
aDecimal When the user inputs a decimal number this is set to true and when the input is hexadecimal, it is false.

Definition at line 277 of file FeatMngrExample.cpp.


Generated by  doxygen 1.6.2