vtuis/videotelui/inc/VtUiPanic.h
branchRCL_3
changeset 25 779871d1e4f4
parent 0 ed9695c8bcbe
equal deleted inserted replaced
24:f15ac8e65a02 25:779871d1e4f4
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Panic methods and reasons for Video Telephone application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef VTUIPANIC_H
       
    21 #define VTUIPANIC_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include    <e32base.h>
       
    25 
       
    26 // DATA TYPES
       
    27 
       
    28 /**
       
    29 * Enumerates all panic reasons.
       
    30 */
       
    31 enum TVtUiPanicReason
       
    32     {
       
    33     // Invalid index passed to VtUiLayout::Resolve.
       
    34     EVtUiPanicInvalidBitmapId = 10,
       
    35     // Invalid bitmap file in VtUiLayout::Resolve.
       
    36     EVtUiPanicInvalidBitmapFile = 11,
       
    37     // Reset must not fail.
       
    38     EVtUiPanicResetFailed = 12,
       
    39     // Communication not supported.
       
    40     EVtUiPanicCommsNotSupported = 13,
       
    41     // EIKON server handle not found.
       
    42     EVtUiPanicEikonServerNotFound = 14,
       
    43     // Prepare view finder not supported.
       
    44     EVtUiPanicPrepareViewFinderNotSupported = 15,
       
    45     // Prepare remote render not supported.
       
    46     EVtUiPanicPrepareRemoteRenderNotSupported = 16,
       
    47     // Mismatch in bitmap file names.
       
    48     EVtUiPanicMismatchInBitmapFileNames = 17,
       
    49     // Default color requirement mismatch.
       
    50     EVtUiPanicDefaultColorRequireMismatch = 18,
       
    51     // Application shutdown has timeouted.
       
    52     EVtUiPanicApplicationShutdownTimeout = 100,
       
    53     // Engine functionality does not match with required.
       
    54     EVtUiPanicEngineFunctionalityAssert = 101,
       
    55     // Renderer instance is not available
       
    56     EVtUiPanicRendererNotFound = 200,
       
    57     // Values out of range
       
    58     EVtUiPanicOutOfRange = 300
       
    59     };
       
    60 
       
    61 // CLASS DECLARATION
       
    62 
       
    63 /**
       
    64 *  Panic methods and reasons for Video Telephone application.
       
    65 *
       
    66 *  @since Series 60 2.6
       
    67 */
       
    68 class VtUiPanic
       
    69     {
       
    70     public: // New functions
       
    71 
       
    72         /**
       
    73         * Panics this process.
       
    74         * @param aReason reason of panic.
       
    75         */
       
    76         static void Panic(
       
    77             TVtUiPanicReason aReason );
       
    78 
       
    79     };
       
    80 
       
    81 #endif      // VTUIPANIC_H
       
    82             
       
    83 // End of File