CNSmlDMIAPMatcher Class Reference
class CNSmlDMIAPMatcher : public CBase |
CNSmlDMIAPMatcher contains services for generating URI from IAPId and vice versa in DM plug-in adapters. The class needs the working MSmlDmCallback callback interface for operating, so ths can be used only by DM plug-in adapters
Constructor & Destructor Documentation
Member Functions Documentation
ConstructL(MSmlDmCallback *)
DesToInt(const TDesC8 &)
Changes the given descriptor to Integer
Parameters
const TDesC8 & aLuid | Luid in descriptor format |
GetConRef()
const TDesC8 & | GetConRef | ( | ) | [private] |
Return the last uri segment of the aURI
IAPIdFromURIL(const TDesC8 &)
Gets the IAP id which corresponds to given URI
Parameters
const TDesC8 & aURI | Accespoint URI |
LastURISeg(const TDesC8 &)
Return the last uri segment of the aURI
NewL(MSmlDmCallback *)
Two-phased 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();
}
}
NewLC(MSmlDmCallback *)
Two-phased constructor, pushes pointer to cleanup stack.
RemoveDotSlash(const TDesC8 &)
Return the URI without ./ at the beginning, if those exist
RemoveExtraChar(const TDesC8 &)
Return the URI without . or / at the end or beginng, if exist
URIFromIAPIdL(TInt)
Generates the URI which corresponds to given IAP Id
Member Data Documentation
MSmlDmCallback * iCallback
Pointer to callback interface
TBool
iFeatMgrInitialized
TBool
| iFeatMgrInitialized | [private] |
Boolean to check FeatMgr Initialization
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.