|
1 /* |
|
2 * Copyright (c) 2006, 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 "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: This class defines the dps constance. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef DPSCONST_H |
|
21 #define DPSCONST_H |
|
22 #include <e32base.h> |
|
23 #include <usbpersonalityids.h> |
|
24 |
|
25 _LIT(KDpsEnginePanicCat, "Dps Engine"); |
|
26 const TInt KShiftLength = 16; |
|
27 const TInt KFullWordWidth = 8; |
|
28 |
|
29 // <dps><input|output><operation|event|result></result|/event|/operation> |
|
30 // </output|/input></dps> |
|
31 enum TDpsXmlAction |
|
32 { |
|
33 EDpsXmlEmpty = 0, |
|
34 EDpsXmlStart, |
|
35 EDpsXmlInput, |
|
36 EDpsXmlOutput, |
|
37 EDpsXmlOperation, |
|
38 EDpsXmlEvent, |
|
39 EDpsXmlResult |
|
40 }; |
|
41 |
|
42 enum TDpsOperation |
|
43 { |
|
44 EDpsOpEmpty = 0, |
|
45 EDpsOpConfigPrintService, |
|
46 EDpsOpGetCapability, |
|
47 EDpsOpGetJobStatus, |
|
48 EDpsOpGetDeviceStatus, |
|
49 EDpsOpStartJob, |
|
50 EDpsOpAbortJob, |
|
51 EDpsOpContinueJob, |
|
52 EDpsOpGetFileID, |
|
53 EDpsOpGetFileInfo, |
|
54 EDpsOpGetFile, |
|
55 EDpsOpGetPartialFile, |
|
56 EDpsOpGetFileList, |
|
57 EDpsOpGetThumb, |
|
58 EDpsOpMax |
|
59 }; |
|
60 |
|
61 _LIT8(KDpsXmlResult, "result"); |
|
62 _LIT8(KDpsXmlInput, "input"); |
|
63 _LIT8(KDpsXmlOutput, "output"); |
|
64 _LIT8(KDpsXmlPaperTypes, "paperTypes"); |
|
65 _LIT8(KDpsXmlLayouts, "layouts"); |
|
66 _LIT8(KDpsXmlPaperSize, "paperSize"); |
|
67 _LIT8(KDpsXml, "dps"); |
|
68 |
|
69 _LIT8(KDpsXmlHeader, "<?xml version=\"1.0\"?>"); |
|
70 _LIT8(KDpsXmlNS, "<dps xmlns=\"http://www.cipa.jp/dps/schema/\">"); |
|
71 _LIT8(KDpsXmlBraceOpen, "<"); |
|
72 _LIT8(KDpsXmlBraceClose, ">"); |
|
73 _LIT8(KDpsXmlSlash, "/"); |
|
74 _LIT8(KDpsXmlSpace, " "); |
|
75 _LIT8(KDpsXmlEqual, "="); |
|
76 _LIT8(KDpsXmlQuote, "\""); |
|
77 |
|
78 const TUint KSlash = 0x2F; |
|
79 const TUint KBackSlash = 0x5C; |
|
80 const TUint KSOH = 0x1; |
|
81 const TUint KSpace = 0x20; |
|
82 |
|
83 const TUint32 KDpsMajorMask = 0xffff0000; |
|
84 const TUint32 KDpsMinorMask = 0x0000ffff; |
|
85 |
|
86 |
|
87 _LIT8(KDpsLowZero, "0000"); |
|
88 _LIT(KDpsScriptFile, ".DPS" ); |
|
89 _LIT(KDpsDeviceResponseFileName, "DRSPONSE.DPS"); |
|
90 _LIT(KDpsDeviceRequestFileName, "DREQUEST.DPS"); |
|
91 _LIT(KDpsHostResponseFileName, "HRSPONSE.DPS"); |
|
92 _LIT(KDpsHostRequestFileName, "HREQUEST.DPS"); |
|
93 _LIT8(KDpsXmlMimeType, "text/xml"); |
|
94 |
|
95 const TInt KDpsResourceVersion = 0; |
|
96 _LIT(KDpsResource, "resource\\dps.rsc"); |
|
97 |
|
98 |
|
99 #endif // DPSDEFS_H |
|
100 |
|
101 |