MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

FCam::Action Class Reference

An abstract base class for actions. More...

Inheritance diagram for FCam::Action:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void  doAction ()=0
  Perform the action.
virtual Action copy () const =0
  Make a new copy of this action (on the heap).

Public Attributes

int  time
  The number of microseconds into the exposure at which this action should occur.
int  latency
  How long before the time must doAction be called?

Detailed Description

An abstract base class for actions.


Member Function Documentation

virtual void FCam::Action::doAction (  )  [pure virtual]

Perform the action.

Derived classes should override this. This method will be called in the highest priority thread possible to allow for precise timing, so don't perform any long running computations in it unless you really want the entire OS to freeze.

Implemented in FCam::Flash::FireAction, and FCam::Lens::FocusAction.

virtual Action* FCam::Action::copy (  )  const [pure virtual]

Make a new copy of this action (on the heap).

Used when making deep copies of Shot objects. Inherit from CopyableAction instead to have this implemented for you using your action's copy constructor.

Implemented in FCam::CopyableAction< Derived >, FCam::CopyableAction< FireAction >, FCam::CopyableAction< ApertureAction >, FCam::CopyableAction< FocusAction >, and FCam::CopyableAction< ZoomAction >.


Member Data Documentation

The number of microseconds into the exposure at which this action should occur.


Copyright (c) 2012, Nokia Corporation and/or its subsidiary(-ies). All rights reserved. See Copyright.
MeeGo 1.2 Harmattan API