|
1 /* |
|
2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd. |
|
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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // Protection against nested includes |
|
20 #ifndef DIRECTPRINTNUMOFCOPIES_H |
|
21 #define DIRECTPRINTNUMOFCOPIES_H |
|
22 |
|
23 // System includes |
|
24 #include <e32base.h> |
|
25 |
|
26 class CDirectPrintNumOfCopies : public CBase |
|
27 { |
|
28 public: |
|
29 |
|
30 /** |
|
31 * 2-phase constructor |
|
32 * |
|
33 * @return new object |
|
34 */ |
|
35 static CDirectPrintNumOfCopies* NewL(); |
|
36 |
|
37 /** |
|
38 * Destructor |
|
39 */ |
|
40 ~CDirectPrintNumOfCopies(); |
|
41 |
|
42 private: |
|
43 CDirectPrintNumOfCopies(); |
|
44 void ConstructL(); |
|
45 |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Set the amount of coming array elements |
|
50 * |
|
51 * @param aCount amount of coming array elements |
|
52 */ |
|
53 void Reset( TInt aCount ); |
|
54 |
|
55 /** |
|
56 * Append next element to the array |
|
57 * |
|
58 * @param aNumOfCopies number of copies array element |
|
59 * @param aFull place holder for value which indicates that |
|
60 * all elements are added to the array |
|
61 */ |
|
62 void AddNumOfCopyL( TInt aNumOfCopies, TBool& aFull ); |
|
63 |
|
64 /** |
|
65 * Number of copies array getter |
|
66 * |
|
67 * @return number of copies array |
|
68 */ |
|
69 const RArray<TInt>& NumsOfCopies() const; |
|
70 |
|
71 private: // data |
|
72 TInt iCount; |
|
73 RArray<TInt> iNumsOfCopies; |
|
74 }; |
|
75 |
|
76 |
|
77 #endif // DIRECTPRINTNUMOFCOPIES_H |
|
78 |
|
79 // End of File |