equal
deleted
inserted
replaced
137 */ |
137 */ |
138 void ConfigureL( RAiSettingsItemArray& aSettings ); |
138 void ConfigureL( RAiSettingsItemArray& aSettings ); |
139 |
139 |
140 /** |
140 /** |
141 * @see CHsContentPublisher |
141 * @see CHsContentPublisher |
|
142 */ |
|
143 void SetProperty( TProperty aProperty, TAny* aAny ); |
|
144 |
|
145 /** |
|
146 * @see CHsContentPublisher |
142 */ |
147 */ |
143 TAny* GetProperty( TProperty aProperty ); |
148 TAny* GetProperty( TProperty aProperty ); |
144 |
149 |
145 /** |
150 /** |
146 * @see CHsContentPublisher |
151 * @see CHsContentPublisher |
147 */ |
152 */ |
148 void HandleEvent( const TDesC& aEventName, const TDesC& aParam ); |
153 void HandleEvent( const TDesC& aEventName, const TDesC& aParam ); |
149 |
154 |
150 /** |
|
151 * @see CHsContentPublisher |
|
152 */ |
|
153 TBool HasMenuItem( const TDesC& aMenuItem ); |
|
154 |
|
155 public: |
155 public: |
156 |
156 |
157 /** |
157 /** |
158 * Gets the id of a content |
158 * Gets the id of a content |
159 * |
159 * |
258 * Plugin's network status getter |
258 * Plugin's network status getter |
259 * @return Pointer to Harvester status observer |
259 * @return Pointer to Harvester status observer |
260 */ |
260 */ |
261 TPluginNetworkStatus NetworkStatus() const; |
261 TPluginNetworkStatus NetworkStatus() const; |
262 |
262 |
|
263 /** |
|
264 * Creates initial data republishing timer if needed and starts it |
|
265 */ |
|
266 void StartTimer(); |
|
267 |
263 private: |
268 private: |
264 // new functions |
269 // new functions |
265 |
270 |
266 /** |
271 /** |
267 * Publishes widget's texts and images |
272 * Publishes widget's initial texts and images |
268 * |
273 * |
269 * @param void |
274 * @param void |
270 * @return void |
275 * @return void |
271 */ |
276 */ |
272 void PublishL(); |
277 void PublishInitialDataL(); |
273 |
278 |
274 /** |
279 /** |
275 * Resolves skin item id and Mif id from pattern |
280 * Resolves skin item id and Mif id from pattern |
276 * skin( <majorId> <minorId> (<colourGroupId>) |
281 * skin( <majorId> <minorId> (<colourGroupId>) |
277 * mif(<MifFileName.mif> <bitmapId> <maskId>) |
282 * mif(<MifFileName.mif> <bitmapId> <maskId>) |
283 * @param aFilename mif file name |
288 * @param aFilename mif file name |
284 * @return boolean (ETrue/EFalse) |
289 * @return boolean (ETrue/EFalse) |
285 */ |
290 */ |
286 TBool ResolveSkinIdAndMifId( const TDesC& aPath, TAknsItemID& aItemId, |
291 TBool ResolveSkinIdAndMifId( const TDesC& aPath, TAknsItemID& aItemId, |
287 TInt& aMifId, TInt& aMaskId, TDes& aFilename ); |
292 TInt& aMifId, TInt& aMaskId, TDes& aFilename ); |
288 |
293 |
|
294 /** |
|
295 * Cancels transaction in case of leave |
|
296 * |
|
297 * @param aObserver Transaction target |
|
298 */ |
|
299 static void CancelTransaction( TAny* aObserver ); |
|
300 |
|
301 /** |
|
302 * Cancels initial data republishing timer |
|
303 */ |
|
304 void CancelTimer(); |
|
305 |
|
306 /** |
|
307 * Stops and deletes initial data republishing timer. |
|
308 */ |
|
309 void StopTimer(); |
|
310 |
|
311 /** |
|
312 * Timeout callback from timer. Used if publishing of initial data has failed. |
|
313 * |
|
314 * @param aPtr Contains pointer to instance of this class |
|
315 */ |
|
316 static TInt Timeout( TAny* aPtr ); |
|
317 |
|
318 |
289 private: |
319 private: |
290 // data |
320 // data |
291 |
321 |
292 /** Iterator for plugin content, owned */ |
322 /** Iterator for plugin content, owned */ |
293 MAiContentItemIterator* iContent; |
323 MAiContentItemIterator* iContent; |
307 TPluginNetworkStatus iNetworkStatus; |
337 TPluginNetworkStatus iNetworkStatus; |
308 /** Plugin state */ |
338 /** Plugin state */ |
309 TPluginStates iPluginState; |
339 TPluginStates iPluginState; |
310 /** File server session handle, owned */ |
340 /** File server session handle, owned */ |
311 RFs iRfs; |
341 RFs iRfs; |
|
342 /** Timer for initial data republishing, owned */ |
|
343 CPeriodic* iTimer; |
312 }; |
344 }; |
313 |
345 |
314 #endif // WRTDATAPLUGIN_H |
346 #endif // WRTDATAPLUGIN_H |
315 |
347 |
316 |
348 |