1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-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". |
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include <driveinfo.h> |
24 #include <driveinfo.h> |
25 |
25 |
26 // For silent installation |
26 // For silent installation |
27 #include <SWInstDefs.h> |
27 #include <SWInstDefs.h> |
|
28 #include <swi/sisregistryentry.h> |
28 |
29 |
29 class TIAUpdateVersion; |
30 class TIAUpdateVersion; |
30 class MIAUpdateNode; |
31 class MIAUpdateNode; |
|
32 class CIAUpdateBaseNode; |
|
33 class RWidgetRegistryClientSession; |
31 |
34 |
32 namespace IAUpdateUtils |
35 namespace IAUpdateUtils |
33 { |
36 { |
34 |
37 |
35 /** |
38 /** |
118 |
121 |
119 /** |
122 /** |
120 * Creates options for silent install. |
123 * Creates options for silent install. |
121 * Uses DriveToInstallL to etermine target drive to install. |
124 * Uses DriveToInstallL to etermine target drive to install. |
122 * |
125 * |
123 * @param aUid PUID of the application |
126 * @param aNode |
124 * @param aSize Estimated size of installation |
|
125 */ |
127 */ |
126 IMPORT_C SwiUI::TInstallOptions SilentInstallOptionsL( const TUid& aUid, |
128 SwiUI::TInstallOptions SilentInstallOptionsL( const CIAUpdateBaseNode& aNode ); |
127 TInt aSize ); |
129 |
128 |
130 |
129 |
131 |
130 |
132 |
131 /** |
133 /** |
132 * Finds drive where a package is currently installed |
134 * Finds drive where a package is currently installed |
133 * |
135 * |
134 * @param aLocationDrive Drive where a package is currently installed |
136 * @param aLocationDrive Drive where a package is currently installed |
135 * @return ETrue if a package previously installed to an available drive |
137 * @return ETrue if a package previously installed to an available drive |
136 **/ |
138 **/ |
137 TBool InstalledDriveL( const TUid& aUid, TDriveUnit& aLocationDrive ); |
139 TBool InstalledDriveL( RFs& aFs, const TUid& aUid, TDriveUnit& aLocationDrive ); |
|
140 |
|
141 void InstalledDriveWidgetL( RFs& aFs, |
|
142 RWidgetRegistryClientSession& aWidgetRegistry, |
|
143 const TUid& aUid, |
|
144 TDriveUnit& aLocationDrive ); |
138 |
145 |
139 TBool NextInternalDriveL( RFs& aFs, |
146 TBool NextInternalDriveL( RFs& aFs, |
140 TDriveUnit aCurrentDrive, |
147 TDriveUnit aCurrentDrive, |
141 TDriveUnit& aNextDrive ); |
148 TDriveUnit& aNextDrive ); |
142 |
149 |
147 * @param aSize Estimated size of installation |
154 * @param aSize Estimated size of installation |
148 * @return Drive to install |
155 * @return Drive to install |
149 **/ |
156 **/ |
150 TDriveUnit DriveToInstallL( const TUid& aUid, TInt aSize ); |
157 TDriveUnit DriveToInstallL( const TUid& aUid, TInt aSize ); |
151 |
158 |
|
159 TDriveUnit DriveToInstallWidgetL( const TDesC& aIdentifier ); |
|
160 |
152 TDriveUnit BiggestInternalDriveL(); |
161 TDriveUnit BiggestInternalDriveL(); |
153 |
162 |
154 TBool InternalDriveWithSpaceL( TInt aSize, |
163 TBool InternalDriveWithSpaceL( TInt aSize, |
155 TDriveUnit aPreferredDriveUnit, |
164 TDriveUnit aPreferredDriveUnit, |
156 TDriveUnit& aTargetDriveUnit ); |
165 TDriveUnit& aTargetDriveUnit ); |