1 /* |
|
2 * Copyright (c) 2005-2008 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 "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: CSConPCD constants |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef _SCONPCDCONSTS_H |
|
20 #define _SCONPCDCONSTS_H |
|
21 |
|
22 // Timer value used for queue polling |
|
23 const TInt KSConTimerValue( 20000 ); |
|
24 // ConML Status code: Task completed |
|
25 const TInt KSConCodeTaskCompleted( 200 ); |
|
26 // ConML Status code: Task created |
|
27 const TInt KSConCodeTaskCreated( 201 ); |
|
28 // ConML Status code: Task prcosessing started |
|
29 const TInt KSConCodeProcessingStarted( 202 ); |
|
30 // ConML Status code: Task partially completed |
|
31 const TInt KSConCodeTaskPartiallyCompleted( 206 ); |
|
32 // ConML Status code: Not found |
|
33 const TInt KSConCodeNotFound( 404 ); |
|
34 // ConML Status code: Conflict |
|
35 const TInt KSConCodeConflict( 409 ); |
|
36 // ConML Status code: Not supported |
|
37 const TInt KSConCodeNotSupported( 501 ); |
|
38 // ConML Status code: Incompatible version |
|
39 const TInt KSConCodeIncompatible( 507 ); |
|
40 // ConML Status code: Cancelled |
|
41 const TInt KSConCodeCancelled( 514 ); |
|
42 // ConML Status code: No memory |
|
43 const TInt KSConCodeNoMemory( 420 ); |
|
44 |
|
45 |
|
46 // ConML Status codes in installer errorcases |
|
47 const TInt KSConCodeInstErrUserCancel = KSConCodeCancelled; // User cancelled the operation |
|
48 const TInt KSConCodeInstErrFileCorrupted = 600; // File is corrupted |
|
49 const TInt KSConCodeInstErrInsufficientMemory = KSConCodeNoMemory; // Insufficient free memory in the drive to perform the operation |
|
50 const TInt KSConCodeInstErrPackageNotSupported = KSConCodeIncompatible; // Installation of the package is not supported |
|
51 const TInt KSConCodeInstErrSecurityFailure = 601; // Package cannot be installed due to security error |
|
52 const TInt KSConCodeInstErrMissingDependency = 602; // Package cannot be installed due to missing dependency |
|
53 const TInt KSConCodeInstErrFileInUse = 603; // Mandatory file is in use and prevents the operation |
|
54 const TInt KSConCodeInstErrGeneralError = 604; // Unknown error |
|
55 const TInt KSConCodeInstErrNoRights = 605; // The package has no rights to perform the operation |
|
56 const TInt KSConCodeInstErrNetworkFailure = 606; // Indicates that network failure aborted the operation |
|
57 const TInt KSConCodeInstErrBusy = 607; // Installer is busy doing some other operation |
|
58 const TInt KSConCodeInstErrAccessDenied = 608; // Target location of package is not accessible |
|
59 const TInt KSConCodeInstUpgradeError = 609; // The package is an invalid upgrade |
|
60 |
|
61 const TInt KSConCodeInstErrSifMissingBasePackage = 610; |
|
62 const TInt KSConCodeInstErrSifOverflow = 611; |
|
63 const TInt KSConCodeInstErrSifSameVersionAlreadyInstalled = 612; |
|
64 const TInt KSConCodeInstErrSifNewerVersionAlreadyInstalled = 613; |
|
65 const TInt KSConCodeInstErrSifAlreadyActivated = 614; |
|
66 const TInt KSConCodeInstErrSifAlreadyDeactivated = 615; |
|
67 const TInt KSConCodeInstErrSifBadComponentId = 616; |
|
68 const TInt KSConCodeInstErrSifBadInstallerConfiguration = 617; |
|
69 const TInt KSConCodeInstErrSifPackageCannotBeInstalledOnThisDevice = 618; |
|
70 const TInt KSConCodeInstErrSifUnsupportedLanguage = 619; |
|
71 const TInt KSConCodeInstErrScrWriteOperationInProgress = 620; |
|
72 const TInt KSConCodeInstErrScrReadOperationInProgress = 621; |
|
73 const TInt KSConCodeInstErrScrNoActiveTransaction = 622; |
|
74 const TInt KSConCodeInstErrScrUnsupportedLocale = 623; |
|
75 |
|
76 |
|
77 // ConML Status code: 1001...1050 System wide error code |
|
78 const TInt KSConCodeFirstSymbianErr( 1000 ); |
|
79 |
|
80 struct SDeviceInfo |
|
81 { |
|
82 TSConMethodName method; |
|
83 TBool support; |
|
84 }; |
|
85 |
|
86 // Supported Backup/Restore and Install methods |
|
87 const SDeviceInfo KSupportedMethods[] = |
|
88 { |
|
89 { EInstall, ETrue }, |
|
90 { EUninstall, ETrue }, |
|
91 { EListInstalledApps, ETrue }, |
|
92 { EListDataOwners, ETrue }, |
|
93 { ESetBURMode, ETrue }, |
|
94 { ESetInstParams, ETrue }, |
|
95 { EGetDataSize, ETrue }, |
|
96 { ERequestData, ETrue }, |
|
97 { ESupplyData, ETrue }, |
|
98 { EReboot, EFalse } // reboot not supported anymore (3.2 ->) |
|
99 }; |
|
100 |
|
101 // Supported ConML version |
|
102 _LIT8( KConMLVersion, "2.0" ); |
|
103 // SIS mime type for installer |
|
104 _LIT8( KSisMimeType, "x-epoc/x-sisx-app" ); |
|
105 // Java mime type for installer |
|
106 _LIT8( KMidletMimeType, "application/java-archive" ); |
|
107 |
|
108 #endif |
|
109 |
|
110 // End of file |
|