|
1 /* |
|
2 * Copyright (c) 2002 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 * HTTP status codes for COD Engine. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef COD_STATUS_H |
|
22 #define COD_STATUS_H |
|
23 |
|
24 // Status codes. |
|
25 |
|
26 // (Common for COD and DD) |
|
27 LOCAL_D const TInt KHttp900Success = 900; |
|
28 LOCAL_D const TInt KHttp901InsufficientMemory = 901; |
|
29 LOCAL_D const TInt KHttp902UserCancelled = 902; |
|
30 LOCAL_D const TInt KHttp903LossOfService = 903; |
|
31 LOCAL_D const TInt KHttp905AttributeMismatch = 905; |
|
32 LOCAL_D const TInt KHttp906InvalidDescriptor = 906; |
|
33 LOCAL_D const TInt KHttp907InvalidType = 907; |
|
34 LOCAL_D const TInt KHttp909RequestedRangeNotSatisfiable = 909; |
|
35 LOCAL_D const TInt KHttp910NoMemory = 910; |
|
36 LOCAL_D const TInt KHttp970MixedStatus = 970; |
|
37 LOCAL_D const TInt KHttp981DownloadCompletion = 981; |
|
38 |
|
39 // (COD only) |
|
40 LOCAL_D const TInt KHttp921UserAborted = 921; |
|
41 LOCAL_D const TInt KHttp922DeviceAborted = 922; |
|
42 LOCAL_D const TInt KHttp923NonAcceptableContent = 923; |
|
43 LOCAL_D const TInt KHttp924LoaderError = 924; |
|
44 |
|
45 // (DD only) |
|
46 LOCAL_D const TInt KHttp951InvalidDdVersion = 951; |
|
47 LOCAL_D const TInt KHttp952DeviceAborted = 952; |
|
48 LOCAL_D const TInt KHttp953NonAcceptableContent = 953; |
|
49 LOCAL_D const TInt KHttp954LoaderError = 954; |
|
50 LOCAL_D const TInt KHttp955PreconditionFailed = 955; |
|
51 LOCAL_D const TInt KHttp956LicenseSuccess = 956; |
|
52 LOCAL_D const TInt KHttp957LicenseFailed = 957; |
|
53 |
|
54 // Status strings. |
|
55 |
|
56 // (Common for COD and DD) |
|
57 _LIT8( KText900Success, "900 Success" ); |
|
58 _LIT8( KText901InsufficientMemory, "901 Insufficient Memory" ); |
|
59 _LIT8( KText902UserCancelled, "902 User Cancelled" ); |
|
60 _LIT8( KText903LossOfService, "903 Loss of Service" ); |
|
61 _LIT8( KText905AttributeMismatch, "905 Attribute Mismatch" ); |
|
62 _LIT8( KText906InvalidDescriptor, "906 Invalid Descriptor" ); |
|
63 _LIT8( KText907InvalidType, "907 Invalid Type" ); |
|
64 _LIT8( KText910NoMemory, "910 No Memory" ); |
|
65 _LIT8( KText970MixedStatus, "970 Mixed Status" ); |
|
66 _LIT8( KText981DownloadCompletion, "981 Download Completion" ); |
|
67 // (COD only) |
|
68 _LIT8( KText921UserAborted, "921 User Aborted" ); |
|
69 _LIT8( KText922DeviceAborted, "922 Device Aborted" ); |
|
70 _LIT8( KText923NonAcceptableContent, "923 Non-acceptable Content" ); |
|
71 _LIT8( KText924LoaderError, "924 Loader Error" ); |
|
72 |
|
73 // (DD only) |
|
74 _LIT8( KText951InvalidDdVersion, "951 Invalid DD Version" ); |
|
75 _LIT8( KText952DeviceAborted, "952 Device Aborted" ); |
|
76 _LIT8( KText953NonAcceptableContent, "953 Non-acceptable Content" ); |
|
77 _LIT8( KText954LoaderError, "954 Loader Error" ); |
|
78 _LIT8( KText955MediaObjectUpdated, "955 Media Object Updated" ); |
|
79 |
|
80 // OMA2 (5.3.3): second line should be added conaining the License status code and status message |
|
81 _LIT8( KText956LicenseSuccess, "900 Sussess \r\n 956 License Retrieval Succeeded" ); |
|
82 |
|
83 _LIT8( KText957LicenseFailed, "957 License Retrieval Failed" ); |
|
84 |
|
85 #endif /* def COD_STATUS_H */ |