19
|
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 |
* {Description of the file}
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
// Protection against nested includes
|
|
20 |
#ifndef DIRECTPRINTSETTINGSCONVERTER_H
|
|
21 |
#define DIRECTPRINTSETTINGSCONVERTER_H
|
|
22 |
|
|
23 |
#include <e32std.h>
|
|
24 |
|
|
25 |
class CDirectPrintTIntCapability;
|
|
26 |
class CDirectPrintListCapability;
|
|
27 |
class CDirectPrintFloatCapability;
|
|
28 |
class CDirectPrintTextCapability;
|
|
29 |
class TDirectPrintCapability;
|
|
30 |
|
|
31 |
/**
|
|
32 |
*
|
|
33 |
* Utility class for converting capabilities to correct format
|
|
34 |
*
|
|
35 |
*/
|
|
36 |
class DirectPrintSettingsConverter
|
|
37 |
{
|
|
38 |
public:
|
|
39 |
|
|
40 |
/**
|
|
41 |
* Converts TDirectPrintCapability to CDirectPrintTIntCapability
|
|
42 |
*
|
|
43 |
* @param aCapability Capability coming from the engine
|
|
44 |
* @param aIndexOnList Capability's index on the list box
|
|
45 |
* @param aCapabUid Capability's UID
|
|
46 |
* @return Initialized CDirectPrintTIntCapability instance
|
|
47 |
*/
|
|
48 |
static CDirectPrintTIntCapability* AddTIntCapabilityLC(
|
|
49 |
TDirectPrintCapability& aCapability, TInt aIndexOnList, TInt aCapabUid );
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Converts TDirectPrintCapability to CDirectPrintListCapability
|
|
53 |
*
|
|
54 |
* @param aCapability Capability coming from the engine
|
|
55 |
* @param aIndexOnList Capability's index on the list box
|
|
56 |
* @param aCapabUid Capability's UID
|
|
57 |
* @return Initialized CDirectPrintListCapability instance
|
|
58 |
*/
|
|
59 |
static CDirectPrintListCapability* AddListCapabilityLC(
|
|
60 |
TDirectPrintCapability& aCapability, TInt aIndexOnList, TInt aCapabUid );
|
|
61 |
|
|
62 |
/**
|
|
63 |
* Converts TDirectPrintCapability to CDirectPrintFloatCapability
|
|
64 |
*
|
|
65 |
* @param aCapability Capability coming from the engine
|
|
66 |
* @param aIndexOnList Capability's index on the list box
|
|
67 |
* @param aCapabUid Capability's UID
|
|
68 |
* @return Initialized CDirectPrintFloatCapability instance
|
|
69 |
*/
|
|
70 |
static CDirectPrintFloatCapability* AddFloatCapabilityLC(
|
|
71 |
TDirectPrintCapability& aCapability, TInt aIndexOnList, TInt aCapabUid );
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Converts TDirectPrintCapability to CDirectPrintTextCapability
|
|
75 |
*
|
|
76 |
* @param aCapability Capability coming from the engine
|
|
77 |
* @param aIndexOnList Capability's index on the list box
|
|
78 |
* @param aCapabUid Capability's UID
|
|
79 |
* @return Initialized CDirectPrintTextCapability instance
|
|
80 |
*/
|
|
81 |
static CDirectPrintTextCapability* AddTextCapabilityLC(
|
|
82 |
TDirectPrintCapability& aCapability, TInt aIndexOnList, TInt aCapabUid );
|
|
83 |
|
|
84 |
private:
|
|
85 |
|
|
86 |
/**
|
|
87 |
* Creates text string from the enumeration ID
|
|
88 |
*
|
|
89 |
* @param aId Enumeration Id
|
|
90 |
* @return buffer containing the string
|
|
91 |
*/
|
|
92 |
static HBufC* TextStringLC( TInt aId );
|
|
93 |
};
|
|
94 |
|
|
95 |
#endif // DIRECTPRINTSETTINGSCONVERTER_H
|
|
96 |
|
|
97 |
// End of File
|