|
1 /* |
|
2 * Copyright (c) 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: Tree item data derived class able to store plain text. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_FSTREEPLAINONELINENODEDATA_H |
|
20 #define C_FSTREEPLAINONELINENODEDATA_H |
|
21 |
|
22 //<cmail> removed __FS_ALFRED_SUPPORT flag |
|
23 //#include <fsconfig.h> |
|
24 //</cmail> removed __FS_ALFRED_SUPPORT flag |
|
25 |
|
26 #include "fstreeplainonelineitemdata.h" |
|
27 |
|
28 const TFsTreeItemDataType KFsTreePlainOneLineNodeDataType = 2; |
|
29 |
|
30 class CAlfTexture; |
|
31 |
|
32 NONSHARABLE_CLASS( CFsTreePlainOneLineNodeData ): |
|
33 public CFsTreePlainOneLineItemData |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Two-phased constructor |
|
39 * |
|
40 * @param aText Reference to the descriptor that the data will be copied |
|
41 * from. |
|
42 */ |
|
43 IMPORT_C static CFsTreePlainOneLineNodeData* NewL( ); |
|
44 |
|
45 /** |
|
46 * C++ destructor |
|
47 */ |
|
48 virtual ~CFsTreePlainOneLineNodeData(); |
|
49 |
|
50 public: |
|
51 |
|
52 /** |
|
53 * |
|
54 */ |
|
55 virtual TFsTreeItemDataType Type() const; |
|
56 |
|
57 /** |
|
58 * |
|
59 */ |
|
60 virtual TBool IsIconExpandedSet() const; |
|
61 |
|
62 /** |
|
63 * |
|
64 */ |
|
65 virtual const CAlfTexture& IconExpanded () const; |
|
66 |
|
67 |
|
68 /** |
|
69 * |
|
70 */ |
|
71 virtual void SetIconExpanded ( CAlfTexture& aIcon ); |
|
72 |
|
73 /** |
|
74 * |
|
75 */ |
|
76 virtual TBool IsIconCollapsedSet() const; |
|
77 |
|
78 /** |
|
79 * |
|
80 */ |
|
81 virtual const CAlfTexture& IconCollapsed() const; |
|
82 |
|
83 /** |
|
84 * |
|
85 */ |
|
86 virtual void SetIconCollapsed( CAlfTexture& aIcon ); |
|
87 |
|
88 protected: |
|
89 |
|
90 /** |
|
91 * |
|
92 */ |
|
93 virtual TBool IsIconSet() const; |
|
94 |
|
95 /** |
|
96 * |
|
97 */ |
|
98 virtual void SetIcon ( CAlfTexture& aIcon ); |
|
99 |
|
100 protected: |
|
101 |
|
102 /** |
|
103 * C++ constructor |
|
104 */ |
|
105 CFsTreePlainOneLineNodeData( ); |
|
106 |
|
107 /** |
|
108 * Second phase constructor |
|
109 * |
|
110 * @param aText Reference to the descriptor that the data will be copied |
|
111 * from. |
|
112 */ |
|
113 void ConstructL( ); |
|
114 |
|
115 protected: //Data |
|
116 |
|
117 /** |
|
118 * |
|
119 */ |
|
120 CAlfTexture* iIconCollapsed; |
|
121 |
|
122 }; |
|
123 |
|
124 |
|
125 #endif // C_FSTREEPLAINONELINENODEDATA_H |