_LIT | ( | KGSDoActivateError | , |
"DoActivateL" | |||
) |
Example usage:
// replace <featureUID> with a real UID #include <featmgr/featmgr.h> #include <bldvariant.hrh> // for feature definitions CMyClass::ConstructL() { // Sets up TLS, must be done before FeatureManager is used. FeatureManager::InitializeLibL(); // Used in destructor. iFeatMgrInitialized = ETrue; } CMyClass::ShowMenuL() { if ( FeatureManager::FeatureSupported( <featureUID> ) ) { // Feature supported, show menu item associated with it. } } CMyClass::~CMyClass() { // Do not call UnInitializeLib() if InitalizeLib() leaves. if ( iFeatMgrInitialized ) { // Frees the TLS. Must be done after FeatureManager is used. FeatureManager::UnInitializeLib(); } }
KGSDoActivateError | |
"DoActivateL" |
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.