predictivesearch/PcsServer/src/CPcsServer.cpp
branchRCL_3
changeset 18 d4f567ce2e7c
parent 15 34879f5cfc63
equal deleted inserted replaced
17:2666d9724c76 18:d4f567ce2e7c
    42     CleanupStack::PushL(self);
    42     CleanupStack::PushL(self);
    43     self->ConstructL();
    43     self->ConstructL();
    44     self->StartL(KPcsServerName);
    44     self->StartL(KPcsServerName);
    45     CleanupStack::Pop(); 
    45     CleanupStack::Pop(); 
    46     
    46     
    47     PRINT ( _L("End CPcsServer::NewL") );
    47      PRINT ( _L("End CPcsServer::NewL") );
    48     
    48     
    49     return self;
    49     return self;
    50 }
    50 }
    51 
    51 
    52 // ----------------------------------------------------------------------------
    52 // ----------------------------------------------------------------------------
    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 	iIsChineseVariant = IsChineseFeatureInitilizedL();
    73 	TBool isChineseVariant = 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(iIsChineseVariant) 
    77 	if(isChineseVariant) 
    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);
    83 	    
    83 	      
    84 	    
       
    85 	    }
    84 	    }
    86 	else 
    85 	else 
    87 	    {
    86 	    {
    88 	    // NON-Chinese variant phones. Use Algorithm 1
    87 	    // NON-Chinese variant phones. Use Algorithm 1
    89 	    PRINT ( _L("Enter CPcsServer::ConstructL() - NON-Chinese Variant Phone Algorithm Instantiated") );
    88 	    PRINT ( _L("Enter CPcsServer::ConstructL() - NON-Chinese Variant Phone Algorithm Instantiated") );
   149       
   148       
   150     FeatureManager::UnInitializeLib();
   149     FeatureManager::UnInitializeLib();
   151     
   150     
   152     return chineseFeatureInitialized;
   151     return chineseFeatureInitialized;
   153 }
   152 }
   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     }