129 * @param aPlugin reference of the plugin |
130 * @param aPlugin reference of the plugin |
130 * @return void |
131 * @return void |
131 */ |
132 */ |
132 void ConstructL(CSapiDataPlugin* aPlugin); |
133 void ConstructL(CSapiDataPlugin* aPlugin); |
133 |
134 |
134 // new functions |
|
135 |
|
136 /** |
|
137 * Gets the menu item from the publisher |
|
138 * |
|
139 * @param none |
|
140 * @return void |
|
141 */ |
|
142 void GetMenuItemsL(); |
|
143 |
|
144 public: |
135 public: |
145 // new functions |
136 // new functions |
146 |
137 |
147 /** |
138 /** |
148 * Change the publisher status |
139 * Change the publisher status |
149 * |
140 * |
150 * @param aStatus new status of the publisher |
141 * @param aStatus new status of the publisher |
151 * @return void |
142 * @return void |
152 */ |
143 */ |
153 void ChangePublisherStatusL(const TDesC& aStatus); |
144 void ChangePublisherStatusL(const TDesC8& aStatus); |
154 |
145 |
155 /** |
146 /** |
156 * Triggers active event with KNoNotification option. |
147 * Triggers active event with KNoNotification option. |
157 * Notification is not send to observer, action handler |
148 * Notification is not send to observer, action handler |
158 * plug-ins are executed |
149 * plug-ins are executed |
347 * @param aStatus update needed status (ETrue/EFalse) |
338 * @param aStatus update needed status (ETrue/EFalse) |
348 * @return void |
339 * @return void |
349 */ |
340 */ |
350 void SetUpdateNeeded(TBool aStatus); |
341 void SetUpdateNeeded(TBool aStatus); |
351 |
342 |
|
343 /** |
|
344 * Sets property value. |
|
345 * |
|
346 * @since S60 5.2 |
|
347 * @param aAny - contains pointer to command buffer. |
|
348 */ |
|
349 void SetCommandBuffer(TAny* aAny); |
|
350 |
|
351 private: |
|
352 // new functions |
|
353 |
|
354 /** |
|
355 * Gets the menu item from the publisher |
|
356 * |
|
357 * @param none |
|
358 * @return void |
|
359 */ |
|
360 void GetMenuItemsL(); |
|
361 |
|
362 /** |
|
363 * Change the publisher status with list of actions |
|
364 * |
|
365 * @param aActionsList new list of status for the publisher |
|
366 * @return void |
|
367 */ |
|
368 void ChangePublisherStatusL(CLiwDefaultList* aActionsList); |
|
369 |
352 private: |
370 private: |
353 // data |
371 // data |
354 |
372 /** CPS Command Buffer Interface, Not Owned */ |
355 /** Subscriber interface, owned */ |
373 MAiCpsCommandBuffer* iCpsExecute; |
356 MLiwInterface* iInterface; |
374 /** Subscriber interface, Not owned */ |
|
375 MLiwInterface* iInterface; |
|
376 /** Service handler, Not owned */ |
|
377 CLiwServiceHandler* iServiceHandler; |
357 /** Data Observer to CPS content registry, owned */ |
378 /** Data Observer to CPS content registry, owned */ |
358 CSapiDataObserver* iContentObserver; |
379 CSapiDataObserver* iContentObserver; |
359 /** Data Observer to CPS publisher registry, owned */ |
380 /** Data Observer to CPS publisher registry, owned */ |
360 CSapiDataObserver* iPubObserver; |
381 CSapiDataObserver* iPubObserver; |
361 /** Service handler, owned */ |
|
362 CLiwServiceHandler* iServiceHandler; |
|
363 /** Array of configurations, owned */ |
382 /** Array of configurations, owned */ |
364 RPointerArray<CContentItem> iItemList; |
383 RPointerArray<CContentItem> iItemList; |
365 /** Number of configurations */ |
384 /** Number of configurations */ |
366 TInt iItemCount; |
385 TInt iItemCount; |
367 /** Command name in configuration Array, owned */ |
|
368 HBufC8* iCommandName; |
|
369 /** publisher id, owned */ |
386 /** publisher id, owned */ |
370 HBufC* iPublisher; |
387 HBufC* iPublisher; |
371 /** content type, owned */ |
|
372 HBufC* iContentType; |
|
373 /** content id, owned */ |
388 /** content id, owned */ |
374 HBufC* iContentId; |
389 HBufC* iContentId; |
375 /** Startup reason, owned */ |
390 /** Startup reason, owned */ |
376 HBufC* iStartupReason; |
391 HBufC8* iStartupReason; |
377 /** Reference of the sapi data plugin, not owned */ |
392 /** Reference of the sapi data plugin, not owned */ |
378 CSapiDataPlugin* iPlugin; |
393 CSapiDataPlugin* iPlugin; |
379 /** Menu item names, owned */ |
394 /** Menu item names, owned */ |
380 RPointerArray<HBufC> iMenuItems; |
395 RPointerArray<HBufC> iMenuItems; |
381 /** Trigger names for the menu items, owned */ |
396 /** Trigger names for the menu items, owned */ |
382 RPointerArray<HBufC8> iMenuTriggers; |
397 RPointerArray<HBufC8> iMenuTriggers; |
383 /** Store the status of update needed on resume */ |
398 /** Store the status of update needed on resume */ |
384 TBool iUpdateNeeded; |
399 TBool iUpdateNeeded; |
|
400 // Is Menu item read. |
|
401 TBool iGetMenuItems; |
385 }; |
402 }; |
386 |
403 |
387 #endif // SAPIDATA_H |
404 #endif // SAPIDATA_H |
388 |
405 |
389 // End of file |
406 // End of file |
|
407 |