![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
class TECAMEvent2 : public TECAMEvent;
Special type of TECAMEvent
class used to retrieve some extra information from particular events received
TECAMEvent
-
General purpose class to describe an ECam event.
TECAMEvent2
- Special type of TECAMEvent class used to retrieve some extra information from pa...
Defined in TECAMEvent2
:
EventClassUsed()const
Gives the uid representing this version of TECAMEvent base class.IsEventEncapsulationValid(const TECAMEvent &)
This method may be used by MCameraObserver2::HandleEvent(const TECAMEvent &)...TECAMEvent2(TUid,TInt,TInt)
Constructor.iParam
This signifies different things for different valid events.iParam1
iParam1 will be used to provide extra information if iParam is not sufficient. T...Inherited from TECAMEvent
:
TECAMEvent(TUid,TInt)
Constructor.iErrorCode
The error code associated with the event.iEventType
A UID to define the event type.IMPORT_C TECAMEvent2(TUid aEventType, TInt aErrorCode, TInt aParam);
Constructor.
For example: For KUidECamEventCIPSetColorSwapEntry; KUidECamEventCIPRemoveColorSwapEntry; KUidECamEventCIPSetColorAccentEntry and KUidECamEventCIPRemoveColorAccentEntry, aParam represents color entry.
For KUidECamEventCameraSettingPreCaptureWarning, aParam represents bit field describing all PreCaptureWarnings currently issued.
Future events may also use this class.
|
IMPORT_C static TBool IsEventEncapsulationValid(const TECAMEvent &aECAMEvent);
This method may be used by MCameraObserver2::HandleEvent(const TECAMEvent &)
to know whether a particular event received has been encapsulated in a correct version of TECAMEvent
base class. Indirectly, its provided implementation also specifies different events which are supposed to use a specific
version of TECAMEvent
base class. This static method will be provided per derived version of TECAMEvent
base class. So, MCameraObserver2::HandleEvent(const TECAMEvent &)
implementation may consist of 2 parts: 1) Recognize the class which encapsulated the event(aECAMEvent) and type-cast to that
class. 2) Recognize the event.
Note : MCameraObserver2::HandleEvent(const TECAMEvent &)
should ignore unrecognised events and unrecognized version of TECAMEvent
base class. Unless clearly stated to use a particular derived version of TECAMEvent
base class, events should use class TECAMEvent
.
|
|
IMPORT_C const TUid& EventClassUsed() const;
Gives the uid representing this version of TECAMEvent
base class.
|
TInt iParam1;
iParam1 will be used to provide extra information if iParam is not sufficient. This signifies different things for different valid events.
Future events may also use this class member variable.
TInt iParam;
This signifies different things for different valid events.
Future events may also use this class member variable.