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 // ConML Status code: 1001...1050 System wide error code |
|
62 const TInt KSConCodeFirstSymbianErr( 1000 ); |
|
63 |
|
64 struct SDeviceInfo |
|
65 { |
|
66 TSConMethodName method; |
|
67 TBool support; |
|
68 }; |
|
69 |
|
70 // Supported Backup/Restore and Install methods |
|
71 const SDeviceInfo KSupportedMethods[] = |
|
72 { |
|
73 { EInstall, ETrue }, |
|
74 { EUninstall, ETrue }, |
|
75 { EListInstalledApps, ETrue }, |
|
76 { EListDataOwners, ETrue }, |
|
77 { ESetBURMode, ETrue }, |
|
78 { ESetInstParams, ETrue }, |
|
79 { EGetDataSize, ETrue }, |
|
80 { ERequestData, ETrue }, |
|
81 { ESupplyData, ETrue }, |
|
82 { EReboot, EFalse } // reboot not supported anymore (3.2 ->) |
|
83 }; |
|
84 |
|
85 // Supported ConML version |
|
86 _LIT8( KCONMLVERSION, "2.0" ); |
|
87 // SIS mime type for installer |
|
88 _LIT8( KSISMIMEType, "x-epoc/x-sisx-app" ); |
|
89 // Java mime type for installer |
|
90 _LIT8( KMidletMIMEType, "application/java-archive" ); |
|
91 |
|
92 #endif |
|
93 |
|
94 // End of file |
|