FCam::Event Class Reference

An Event marks a change in device state or an error condition. More...

#include <Event.h>

Collaboration diagram for FCam::Event:

Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  Error = 0, Warning, FocusPressed, FocusReleased,
  ShutterPressed, ShutterReleased, N900LensClosed = 10000, N900LensOpened,
  N900SlideOpened, N900SlideClosed, F2LensRemoved = 20000, F2LensInstalled,
  F2ZoomChanged, F2FocusChanged
}
 The list of builtin event types. More...

Public Member Functions

std::string description () const
 A human-readable description of the event.

Public Attributes

EventGeneratorcreator
 creator of this Event
int type
 type of this Event
Time time
 Time this Event occured.
int iData
 integer data associated with of this Event.
float fData
 float associated with of this Event.


Detailed Description

An Event marks a change in device state or an error condition.

Retrieve events from the system using getNextEvent.

Definition at line 18 of file Event.h.


Member Enumeration Documentation

anonymous enum

The list of builtin event types.

Builtin FCam events use positive integers. They are guaranteed not to have collisions and should all be listed here. Custom events should use negative integers, and may collide with other custom events (so you should check the creator and the type).

Enumerator:
Error  An asynchronous error occurred.
Warning  An asynchronous warning occurred.
FocusPressed  The focus button was pressed (typically the shutter button was half-depressed).
FocusReleased  The focus button was released.
ShutterPressed  The shutter button was pressed.
ShutterReleased  The shutter button was released.
N900LensClosed  The lens cover on the N900 was closed.
N900LensOpened  The lens cover on the N900 was opened.
N900SlideOpened  The keyboard on the N900 was slid open.
N900SlideClosed  The keyboard on the N900 was slid closed.
F2LensRemoved  The lens on the F2 was removed.
F2LensInstalled  A new lens was inserted in the F2.
F2ZoomChanged  The lens on the F2 was manually zoomed.
F2FocusChanged  The lens on the F2 was manually focused.

Definition at line 44 of file Event.h.


Member Data Documentation

integer data associated with of this Event.

Its meaning depends on the type.

Definition at line 25 of file Event.h.

float associated with of this Event.

Its meaning depends on the type.

Definition at line 29 of file Event.h.


The documentation for this class was generated from the following files:

Generated on Mon Jan 18 20:48:13 2010 for FCam by  doxygen 1.5.6