MSvgLoadingListener Class Reference
class MSvgLoadingListener : public MSvgListener
|
This interface is the callback mechanism for the SVG Engine to communicate to interested clients about svg-file loading/parsing progress. The client (listener) is notified at the start and end of the document, at the start and end of an element.
The ReportAllElements method controls if all elements should be reported or only the direct children of the root <svg> element is reported.
Included in this interface are notifications for external data requests: when one is initiated, received or failed. External data requests include embedded images or svg-files.
Member Functions Documentation
DocumentEnd()
TBool
|
DocumentEnd
|
(
|
)
|
[pure virtual]
|
Notified when the end of a svg document(</svg> tag) is encountered.
DocumentStart()
TBool
|
DocumentStart
|
(
|
)
|
[pure virtual]
|
Notified when the start of a svg document(<svg> tag) is encountered.
ElementEnd(const TDesC &)
TBool
|
ElementEnd
|
(
|
const
TDesC
&
|
aTagName
|
)
|
[pure virtual]
|
Notified when the end of a svg element is encountered. activated.
ElementStart(const TDesC &, MSvgAttributeList &)
Notified when the start of a svg element is encountered.
ExternalDataReceived(const TDesC &)
TBool
|
ExternalDataReceived
|
(
|
const
TDesC
&
|
aUri
|
)
|
[pure virtual]
|
Notified when an external data has been retrieved, such as a image-file or an embedded svg-file.
ExternalDataRequestFailed(const TDesC &)
TBool
|
ExternalDataRequestFailed
|
(
|
const
TDesC
&
|
aUri
|
)
|
[pure virtual]
|
Notified when an external data request has failed.
ExternalDataRequested(const TDesC &)
TBool
|
ExternalDataRequested
|
(
|
const
TDesC
&
|
aUri
|
)
|
[pure virtual]
|
Notified when an external data is needed by the svg document, such as a image-file or an embedded svg-file.
ImageDataReference(const TDesC &)
void
|
ImageDataReference
|
(
|
const
TDesC
&
|
aUri
|
)
|
[pure virtual]
|
Callback when the href:xlink attribute is encountered for the <image> element. This method is used to notify clients of image data references needed by <image> element. This method is called only when 'WillAssignImageData' returns ETrue.
ImagesLoaded(TInt)
void
|
ImagesLoaded
|
(
|
TInt
|
aError
|
)
|
[pure virtual]
|
ReportAllElements()
TBool
|
ReportAllElements
|
(
|
)
|
[pure virtual]
|
Query the listener if every element is to be reported or only the children of <svg> tag.
UnsupportedElement(const TDesC &, MSvgAttributeList &)
Notified when an unsupported element is encountered.
WillAssignImageData()
TBool
|
WillAssignImageData
|
(
|
)
|
[pure virtual]
|
Query the listener if client will call 'AssignImageData' to decode images separately from parsing. This is used to avoid non-thread-safe calls in creating bitmap and decoding images, which must be executed in the main thread.
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.