camerauis/cameraapp/generic/inc/cameracontroller/camcameracontroller.pan
branchRCL_3
changeset 54 bac7acad7cb3
parent 0 1ddebce53859
child 17 54edd0996877
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:  Camera controller panics
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAM_CAMERACONTROLLER_PAN
       
    20 #define CAM_CAMERACONTROLLER_PAN
       
    21 
       
    22 namespace NCamCameraController
       
    23   {
       
    24 	_LIT( KCamControllerName, "Camera controller" );
       
    25 
       
    26   /** Camera controller panic codes */
       
    27   enum TCamCameraControllerPanics 
       
    28     {
       
    29     ECamNullPointer = 100,
       
    30     ECamCameraControllerBusy,
       
    31     ECamCameraControllerCorrupt,
       
    32     ECamCameraControllerUnknownRequest,
       
    33     ECamCameraControllerUnknownEvent,
       
    34     ECamCameraControllerUnsupported,
       
    35     ECamCameraControllerCaeUnsupported,
       
    36 
       
    37     ECamCameraControllerUnrecovableError,
       
    38 
       
    39     ECamCameraControllerPanicCount
       
    40     };
       
    41   
       
    42   /** Helper method to raise panic */
       
    43   inline void Panic( TCamCameraControllerPanics aReason )
       
    44     {
       
    45     User::Panic( KCamControllerName, aReason );
       
    46     }
       
    47   }
       
    48 
       
    49 #endif CAM_CAMERACONTROLLER_PAN
       
    50 
       
    51 // end of file