|
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: inline functions of dps parameter. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "dpsparam.h" |
|
20 |
|
21 // --------------------------------------------------------------------------- |
|
22 // |
|
23 // --------------------------------------------------------------------------- |
|
24 // |
|
25 EXPORT_C void TDpsPrintInfo::Reset() |
|
26 { |
|
27 isDPOF = EFalse; iFileID = 0; iFileName = EFalse; iDate.Zero(); |
|
28 iCopies = 0; iPrtPID = 0; iCopyID = 0; |
|
29 } |
|
30 |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 // --------------------------------------------------------------------------- |
|
34 // |
|
35 EXPORT_C TInt TDpsStartJobReq::GetParamNum() |
|
36 { |
|
37 TInt num = iJobConfig.Count(), count = iPrintInfo.Count(); |
|
38 for (TInt i = 0; i < count; i++) |
|
39 { |
|
40 // there is always fileID field |
|
41 num++; |
|
42 if (iPrintInfo[i].iFileName) |
|
43 { |
|
44 num++; |
|
45 } |
|
46 if (iPrintInfo[i].iDate.Size()) |
|
47 { |
|
48 num++; |
|
49 } |
|
50 if (iPrintInfo[i].iCopies !=0) |
|
51 { |
|
52 num++; |
|
53 } |
|
54 if (iPrintInfo[i].iPrtPID != 0) |
|
55 { |
|
56 num++; |
|
57 } |
|
58 |
|
59 if (iPrintInfo[i].iCopyID != 0) |
|
60 { |
|
61 num++; |
|
62 } |
|
63 } |
|
64 return num; |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // |
|
69 // --------------------------------------------------------------------------- |
|
70 // |
|
71 EXPORT_C void TDpsJobStatusRep::Reset() |
|
72 { |
|
73 iProgress = 0; iImagesPrinted = 0; iFilePath.Zero(); |
|
74 iPrtPID = 0; iCopyID = 0; |
|
75 } |