162 // InstallerResultMessage is never received |
162 // InstallerResultMessage is never received |
163 resetDefaultErrorValues(); |
163 resetDefaultErrorValues(); |
164 |
164 |
165 if (INSTALL_OPERATION == operation) |
165 if (INSTALL_OPERATION == operation) |
166 { |
166 { |
167 // Return the component ids of the installed Java application. |
167 // Return the component id of the installed Java application. |
168 TComponentId resultComponentId = iIntPairs[L"suite-cid"]; |
168 TComponentId resultComponentId = iIntPairs[L"suite-cid"]; |
169 TRAP(err, mResults.AddIntL(KSifOutParam_ComponentId, resultComponentId)); |
169 RArray<TInt> intArray; |
|
170 TRAP(err, intArray.AppendL(resultComponentId)); |
170 if (KErrNone != err) |
171 if (KErrNone != err) |
171 { |
172 { |
172 ELOG1(EJavaInstaller, |
173 ELOG1(EJavaInstaller, |
173 "ResultsServer::processMessage mResults.AddIntL cid error %d", err); |
174 "ResultsServer::processMessage intArray.AppendL " |
|
175 "error %d", err); |
174 } |
176 } |
|
177 else |
|
178 { |
|
179 TRAP(err, mResults.AddIntArrayL( |
|
180 KSifOutParam_ComponentId, intArray)); |
|
181 if (KErrNone != err) |
|
182 { |
|
183 ELOG1(EJavaInstaller, |
|
184 "ResultsServer::processMessage " |
|
185 "mResults.AddIntL cid error %d", err); |
|
186 } |
|
187 } |
|
188 intArray.Close(); |
175 } |
189 } |
176 else if (UNINSTALL_OPERATION == operation) |
190 else if (UNINSTALL_OPERATION == operation) |
177 { |
191 { |
178 // Return nothing if uninstall succeeds |
192 // Return nothing if uninstall succeeds |
179 } |
193 } |