predictivesearch/PcsServer/src/CPcsServer.cpp
branchRCL_3
changeset 45 34879f5cfc63
parent 15 e8e3147d53eb
child 58 d4f567ce2e7c
equal deleted inserted replaced
39:a6539d1e8e43 45:34879f5cfc63
    68 	PRINT ( _L("Enter CPcsServer::ConstructL") );
    68 	PRINT ( _L("Enter CPcsServer::ConstructL") );
    69 	
    69 	
    70 	iPcs = CPcsPluginInterface::NewL();
    70 	iPcs = CPcsPluginInterface::NewL();
    71     
    71     
    72 	// Check if the phone is chinese feature id installed
    72 	// Check if the phone is chinese feature id installed
    73 	TBool isChineseVariant = IsChineseFeatureInitilizedL();
    73 	iIsChineseVariant = IsChineseFeatureInitilizedL();
    74     // Create the plugin for the required algorithm
    74     // Create the plugin for the required algorithm
    75     // Matches the ECOM Plugin's display name definition in rss file
    75     // Matches the ECOM Plugin's display name definition in rss file
    76     // Check for the chinese feature id flag.
    76     // Check for the chinese feature id flag.
    77 	if(isChineseVariant) 
    77 	if(iIsChineseVariant) 
    78 	    {
    78 	    {
    79 	    // Chinese variant phones. Use Algorithm 2
    79 	    // Chinese variant phones. Use Algorithm 2
    80 	    PRINT ( _L("Enter CPcsServer::ConstructL() - Chinese Variant Phone Algorithm Instantiated") );
    80 	    PRINT ( _L("Enter CPcsServer::ConstructL() - Chinese Variant Phone Algorithm Instantiated") );
    81 	    TBuf<KAlgorithmNameMaxLen> algorithmName(KPcsAlgorithm_Chinese);
    81 	    TBuf<KAlgorithmNameMaxLen> algorithmName(KPcsAlgorithm_Chinese);
    82 	    iPcs->InstantiateAlgorithmL(algorithmName);
    82 	    iPcs->InstantiateAlgorithmL(algorithmName);
   149       
   149       
   150     FeatureManager::UnInitializeLib();
   150     FeatureManager::UnInitializeLib();
   151     
   151     
   152     return chineseFeatureInitialized;
   152     return chineseFeatureInitialized;
   153 }
   153 }
       
   154 
       
   155 // ----------------------------------------------------------------------------
       
   156 // CPcsServer::IsChineseVariant() const
       
   157 // Returns ETrue if there is Chinese variant feature in phone
       
   158 // ---------------------------------------------------------------------------- 
       
   159 TBool CPcsServer::IsChineseVariant() const
       
   160     {
       
   161     return iIsChineseVariant;
       
   162     }