1 /* |
1 /* |
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
277 LeaveIfNotErrorL( err, KErrArgument, KErrGeneral ); |
277 LeaveIfNotErrorL( err, KErrArgument, KErrGeneral ); |
278 |
278 |
279 return InstallationServiceL().IsApplicationInstalledL( aUid, version ); |
279 return InstallationServiceL().IsApplicationInstalledL( aUid, version ); |
280 } |
280 } |
281 |
281 |
282 |
282 // --------------------------------------------------------------------------- |
|
283 // Checks if the widget with the given identifier is installed |
|
284 // call CNcdInstallationService in deviceinteraction dll |
|
285 // --------------------------------------------------------------------------- |
|
286 // |
|
287 TNcdApplicationStatus CNcdProviderUtils::IsWidgetInstalledL( |
|
288 const TDesC& aIdentifier, const TDesC& aVersion ) |
|
289 { |
|
290 TCatalogsVersion version; |
|
291 TRAPD( err, TCatalogsVersion::ConvertL( version, aVersion ) ); |
|
292 LeaveIfNotErrorL( err, KErrArgument, KErrGeneral ); |
|
293 |
|
294 return InstallationServiceL().IsWidgetInstalledL( aIdentifier, version ); |
|
295 } |
|
296 |
|
297 // --------------------------------------------------------------------------- |
|
298 // Calling widget registry API to return the Uid of the widget with given ident |
|
299 // --------------------------------------------------------------------------- |
|
300 // |
|
301 TUid CNcdProviderUtils::WidgetUidL( const TDesC& aIdentifier) |
|
302 { |
|
303 return InstallationServiceL().WidgetUidL( aIdentifier ); |
|
304 } |
283 // --------------------------------------------------------------------------- |
305 // --------------------------------------------------------------------------- |
284 // |
306 // |
285 // --------------------------------------------------------------------------- |
307 // --------------------------------------------------------------------------- |
286 // |
308 // |
287 TInt CNcdProviderUtils::CompareVersionsL( |
309 TInt CNcdProviderUtils::CompareVersionsL( |