1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Error codes defined by the Universal Software Install Framework. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @publishedAll |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef USIFERROR_H |
|
27 #define USIFERROR_H |
|
28 |
|
29 |
|
30 namespace Usif |
|
31 { |
|
32 |
|
33 enum TErrorCategory { |
|
34 ENone = 0, // No Error |
|
35 ELowMemory = 1, // Low on RAM |
|
36 ELowDiskSpace = 2, // Low diskspace |
|
37 ENetworkUnavailable = 3, // Network not available |
|
38 EInstallerBusy = 4, // Installer is in use |
|
39 ECorruptedPackage = 5, // Package corrupt |
|
40 EApplicationNotCompatible = 6, // Not compatible |
|
41 ESecurityError = 7, // Security Error |
|
42 EUnexpectedError = 8, // Unexpected Error |
|
43 EUserCancelled = 9, // Install Cancelled |
|
44 EUninstallationBlocked = 10,// Uninstallation blocked |
|
45 EUnknown = 11 // Unknown error |
|
46 }; |
|
47 |
|
48 } |
|
49 |
|
50 |
|
51 /** A general error in one of the Unified Installer Framework components. */ |
|
52 const TInt KErrSifUnknown = -10300; |
|
53 |
|
54 /** Installation of a software upgrade could not complete because the package being upgraded was not installed on the device. */ |
|
55 const TInt KErrSifMissingBasePackage = -10301; |
|
56 |
|
57 /** Installation of a software component could not complete because one or more of the packages it depends on are not present on the device. */ |
|
58 const TInt KErrSifMissingDependencies = -10302; |
|
59 |
|
60 /** Installation of a software component could not complete because there was no matching installer for the package. */ |
|
61 const TInt KErrSifUnsupportedSoftwareType = -10303; |
|
62 |
|
63 /** Installation of a software component failed because the delivery package was corrupt. */ |
|
64 const TInt KErrSifCorruptedPackage = -10304; |
|
65 |
|
66 /** Installation of a software component failed since the parameters passed via the Software Install Framework were too large. */ |
|
67 const TInt KErrSifOverflow = -10307; |
|
68 |
|
69 /** Installation of a software component failed because the same version of the component is already installed on the system. */ |
|
70 const TInt KErrSifSameVersionAlreadyInstalled = -10309; |
|
71 |
|
72 /** Installation of a software component failed because a newer version of the same component is already installed on the system. */ |
|
73 const TInt KErrSifNewerVersionAlreadyInstalled = -10310; |
|
74 |
|
75 /** Activation of a component failed because it was already activated. */ |
|
76 const TInt KErrSifAlreadyActivated = -10311; |
|
77 |
|
78 /** Deactivation of a component failed because it was already inactive. */ |
|
79 const TInt KErrSifAlreadyDeactivated = -10312; |
|
80 |
|
81 /** The component id specified is not installed on the system. */ |
|
82 const TInt KErrSifBadComponentId = -10313; |
|
83 |
|
84 /** The component was not installed due to lack of free space on the target drive. */ |
|
85 const TInt KErrSifNotEnoughSpace = -10314; |
|
86 |
|
87 /** The component was not installed due to an internal problem with the corresponding installer. */ |
|
88 const TInt KErrSifBadInstallerConfiguration = -10315; |
|
89 |
|
90 /** Installation of a component failed because the package is not targeted for this device. */ |
|
91 const TInt KErrSifPackageCannotBeInstalledOnThisDevice = -10316; |
|
92 |
|
93 /** Installation of a component failed because the component's language is not supported this device. */ |
|
94 const TInt KErrSifUnsupportedLanguage = -10317; |
|
95 |
|
96 /** At least one writing operation is in progress on the SCR server. A new transaction or subsession cannot be created.*/ |
|
97 const TInt KErrScrWriteOperationInProgress = -10320; |
|
98 |
|
99 /** At least one reading operation exists on the SCR server. A new transaction cannot be created. */ |
|
100 const TInt KErrScrReadOperationInProgress = -10321; |
|
101 |
|
102 /** There is no active transaction on the SCR Server owned by the calling session. */ |
|
103 const TInt KErrScrNoActiveTransaction = -10322; |
|
104 |
|
105 /** The requested value couldn't be found for the specified locale. */ |
|
106 const TInt KErrScrUnsupportedLocale = -10323; |
|
107 |
|
108 #endif // USIFERROR_H |
|