camerauis/cameraxui/cxengine/inc/api/cxeerror.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009 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 #ifndef CXERROR_H_
       
    18 #define CXERROR_H_
       
    19 
       
    20 
       
    21 #include <QMetaType>
       
    22 
       
    23 /*
       
    24 * All CameraX specific error codes
       
    25 */
       
    26 
       
    27 namespace CxeError
       
    28 {
       
    29     enum Id
       
    30         {
       
    31         //! No error, everything ok
       
    32         None                = 0,
       
    33 
       
    34         //! Out of Memory Situation
       
    35         OutOfMemory         = 1,
       
    36 
       
    37         //! Memory not accessible
       
    38         MemoryNotAccessible = 2,
       
    39 
       
    40         //! whenever leave occurs during intialization of adaptaion or anyother resources we need
       
    41         InitializationFailed= 3,
       
    42 
       
    43         //! for e.g. when setting key is not found
       
    44         NotFound            = 4,
       
    45 
       
    46         //! when trying to access a specific feature but not supported by adaptation
       
    47         NotSupported        = 5,
       
    48 
       
    49         //! Error When specific disk or drive is full
       
    50         DiskFull            = 6,
       
    51 
       
    52         //! DSP side error when encoder/decoder not available during video recording
       
    53         HwNotAvailable      = 7,
       
    54 
       
    55         //! Audio utility intilization error
       
    56         Died                = 8,
       
    57 
       
    58         //! Camera or anyother resources already in use
       
    59         InUse               = 9,
       
    60 
       
    61         //! when a specific resource is not ready to continue operation
       
    62         NotReady            = 10,
       
    63 
       
    64         //! any other general errors
       
    65         General             = 11
       
    66         };
       
    67 }
       
    68 
       
    69 Q_DECLARE_METATYPE(CxeError::Id)
       
    70 
       
    71 
       
    72 #endif /*CXERROR_H_*/