diff -r 6b5524b4f673 -r 38bb213f60ba predictivesearch/PcsServer/src/CPcsServer.cpp --- a/predictivesearch/PcsServer/src/CPcsServer.cpp Wed Sep 15 11:56:55 2010 +0300 +++ b/predictivesearch/PcsServer/src/CPcsServer.cpp Wed Oct 13 14:15:33 2010 +0300 @@ -44,7 +44,7 @@ self->StartL(KPcsServerName); CleanupStack::Pop(); - PRINT ( _L("End CPcsServer::NewL") ); + PRINT ( _L("End CPcsServer::NewL") ); return self; } @@ -70,17 +70,18 @@ iPcs = CPcsPluginInterface::NewL(); // Check if the phone is chinese feature id installed - TBool isChineseVariant = IsChineseFeatureInitilizedL(); + iIsChineseVariant = IsChineseFeatureInitilizedL(); // Create the plugin for the required algorithm // Matches the ECOM Plugin's display name definition in rss file // Check for the chinese feature id flag. - if(isChineseVariant) + if(iIsChineseVariant) { // Chinese variant phones. Use Algorithm 2 PRINT ( _L("Enter CPcsServer::ConstructL() - Chinese Variant Phone Algorithm Instantiated") ); TBuf algorithmName(KPcsAlgorithm_Chinese); iPcs->InstantiateAlgorithmL(algorithmName); - + + } else { @@ -133,7 +134,7 @@ CPcsPluginInterface* CPcsServer::PluginInterface() { return iPcs; -} +}; // ---------------------------------------------------------------------------- // CPcsServer::IsChineseFeatureInitilizedL() @@ -150,3 +151,12 @@ return chineseFeatureInitialized; } + +// ---------------------------------------------------------------------------- +// CPcsServer::IsChineseVariant() const +// Returns ETrue if there is Chinese variant feature in phone +// ---------------------------------------------------------------------------- +TBool CPcsServer::IsChineseVariant() const + { + return iIsChineseVariant; + }