class CSmilPresentation : public CActive |
A SMIL presentation
Protected Member Functions | |
---|---|
CSmilPresentation () | |
void | AutoFocusL () |
void | ConstructL ( MSmilPlayer *) |
void | DoCancel () |
TBool | MoveDirectionL ( TInt , TInt ) |
void | PauseInternal () |
void | RunL () |
TBool | SelectionKeyPressedL () |
Public Member Enumerations | |
---|---|
enum | TEndAction { EStopAtEnd , EPauseAtEnd , ERepeatAtEnd } |
enum | TPresentationState { EPlaying , EStopped , EPaused } |
enum | TStartAction { EDoNothing , EShowFirstFrame } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Protected Attributes | |
---|---|
TBool | iSlideModeEnabled |
Inherited Attributes | |
---|---|
CActive::iStatus |
void | ActivateAnchorL | ( | const CSmilAnchor * | anchor | ) |
const CSmilAnchor * anchor |
IMPORT_C void | ActivateFocusedL | ( | ) |
Generate activate event for currently focused media (if there is one)
void | AddTransitionL | ( | CSmilTransition * | aTransition | ) |
CSmilTransition * aTransition |
void | AfterL | ( | MSmilActive * | aActive, |
const TSmilTime & | aDelay, | |||
TBool | aLazy | |||
) |
MSmilActive * aActive | |
const TSmilTime & aDelay | |
TBool aLazy |
void | CancelActive | ( | MSmilActive * | aActive | ) |
MSmilActive * aActive |
void | ConstructL | ( | MSmilPlayer * | aPlayer | ) | [protected] |
MSmilPlayer * aPlayer |
IMPORT_C TInt | CurrentSlide | ( | ) | const |
Return the sequence number (starting from 1) of current slide (top level <body> child element)
void | DoCancel | ( | ) | [protected, virtual] |
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel() .
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel() .
IMPORT_C void | Draw | ( | CGraphicsContext & | aGc, |
const TRect & | aRect | |||
) |
Called from outside of the engine to update the given region within the presentation area, using the given graphics context The engine draws the region backgrounds and the media objects that are not responsible for performing their own drawing.
This method should ultimately be called by the Draw method of the CCoeControl that contains the SMIL presentation. It should also be called as a result of MSmilPlayer::Redraw() call.
CGraphicsContext & aGc | |
const TRect & aRect |
CSmilTransition * | FindTransition | ( | const TDesC & | aName | ) |
const TDesC & aName |
IMPORT_C CSmilObject * | FocusedObject | ( | ) | const |
Return currently focused object, or null
TEndAction | GetEndAction | ( | ) | const [inline] |
What to do at the end of the presentation. Values: EStopAtEnd, EPauseAtEnd, ERepeatAtEnd
MSmilPlayer * | GetPlayer | ( | ) | [inline] |
Returns the MSmilPlayer object associated with this presentation
TStartAction | GetStartAction | ( | ) | const [inline] |
What to do when then the presentation is in the beginning (stopped) and not playing. Values: EDoNothing, EShowFirstFrame
IMPORT_C TKeyResponse | HandleKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) |
Handle Symbian OS key event. This may generate SMIL events, may move key focus and may cause media to scroll
const TKeyEvent & aKeyEvent | |
TEventCode aType |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) |
Handle Symbian OS mouse event. This may generate SMIL events, may move key focus and may cause media to scroll
const TPointerEvent & aPointerEvent |
IMPORT_C TBool | IsInteractive | ( | ) | const |
Returns true if the presentation contains interactive elements (besides scrollable media)
IMPORT_C TBool | IsTransparent | ( | ) | const |
Returns true if presentation background is transparent
IMPORT_C void | MouseClickedL | ( | const TPoint & | aPoint | ) |
Convenience method for generating UI events
const TPoint & aPoint |
IMPORT_C void | MoveFocusL | ( | TInt | aX, |
TInt | aY | |||
) |
Move media focus maintained by the SMIL engine to given direction. HandleKeyEvent replaces this method in most cases.
IMPORT_C CSmilPresentation * | NewL | ( | MSmilPlayer * | aPlayer | ) | [static] |
Two-phased constructor.
MSmilPlayer * aPlayer |
TBool | RTLNavigation | ( | ) | const [inline] |
Gets the keyboards focus navigation order EFalse: from left to right ETrue: from right to left
void | RunL | ( | ) | [protected, virtual] |
Handles an active object's request completion event.
A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.
The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.
Before calling this active object's RunL() function, the active scheduler has:
1. decided that this is the highest priority active object with a completed request
2. marked this active object's request as complete (i.e. the request is no longer outstanding)
RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.
Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.
CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD
TBool | ScaleLayout | ( | ) | const [inline] |
If set to true (default), scale down oversized SMIL layouts
void | ScheduleUpdateL | ( | const TSmilTime & | aTime, |
MSmilActive * | aActive = 0 | |||
) |
const TSmilTime & aTime | |
MSmilActive * aActive = 0 |
IMPORT_C TBool | SeekL | ( | TSmilTime | aTo | ) |
Tries to seek the presentation to the given position in the timeline. If this fails, the presentation is stopped.
Returns TRUE if succesful.
TSmilTime aTo |
IMPORT_C void | SetBaseUrlL | ( | const TDesC & | aUrl | ) |
Sets the base URL of the presentation
const TDesC & aUrl |
void | SetEndAction | ( | TEndAction | aEndAction | ) | [inline] |
What to do at the end of the presentation. Values: EStopAtEnd, EPauseAtEnd, ERepeatAtEnd
TEndAction aEndAction |
void | SetFocusedObjectL | ( | CSmilObject * | aFocus | ) |
CSmilObject * aFocus |
void | SetLayout | ( | CSmilRootRegion * | aRoot | ) |
CSmilRootRegion * aRoot |
void | SetRTLNavigation | ( | TBool | aRTL | ) | [inline] |
Sets the keyboards focus navigation order EFalse: from left to right ETrue: from right to left
TBool aRTL |
void | SetScaleLayout | ( | TBool | aScale | ) | [inline] |
If set to true (default), scale down oversized SMIL layouts
TBool aScale |
void | SetSlideModeEnabled | ( | TBool | aEnable | ) | [inline] |
Set to true to enable slide mode used for playing back Conformance Document MMS messages. Use NextSlide(), CurrentSlide() , SlideCount() to navigate.
TBool aEnable |
void | SetStartAction | ( | TStartAction | aStartAction | ) | [inline] |
What to do when then the presentation is in the beginning (stopped) and not playing. Values: EDoNothing, EShowFirstFrame
TStartAction aStartAction |
void | SetTimegraph | ( | CSmilTimeContainer * | aBody | ) |
CSmilTimeContainer * aBody |
void | SetTwoWayNavigation | ( | TBool | aEnable | ) | [inline] |
If set to true (default), use two-way (up-down) navigation mode, four-way otherwise
TBool aEnable |
IMPORT_C void | SetVolume | ( | const TInt | aVolume | ) |
Volume setter function. SetVolume notifies renderes about changes. Range: [0..100]
const TInt aVolume |
IMPORT_C TInt | SlideCount | ( | ) | const |
Return total number of slides in the presentation (top level <body> child elements)
IMPORT_C void | StopL | ( | ) |
Stops the presentation playback, resetting the timeline to the beginning and possibly freeing some allocated resouces.
IMPORT_C void | SubmitEventL | ( | const TDesC & | aName, |
const TDesC & | aSource | |||
) |
Submits an event to the Engine. Events are characterised by event name and event source.
Event source is a name of a source element. If the source is within the timegraph the name can be obtained using TSmilObject::GetName() method.
Event name is a name of an event class, for example "activateEvent".
IMPORT_C void | SubmitEventL | ( | const TDesC & | aName, |
CSmilObject * | aSource | |||
) |
const TDesC & aName | |
CSmilObject * aSource |
void | SubmitEventL | ( | const TSmilEvent & | aEvent, |
TSmilTime | aNow = TSmilTime::KUnresolved | |||
) |
const TSmilEvent & aEvent | |
TSmilTime aNow = TSmilTime::KUnresolved |
TBool | TwoWayNavigation | ( | ) | const [inline] |
If true, using two-way (up-down) navigation mode, four-way otherwise
TInt | Volume | ( | ) | [inline] |
Volume getter function. SetVolume notifies renderes about changes. Range: [0..100]
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.