equal
deleted
inserted
replaced
29 * View class for general themes. |
29 * View class for general themes. |
30 * |
30 * |
31 * @since S60 v3.1 |
31 * @since S60 v3.1 |
32 */ |
32 */ |
33 class CPslnGeneralThemeView : public CPslnBaseView, |
33 class CPslnGeneralThemeView : public CPslnBaseView, |
34 public MPslnFWMSKObserver, |
34 public MPslnFWMSKObserver |
35 public MPslnThemePreviewObserver |
|
36 { |
35 { |
37 public: // Constructors and destructor |
36 public: // Constructors and destructor |
38 |
37 |
39 /** |
38 /** |
40 * Two-phased constructor. |
39 * Two-phased constructor. |
81 /** |
80 /** |
82 * Requests container to update skin data. |
81 * Requests container to update skin data. |
83 */ |
82 */ |
84 void UpdateSkinListItemsDColumnOnlyL(); |
83 void UpdateSkinListItemsDColumnOnlyL(); |
85 |
84 |
86 /** |
|
87 * From MPslnThemePreviewObserver. |
|
88 * New theme preview state available. |
|
89 */ |
|
90 void HandlePreviewStateChange( const TBool& aPreviewMode ); |
|
91 |
|
92 /** |
|
93 * Restart Quick Preview |
|
94 */ |
|
95 void RestartQuickPreviewL(); |
|
96 |
|
97 /** |
|
98 * Remove local skin items. |
|
99 */ |
|
100 void RemoveLocalSkinItems(); |
|
101 |
|
102 private: |
85 private: |
103 |
86 |
104 /** |
87 /** |
105 * From CAknView. |
88 * From CAknView. |
106 */ |
89 */ |
122 |
105 |
123 /** |
106 /** |
124 * From CPslnBaseView. |
107 * From CPslnBaseView. |
125 */ |
108 */ |
126 void HandleListBoxSelectionL(); |
109 void HandleListBoxSelectionL(); |
127 |
|
128 /** |
|
129 * From CPslnBaseView. |
|
130 */ |
|
131 void HandleListBoxItemHighlightL(); |
|
132 |
110 |
133 /** |
111 /** |
134 * From CPslnBaseView. |
112 * From CPslnBaseView. |
135 */ |
113 */ |
136 void NewContainerL(); |
114 void NewContainerL(); |
151 /** |
129 /** |
152 * By default Symbian 2nd phase constructor is private. |
130 * By default Symbian 2nd phase constructor is private. |
153 */ |
131 */ |
154 void ConstructL(); |
132 void ConstructL(); |
155 |
133 |
156 /** |
|
157 * From CPslnBaseView. |
|
158 */ |
|
159 void HandleListBoxStylusDown(); |
|
160 |
|
161 /** |
|
162 * From CPslnBaseView. |
|
163 */ |
|
164 void HandleListBoxStylusDrag(); |
|
165 |
|
166 |
134 |
167 private: // Data |
135 private: // Data |
168 |
136 |
169 /** |
137 /** |
170 * Resource loader for common psln resources. |
138 * Resource loader for common psln resources. |
173 |
141 |
174 /** |
142 /** |
175 * Download item index. |
143 * Download item index. |
176 */ |
144 */ |
177 TInt iDownloadItemIndex; |
145 TInt iDownloadItemIndex; |
178 |
|
179 /** |
|
180 * What is current skin preview mode. |
|
181 * ETrue - preview is occuring. |
|
182 * EFalse - preview is ready / no skin preview active. |
|
183 */ |
|
184 TBool iPreviewMode; |
|
185 |
|
186 /** |
|
187 * Is delayed skin activation ongoing. |
|
188 * If user highlights a skin and immediately activates it, |
|
189 * preview is first done completely AND then skin activation |
|
190 * is handled. |
|
191 */ |
|
192 TBool iDelayedSkinActivation; |
|
193 |
146 |
194 /** |
147 /** |
195 * Index to be used when skin is activated AFTER skin preview. |
148 * Index to be used when skin is activated AFTER skin preview. |
196 * This is needed due to that user might highlight some other skin |
149 * This is needed due to that user might highlight some other skin |
197 * after having selected previous skin for activation. |
150 * after having selected previous skin for activation. |