Class: TSeekActionState

Declaration: PlayerControls.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TFloatActionState

Inherited By:

None.

Purpose:

TSeekActionState is provided by the framework for the seek slider. It is a special action control state that is used to process playback notifications. Playback notifications are used to update the slider thumb to reflect progress of the playback.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TSeekActionState::TSeekActionState

  1. TSeekActionState (const TPresenterReference & reference, TViewHandle floatControl, bool continuousActions =true, const TSemanticActionType & action =TMediaPresenter :: kSeek)
  2. TSeekActionState (const TSeekActionState &)
  3. TSeekActionState ()

Interface Category:

API.

Purpose:

  1. Normal constructor for creating a seek action state.
  2. Copy constructor.
  3. Default constructor.

Calling Context:

  1. Called to create a seek action state object.
  2. Called to copy an object.
  3. Called by the stream-in operators and derived classes only.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::~TSeekActionState

virtual ~ TSeekActionState ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::operator=

TSeekActionState & operator =(const TSeekActionState &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Returns the hash value that uniquely identifies this object within its type. Hash values are used to build dictionaries of objects.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns the hash value that uniquely identifies this object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::operator==

bool operator ==(const TSeekActionState &) const

Interface Category:

API.

Purpose:

Tests for equality between the specified TSeekActionState object and this TSeekActionState object.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the two objects are equal; otherwise, returns false.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::operator!=

bool operator != (const TSeekActionState &) const

Interface Category:

API.

Purpose:

Tests for inequality between the specified TSeekActionState object and this TSeekActionState object.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if the two objects are different; otherwise, returns false.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::operator>>=

virtual TStream & operator >>=(TStream &) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::operator<<=

virtual TStream & operator <<= (TStream &)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::SetPresenter

virtual void SetPresenter (const TPresenterReference & reference)

Interface Category:

API.

Purpose:

Sets a reference to the media presenter object that defines the semantics for the volume control actions and presentation.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::AddInterests

virtual void AddInterests (TSetOf < TInterest > &)

Interface Category:

API.

Purpose:

Establishes a notification connection from this state object to the float control that owns it. The notification connection is used to notify the control that the state has changed, outside the user's control, or indirectly as a result of the user manipulating something else. When the control receives such a notification, it calls GetFloatValue and updates the presentation accordingly. This function is derived from the one in MFloatControlState. When you implement this function, you can provide one or more TInterest objects to establish a notification connection with the float control that owns this state object.

Calling Context:

AddInterests is called by the float control that owns this state object during initialization of the control and after this state object has been adopted into the control.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::GetFloatValue

virtual double GetFloatValue () const

Interface Category:

API.

Purpose:

Returns the floating-point value that is the primary state of this control state.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns this float control state's current floating-point value.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::SetFloatValue

virtual void SetFloatValue (double)

Interface Category:

API.

Purpose:

Sets the floating-point value that is the primary state of this control state.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSeekActionState::GetFloatConstraints

virtual void GetFloatConstraints (double & minimum, double & maximum, double & intervalSize) const

Interface Category:

API.

Purpose:

Gets the constraints currently applied to this float control state's value. The first two parameters indicate the range within which this float control state's value must fall. The third parameter indicates the discrete interval by which to constrain this float control state's value. For example, if the interval is 1.0, then the float control state's value is constrained to whole numbers. An interval of 0.0 indicates that there is no interval constraint.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is declared as a pure virtual function in MFloatControlState and must be overridden by TSeekActionState.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.