equal
deleted
inserted
replaced
65 // ---------------------------------------------------------------------------- |
65 // ---------------------------------------------------------------------------- |
66 void CPcsServer::ConstructL() |
66 void CPcsServer::ConstructL() |
67 { |
67 { |
68 PRINT ( _L("Enter CPcsServer::ConstructL") ); |
68 PRINT ( _L("Enter CPcsServer::ConstructL") ); |
69 |
69 |
70 pcs = 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 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 |
77 if(isChineseVariant) |
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 pcs->InstantiateAlgorithmL(algorithmName); |
82 iPcs->InstantiateAlgorithmL(algorithmName); |
83 |
83 |
84 |
84 |
85 } |
85 } |
86 else |
86 else |
87 { |
87 { |
88 // NON-Chinese variant phones. Use Algorithm 1 |
88 // NON-Chinese variant phones. Use Algorithm 1 |
89 PRINT ( _L("Enter CPcsServer::ConstructL() - NON-Chinese Variant Phone Algorithm Instantiated") ); |
89 PRINT ( _L("Enter CPcsServer::ConstructL() - NON-Chinese Variant Phone Algorithm Instantiated") ); |
90 TBuf<KAlgorithmNameMaxLen> algorithmName(KPcsAlgorithm_NonChinese); |
90 TBuf<KAlgorithmNameMaxLen> algorithmName(KPcsAlgorithm_NonChinese); |
91 // TBuf<KAlgorithmNameMaxLen> algorithmName(KPcsAlgorithm_Chinese); |
91 // TBuf<KAlgorithmNameMaxLen> algorithmName(KPcsAlgorithm_Chinese); |
92 pcs->InstantiateAlgorithmL(algorithmName); |
92 iPcs->InstantiateAlgorithmL(algorithmName); |
93 |
93 |
94 } |
94 } |
95 |
95 |
96 PRINT ( _L("End CPcsServer::ConstructL") ); |
96 PRINT ( _L("End CPcsServer::ConstructL") ); |
97 } |
97 } |
101 // Destructor |
101 // Destructor |
102 // ---------------------------------------------------------------------------- |
102 // ---------------------------------------------------------------------------- |
103 CPcsServer::~CPcsServer() |
103 CPcsServer::~CPcsServer() |
104 { |
104 { |
105 PRINT ( _L("Enter CPcsServer::~CPcsServer") ); |
105 PRINT ( _L("Enter CPcsServer::~CPcsServer") ); |
106 if(pcs) |
106 delete iPcs; |
107 { |
|
108 delete pcs; |
|
109 pcs=NULL; |
|
110 } |
|
111 PRINT ( _L("End CPcsServer::~CPcsServer") ); |
107 PRINT ( _L("End CPcsServer::~CPcsServer") ); |
112 } |
108 } |
113 |
109 |
114 // ---------------------------------------------------------------------------- |
110 // ---------------------------------------------------------------------------- |
115 // CPcsServer::NewSessionL |
111 // CPcsServer::NewSessionL |
135 // CPcsServer::PluginInterface |
131 // CPcsServer::PluginInterface |
136 // Get the plugin interface |
132 // Get the plugin interface |
137 // ---------------------------------------------------------------------------- |
133 // ---------------------------------------------------------------------------- |
138 CPcsPluginInterface* CPcsServer::PluginInterface() |
134 CPcsPluginInterface* CPcsServer::PluginInterface() |
139 { |
135 { |
140 return pcs; |
136 return iPcs; |
141 }; |
137 }; |
142 |
138 |
143 // ---------------------------------------------------------------------------- |
139 // ---------------------------------------------------------------------------- |
144 // CPcsServer::IsChineseFeatureInitilizedL() |
140 // CPcsServer::IsChineseFeatureInitilizedL() |
145 // Returns ETrue if Chinese variant feature is initilized |
141 // Returns ETrue if Chinese variant feature is initilized |