CNSmlDmPcdata Class Reference

class CNSmlDmPcdata : public CBase

CNSmlDmPcdata is data element in DDF tree structure

Since

Inherits from

Constructor & Destructor Documentation

CNSmlDmPcdata()

CNSmlDmPcdata()

Constructor

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();  
         }
     }

~CNSmlDmPcdata()

~CNSmlDmPcdata()

Destructor

Member Functions Documentation

Compare(const TUint8 *, TInt)

TBool Compare(const TUint8 *aStr,
TIntaLength
)

Compare data

Parameters

const TUint8 * aStrData start pointer
TInt aLengthData length

DataL(const TDesC8 &)

voidDataL(const TDesC8 &aData)

Sets data

Parameters

const TDesC8 & aDataData to be set

FreeContent()

voidFreeContent()

Frees content

Member Data Documentation

TAny * iContent

TAny *iContent

Pointer to the data

TInt iLength

TInt iLength

Length of the data in this PCDATA structure