MAiContentObserver Class Reference
Used by AI Plug-in to give notification about modifications in content and/or internal state.
| Public Member Functions |
|---|
|
TBool
| CanPublish(CHsContentPublisher &, TInt, TInt) |
|
TInt
| CancelTransaction(TInt) |
|
TInt
| Clean(CHsContentPublisher &, TInt, TInt) |
|
TInt
| Commit(TInt) |
|
TAny * | Extension(TUid) |
|
TInt
| Publish(CHsContentPublisher &, TInt, TInt, TInt) |
|
TInt
| Publish(CHsContentPublisher &, TInt, const TDesC16 &, TInt) |
|
TInt
| Publish(CHsContentPublisher &, TInt, const TDesC8 &, TInt) |
|
TInt
| Publish(CHsContentPublisher &, TInt, RFile &, TInt) |
|
TInt
| PublishPtr(CHsContentPublisher &, TInt, TAny *, TInt) |
|
TBool
| RequiresSubscription(const THsPublisherInfo &) |
|
TInt
| SetProperty(CHsContentPublisher &, const TDesC8 &, const TDesC8 &, const TDesC8 &) |
|
TInt
| SetProperty(CHsContentPublisher &, const TDesC8 &, const TDesC8 &, const TDesC8 &, MAiContentObserver::TValueType) |
|
TInt
| StartTransaction(TInt) |
| PtrT * | UnpackPtr(const TDesC8 &) |
| Public Member Enumerations |
|---|
| enum | TValueType { EValueUnknown = 0, EValueNumber, EValuePercentage, EValuePx, EValueDimension, EValueString, EValueIdent, EValueAttr, EValueCounter, EValueRect, EValueRgbColor, EValueRgbaColor, EValueFunction, EValueUnitValue } |
Constructor & Destructor Documentation
~MAiContentObserver()
| ~MAiContentObserver | ( | ) | [protected, inline] |
Protected destructor prevents deletion through this interface.
Member Functions Documentation
CanPublish(CHsContentPublisher &, TInt, TInt)
Invoked by plug-in to test if the specified content can be published.
Parameters
| CHsContentPublisher & aPlugin | - Plug-in interface implementation. |
| TInt aContent | - identification of content selector, MUST correspond single content selector supported by plug-in. The framework utilizes the selector id to match for cid and MIME type. |
| TInt aIndex | - index of the content item. |
CancelTransaction(TInt)
|
TInt
| CancelTransaction | ( | TInt | aTxId | ) | [pure virtual] |
Invoked by plug-in to indicate that content publishing transaction must be cancelled.
Parameters
| TInt aTxId | - transaction Id |
Clean(CHsContentPublisher &, TInt, TInt)
Invoked by the plug-in to inform that content must be cleaned in UI control identified by selector aContent.
Parameters
| CHsContentPublisher & aPlugin | - Plug-in interface implementation. |
| TInt aContent | - identification of content selector, MUST correspond single content selector supported by plug-in. The framework utilizes the selector id to match for cid and MIME type. |
| TInt aIndex | - index of the content item. |
Commit(TInt)
Invoked by the plug-in to request framework that content publishing transaction must be finalized and content should be rendered to the screen.
Parameters
| TInt aTxId | - transaction Id |
Extension(TUid)
Returns interface extension. Not used in S60 3.2 release.
Parameters
| TUid aUid | - UID of the extension interface to access. |
Publish(CHsContentPublisher &, TInt, TInt, TInt)
Invoked by the plug-in to inform that content identified by reference aResource must be published to UI control identified by selector aContent.
Parameters
| CHsContentPublisher & aPlugin | - Plug-in interface implementation. |
| TInt aContent | - identification of content selector, MUST correspond single content selector supported by plug-in. The framework utilizes the selector id to match for cid and MIME type. |
| TInt aResource | - identification of content reference, MUST correspond single content reference supported by plug-in. The framework utilizes the reference if to match for cid and MIME type of the content supplied with in UI definition. |
| TInt aIndex | - index of the content item. |
Publish(CHsContentPublisher &, TInt, const TDesC16 &, TInt)
Invoked by the plug-in to inform that textual content provided within parameter aText must be published to UI control identified by selector aContent.
Parameters
| CHsContentPublisher & aPlugin | - Plug-in interface implementation. |
| TInt aContent | - identification of content selector, MUST correspond single content selector supported by plug-in. The framework utilizes the selector id to match for cid and MIME type. |
| const TDesC16 & aText | - Textual content in UNICODE. |
| TInt aIndex | - index of the content item. |
Publish(CHsContentPublisher &, TInt, const TDesC8 &, TInt)
Invoked by the plug-in to inform that content provided within buffer aBuf must be published to UI control identified by selector aContent.
Parameters
| CHsContentPublisher & aPlugin | - Plug-in interface implementation. |
| TInt aContent | - identification of content selector, MUST correspond single content selector supported by plug-in. The framework utilizes the selector id to match for cid and MIME type. |
| const TDesC8 & aBuf | - instance of content. |
| TInt aIndex | - index of the content item. |
Publish(CHsContentPublisher &, TInt, RFile &, TInt)
Invoked by the plug-in to inform that content from file handle aFile must be published to UI control identified by selector aContent.
Parameters
| CHsContentPublisher & aPlugin | - Plug-in interface implementation. |
| TInt aContent | - identification of content selector, MUST correspond single content selector supported by plug-in. The framework utilizes the selector id to match for cid and MIME type. |
| RFile & aFile | - file handle from where content can be obtained by UI framework. |
| TInt aIndex | - index of the content item. |
PublishPtr(CHsContentPublisher &, TInt, TAny *, TInt)
Invoked by the plug-in to inform that an object provided by pointer aPtr must be published to UI control identified by selector aContent. The implementation packages the pointer to a buffer and delegates to buffer publishing method Publish(MAiPropertyExtension&, TInt, const TDesC8&, TInt).
KAiContentTypeBitmap
Parameters
| CHsContentPublisher & aPlugin | - Plug-in interface implementation. |
| TInt aContent | - identification of content selector, MUST correspond single content selector supported by plug-in. The framework utilizes the selector id to match for cid and MIME type. |
| TAny * aPtr | - pointer to the content object. The actual type of the pointer is deduced based on the MIME type of the content item identified by aContent. |
| TInt aIndex | - index of the content item. |
RequiresSubscription(const THsPublisherInfo &)
Invoked by the plugin factory
SetProperty(CHsContentPublisher &, const TDesC8 &, const TDesC8 &, const TDesC8 &)
Invoked by the plug-in to change the property value of a specific content. value type must be string.
Parameters
| CHsContentPublisher & aPlugin | - Plug-in interface implementation. |
| const TDesC8 & aElementId | - id of content selector, MUST correspond single content supported by plug-in. The framework utilizes the id to find in the plugin xml defintion. |
| const TDesC8 & aPropertyName | - property name. |
| const TDesC8 & aPropertyValue | - property value. |
SetProperty(CHsContentPublisher &, const TDesC8 &, const TDesC8 &, const TDesC8 &, MAiContentObserver::TValueType)
Invoked by the plug-in to change the property value of a specific content.
Parameters
| CHsContentPublisher & aPlugin | - Plug-in interface implementation. |
| const TDesC8 & aElementId | - id of content selector, MUST correspond single content supported by plug-in. The framework utilizes the id to find in the plugin xml defintion. |
| const TDesC8 & aPropertyName | - property name. |
| const TDesC8 & aPropertyValue | - property value. |
| MAiContentObserver::TValueType aValueType | - value type. |
StartTransaction(TInt)
|
TInt
| StartTransaction | ( | TInt | aTxId | ) | [pure virtual] |
Invoked by the plug-in to inform that it initiates content publishing transaction.
Parameters
| TInt aTxId | - transaction Id |
UnpackPtr(const TDesC8 &)
| PtrT * | UnpackPtr | ( | const TDesC8 & | aBuf | ) | [static, inline] |
Member Enumerations Documentation
Enum TValueType
Value type for SetProperty
Enumerators
| EValueUnknown = 0 | |
| EValueNumber | |
| EValuePercentage | |
| EValuePx | |
| EValueDimension | |
| EValueString | |
| EValueIdent | |
| EValueAttr | |
| EValueCounter | |
| EValueRect | |
| EValueRgbColor | |
| EValueRgbaColor | |
| EValueFunction | |
| EValueUnitValue | |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.