|
1 /* |
|
2 * Copyright (c) 2002-2007 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: Contains the TPrintErrorMessageCodes and TPrintMessageCodes enumerations. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PRINTMESSAGECODES_H |
|
20 #define PRINTMESSAGECODES_H |
|
21 |
|
22 /// Global printing Error Message Codes. |
|
23 // All supported by UI |
|
24 enum TPrintErrorMessageCodes |
|
25 { |
|
26 EObexConnectError = -3000, |
|
27 EObexSendError = -3001, |
|
28 EObexDisconnectError = -3002, |
|
29 EObexGeneralError = -3003, |
|
30 }; |
|
31 |
|
32 /// Global printing Message Codes. |
|
33 enum TPrintMessageCodes |
|
34 { |
|
35 // No message |
|
36 ENoMessage = 0, |
|
37 |
|
38 // Print Progress Codes |
|
39 EJobPending = 3100, |
|
40 EPrinting = 3101, |
|
41 ECopying = 3102, |
|
42 ECancelling = 3103, |
|
43 ECancellingNoMessage = 3104, |
|
44 |
|
45 // Pict Bridge |
|
46 EPbOutOfPaper = 3300, ///<@deprecated Use TPrintMessageCodes::EPbStatusErrorReasonPaperEmpty |
|
47 EPbCheckPrinter = 3301, |
|
48 EPbPrinterIsDisconnected = 3302, |
|
49 EPbPrinterIsConnected = 3303, |
|
50 EPbFileNotSupported = 3304, |
|
51 EPbFileNotFound = 3305, |
|
52 |
|
53 EPbStatusErrorReasonNoReason, /*3306*/ ///<@brief No reason |
|
54 EPbStatusErrorReasonPaper, ///<@brief Paper-related error |
|
55 EPbStatusErrorReasonInk, ///<@brief Ink-related error |
|
56 EPbStatusErrorReasonHardware, ///<@brief Hardware-related error |
|
57 EPbStatusErrorReasonFile, ///<@brief File-related error |
|
58 EPbStatusErrorReasonPaperEmpty, /*3311*/ ///<@brief Paper is empty |
|
59 EPbStatusErrorReasonPaperLoad, ///<@brief Load error - paper not loaded correctly |
|
60 EPbStatusErrorReasonPaperEject, ///<@brief Eject error - paper not ejected correctly |
|
61 EPbStatusErrorReasonPaperMedia, ///<@brief Media error - paper is not detected, paper skewed, roll paper connot be cut or torn-off |
|
62 EPbStatusErrorReasonPaperJam, ///<@brief Paper jam |
|
63 EPbStatusErrorReasonPaperNearlyEmpty, ///<@brief Paper nearly empty |
|
64 EPbStatusErrorReasonPaperCombination, ///<@brief Paper type / paper size combination not supported, or paper found in printer does not match request |
|
65 EPbStatusErrorReasonInkEmpty, /*18*/ ///<@brief Ink empty |
|
66 EPbStatusErrorReasonInkLow, ///<@brief Ink low |
|
67 EPbStatusErrorReasonInkWaste, ///<@brief Waste ink error (waste-ink reservior full). |
|
68 EPbStatusErrorReasonHardwareFatal, /*21*/ ///<@brief Fatal error |
|
69 EPbStatusErrorReasonWarning, // warning |
|
70 EPbStatusErrorReasonHardwareServiceCall, ///<@brief Service call |
|
71 EPbStatusErrorReasonHardwarePrinterUnavailable, ///<@brief Printer unavailable (performing maintenance or otherwise occupied) |
|
72 EPbStatusErrorReasonHardwarePrinterBusy, ///<@brief Printer busy (processing a job from another source, e.g. a PC) |
|
73 EPbStatusErrorReasonHardwareLever, ///<@brief Lever error (lever position not correct) |
|
74 EPbStatusErrorReasonHardwareCoverOpen, ///<@brief Cover open |
|
75 EPbStatusErrorReasonHardwareNoMarkingAgent, ///<@brief No marking agent (e.g. missing printer head) |
|
76 EPbStatusErrorReasonHardwareInkCoverOpen, ///<@brief Ink cover open |
|
77 EPbStatusErrorReasonHardwareNoInkCartridge, ///<@brief No ink cartridge |
|
78 EPbStatusErrorReasonFilePrintInfo, /*31*/ ///<@brief printInfo error (specified <printInfo> is too large). |
|
79 EPbStatusErrorReasonFileFileDecode, ///<@brief File decode error (picture format of specified image cannot be decoded). |
|
80 |
|
81 // Printer status reasons |
|
82 EPrintReasonAttentionRequired, /*33*/ ///<@brief Indicates reason other than those listed |
|
83 EPrintReasonPaused, ///<@brief Someone has paused the printer and the PrinterState is "stopped". In this state, a Printer may not produce printed output. |
|
84 EPrintReasonOutputAreaAlmostFull, ///<@brief One or more output area is almost full: e.g., tray, stacker, collator. |
|
85 EPrintReasonOutputAreaFull, ///<@brief One or more output area is full: e.g., tray, stacker, collator. |
|
86 EPrintReasonMarkerSupplyLow, ///<@brief The device is low on at least one marker supply: e.g., toner, ink, ribbon. |
|
87 EPrintReasonMarkerSupplyEmpty, ///<@brief The device is out of at least one marker supply: e.g., toner, ink, ribbon. |
|
88 EPrintReasonMarkerFailure, ///<@brief The device has at least one marking device which has failed and requires service or replacement: e.g., pen. |
|
89 |
|
90 // OBEX response codes |
|
91 EObexReserved, ///<@brief Reserved |
|
92 EObexContinue, ///<@brief Continue |
|
93 EObexOKSuccess, ///<@brief OK, Success |
|
94 EObexCreated, ///<@brief Created |
|
95 EObexAccepted, ///<@brief Accepted |
|
96 EObexNonAuthoritativeInformation, ///<@brief Non-Authoritative Information |
|
97 EObexNoContent, ///<@brief No Content |
|
98 EObexResetContent, ///<@brief Reset Content |
|
99 EObexPartialContent, ///<@brief Partial Content |
|
100 EObexMultipleChoices, ///<@brief Multiple Choices |
|
101 EObexMovedPermanently, ///<@brief Moved Permanently |
|
102 EObexMovedTemporarily, ///<@brief Moved Temporarily |
|
103 EObexSeeOther, ///<@brief See Other |
|
104 EObexNotModified, ///<@brief Not Modified |
|
105 EObexUseProxy, ///<@brief Use Proxy |
|
106 EObexBadRequest, ///<@brief Bad Request - server could not understand the request |
|
107 EObexUnauthorized, ///<@brief Unauthorized |
|
108 EObexPaymentRequired, ///<@brief Payment required |
|
109 EObexForbidden, ///<@brief Forbidden: operation is understood but refused |
|
110 EObexNotFound, ///<@brief Not found DPS: Object or File does not exist. |
|
111 EObexMethodNotAllowed, ///<@brief Method not allowed |
|
112 EObexNotAcceptable, ///<@brief Not acceptable |
|
113 EObexProxyAuthRequired, ///<@brief Proxy authentication is required |
|
114 EObexRequestTimedOut, ///<@brief Request timed out |
|
115 EObexConflict, ///<@brief Conflict |
|
116 EObexGone, ///<@brief Gone |
|
117 EObexLengthRequired, ///<@brief Length Required |
|
118 EObexPreconditionFailed, ///<@brief Precondition failed |
|
119 EObexRequestedEntityTooLarge, ///<@brief Requested entity is too large |
|
120 EObexRequestedURLTooLarge, ///<@brief Requested URL is too large |
|
121 EObexUnsupportedMediaType, ///<@brief Unsupported media type. Note: Refers to MIME media-type |
|
122 EObexInternalReceiverError, ///<@brief Internal receiver error |
|
123 EObexNotImplemented, ///<@brief Not implemented |
|
124 EObexBadGateway, ///<@brief Bad Gateway |
|
125 EObexServiceUnavailable, ///<@brief Service Unavailable |
|
126 EObexGatewayTimeout, ///<@brief Gateway Timeout |
|
127 EObexHTTPVersionNotSupported, ///<@brief HTTP protocol version is not supported |
|
128 EObexDatabaseFull, ///<@brief Database Full |
|
129 EObexDatabaseLocked, ///<@brief Database Locked |
|
130 |
|
131 EKErrIrObexRespTimedOut = -5572, // OBEX command timed out |
|
132 |
|
133 }; |
|
134 |
|
135 enum TOperationStatusCodes |
|
136 { |
|
137 EOperationStatusOk = 0x0000, ///<@brief successful-ok |
|
138 EOperationStatusOkIgnoredOrSubstitutedAttributes = 0x0001, ///<@brief successful-ok-ignored-or-substituted-attributes |
|
139 EOperationStatusOkConflictingAttributes = 0x0002, ///<@brief successful-ok-conflicting-attributes |
|
140 EOperationStatusClientBadRequest = 0x0400, ///<@brief client-error-bad-request |
|
141 EOperationStatusClientForbidden = 0x0401, ///<@brief client-error-forbidden |
|
142 EOperationStatusClientNotAuthenticated = 0x0402, ///<@brief client-error-not-authenticated |
|
143 EOperationStatusClientNotAuthorized = 0x0403, ///<@brief client-error-not-authorized |
|
144 EOperationStatusClientNotPossible = 0x0404, ///<@brief client-error-not-possible |
|
145 EOperationStatusClientTimeout = 0x0405, ///<@brief client-error-timeout |
|
146 EOperationStatusClientNotFound = 0x0406, ///<@brief client-error-not-found |
|
147 EOperationStatusClientGone = 0x0407, ///<@brief client-error-gone |
|
148 EOperationStatusClientRequestEntityTooLarge = 0x0408, ///<@brief client-error-request-entity-too-large |
|
149 EOperationStatusClientRequestValueTooLong = 0x0409, ///<@brief client-error-request-value-too-long |
|
150 EOperationStatusClientDocumentFormatNotSupported = 0x040a, ///<@brief client-error-document-format-not-supported |
|
151 EOperationStatusClientAttributesOrValuesNotSupported = 0x040b, ///<@brief client-error-attributes-or-values-not-supported |
|
152 EOperationStatusClientUriSchemeNotSupported = 0x040c, ///<@brief client-error-uri-scheme-not-supported |
|
153 EOperationStatusClientCharsetNotSupported = 0x040d, ///<@brief client-error-charset-not-supported |
|
154 EOperationStatusClientConflictingAttributes = 0x040e, ///<@brief client-error-conflicting-attributes |
|
155 EOperationStatusClientCompressionNotSupported = 0x040f, ///<@brief client-error-compression-not-supported |
|
156 EOperationStatusClientCompression = 0x0410, ///<@brief client-error-compression-error |
|
157 EOperationStatusClientDocumentFormat = 0x0411, ///<@brief client-error-document-format-error |
|
158 EOperationStatusClientDocumentAccess = 0x0412, ///<@brief client-error-document-access-error |
|
159 EOperationStatusClientMediaNotLoaded = 0x0418, ///<@brief client-error-media-not-loaded |
|
160 EOperationStatusServerInternalError = 0x0500, ///<@brief server-error-internal-error |
|
161 EOperationStatusServerOperation = 0x0501, ///<@brief server-error-operation-not-supported |
|
162 EOperationStatusServerServiceUnavailable = 0x0502, ///<@brief server-error-service-unavailable |
|
163 EOperationStatusServerVersionNotSupported = 0x0503, ///<@brief server-error-version-not-supported |
|
164 EOperationStatusServerDeviceError = 0x0504, ///<@brief server-error-device-error |
|
165 EOperationStatusServerTemporaryError = 0x0505, ///<@brief server-error-temporary-error |
|
166 EOperationStatusServerNotAcceptingJobs = 0x0506, ///<@brief server-error-not-accepting-jobs |
|
167 EOperationStatusServerBusy = 0x0507, ///<@brief server-error-busy |
|
168 EOperationStatusServerJobCanceled = 0x0508, ///<@brief server-error-job-canceled |
|
169 EOperationStatusServerMultipleDocument = 0x0509 ///<@brief server-error-multiple-document-jobs-not-supported |
|
170 }; |
|
171 |
|
172 #endif // PRINTMESSAGECODES_H |
|
173 |
|
174 // End of File |