|
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 DIRECTPRINTBASECAPABILITY_H |
|
21 #define DIRECTPRINTBASECAPABILITY_H |
|
22 |
|
23 // System includes |
|
24 #include <e32std.h> |
|
25 #include <e32base.h> |
|
26 #include <aknsettingitemlist.h> |
|
27 |
|
28 // TYPE DEFINITIONS |
|
29 typedef TBuf<64> TCapabilityTitle; |
|
30 |
|
31 /** |
|
32 * |
|
33 * Capability base class, pure virtual, needs to be derived |
|
34 * |
|
35 */ |
|
36 class CDirectPrintBaseCapability : public CBase |
|
37 { |
|
38 public: // New methods |
|
39 |
|
40 virtual ~CDirectPrintBaseCapability() {}; |
|
41 |
|
42 /** |
|
43 * Creates text for the setting item list box |
|
44 * |
|
45 * @return Correctly formatted list box text |
|
46 */ |
|
47 virtual HBufC* ListBoxTextL() = 0; |
|
48 |
|
49 /** |
|
50 * Clones and returns copy of itself |
|
51 * |
|
52 * @return Cloned copy of the instance itself |
|
53 */ |
|
54 virtual CDirectPrintBaseCapability* CloneL() = 0; |
|
55 |
|
56 /** |
|
57 * Creates CAknSettingItem for the list box |
|
58 * |
|
59 * @return CAknSettingItem object |
|
60 */ |
|
61 virtual CAknSettingItem* SettingItemLC(TInt aIndex) = 0; |
|
62 |
|
63 public: // Data |
|
64 |
|
65 // The index on the list from the top (0 = topmost) |
|
66 TBool iIndexOnList; |
|
67 |
|
68 // Title of this capability |
|
69 TCapabilityTitle iTitle; |
|
70 |
|
71 // UID of the capability |
|
72 TInt iUid; |
|
73 |
|
74 // Value |
|
75 TInt iValue; |
|
76 }; |
|
77 |
|
78 #endif // DIRECTPRINTBASECAPABILITY_H |
|
79 |
|
80 // End of File |