camerauis/cameraapp/generic/inc/cameracontroller/camcamerarequests.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 0 1ddebce53859
equal deleted inserted replaced
53:61bc0f252b2b 54:bac7acad7cb3
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CAM_CAMERAREQUESTS_H
       
    22 #define CAM_CAMERAREQUESTS_H
       
    23 
       
    24 // ===========================================================================
       
    25 
       
    26 
       
    27 /**
       
    28 * Request identification codes
       
    29 */
       
    30 enum TCamCameraRequestId
       
    31   {
       
    32   ECamRequestNone    = 0,
       
    33 
       
    34   // If client has issued a sequence of requests to be processed
       
    35   // by the controller, client must request cancelling the sequence,
       
    36   // if it wishes to issue other requests before ECamEngineEventSequenceEnd
       
    37   // has been notified by controller.
       
    38   ECamRequestCancelSequence,
       
    39 
       
    40   ECamRequestReserve,
       
    41   ECamRequestRelease,
       
    42 
       
    43   ECamRequestPowerOn,
       
    44   ECamRequestPowerOff,
       
    45 
       
    46   ECamRequestVfStart,
       
    47   ECamRequestVfStop,
       
    48   ECamRequestVfStopEcam,
       
    49   ECamRequestVfRelease,
       
    50 
       
    51   ECamRequestSsStart,
       
    52   ECamRequestSsStop,
       
    53   ECamRequestSsRelease,
       
    54 
       
    55   ECamRequestImageInit,
       
    56   ECamRequestImageCapture, 
       
    57   ECamRequestImageCancel,  // Cancel capturing image.
       
    58   ECamRequestImageRelease,
       
    59 
       
    60   ECamRequestVideoInit,
       
    61   ECamRequestVideoStart,
       
    62   ECamRequestVideoPause,
       
    63   ECamRequestVideoStop,
       
    64   ECamRequestVideoRelease,
       
    65   ECamRequestSetAsyncVideoStopMode, 
       
    66   
       
    67   ECamRequestStartAutofocus,
       
    68   ECamRequestCancelAutofocus,
       
    69   ECamRequestSetAfRange, 
       
    70 
       
    71 //  ECamRequestSettingChange,
       
    72 
       
    73   ECamRequestLast // Just marker, keep last.
       
    74   };
       
    75 
       
    76 
       
    77 #ifdef _DEBUG
       
    78 static const TUint16* KCamRequestNames[] =
       
    79   {
       
    80   // ECamRequestNone used in performance measurements to mark sequence start and end.
       
    81   (const TUint16*)_S16("Sequence"), 
       
    82 
       
    83   (const TUint16*)_S16("Cancel sequence"),
       
    84   
       
    85   (const TUint16*)_S16("Reserve"),
       
    86   (const TUint16*)_S16("Release"),
       
    87   (const TUint16*)_S16("Power on"),
       
    88   (const TUint16*)_S16("Power off"),
       
    89   
       
    90   (const TUint16*)_S16("Start vf"),
       
    91   (const TUint16*)_S16("Stop vf"),
       
    92   (const TUint16*)_S16("Stop vf ecam"),
       
    93   (const TUint16*)_S16("Release vf"),
       
    94 
       
    95   (const TUint16*)_S16("Start snapshot"),
       
    96   (const TUint16*)_S16("Stop  snapshot"),
       
    97   (const TUint16*)_S16("Release snapshot"),
       
    98 
       
    99   (const TUint16*)_S16("Init image"),
       
   100   (const TUint16*)_S16("Capture image"),
       
   101   (const TUint16*)_S16("Cancel image"),
       
   102   (const TUint16*)_S16("Release image"),
       
   103 
       
   104   (const TUint16*)_S16("Init video"),
       
   105   (const TUint16*)_S16("Start video"),
       
   106   (const TUint16*)_S16("Pause video"),
       
   107   (const TUint16*)_S16("Stop video"),
       
   108   (const TUint16*)_S16("Release video"),
       
   109   (const TUint16*)_S16("Async stop video"), 
       
   110   
       
   111   (const TUint16*)_S16("Start autofocus"),
       
   112   (const TUint16*)_S16("Cancel autofocus"),
       
   113   (const TUint16*)_S16("Set Af range")
       
   114   
       
   115   
       
   116 //  ,  (const TUint16*)_S16("Setting change")
       
   117   };
       
   118 
       
   119 // Verifying there is a description for all the request ids
       
   120 __ASSERT_COMPILE( (sizeof(KCamRequestNames) / sizeof(TUint16*)) == ECamRequestLast );
       
   121 
       
   122 #endif // _DEBUG
       
   123   
       
   124 
       
   125 // ===========================================================================
       
   126 #endif // CAM_CAMERAREQUESTS_H
       
   127 
       
   128 // end of file