phoneuis/dialer/inc/dialercommon.h
branchRCL_3
changeset 62 5266b1f337bd
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
       
     1 /*
       
     2 * Copyright (c) 2007 - 2010 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:  Definition of common constants of the dialer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DIALERCOMMON_H
       
    20 #define DIALERCOMMON_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include <e32keys.h>
       
    24 
       
    25 #ifndef __DIALER_MBG
       
    26 #define __DIALER_MBG
       
    27 #include "dialer.mbg"
       
    28 #endif // __DIALER_MBG
       
    29 
       
    30 #include "dialer.hrh"
       
    31 
       
    32 const TInt KDialerPhoneNumberEntryBufferSize = 100;
       
    33 const TUid KPhoneUidAppPhone = { 0x100058B3 };
       
    34 
       
    35 // ROM drive.
       
    36 _LIT( KDriveZ, "z:" );
       
    37 
       
    38 // Application name literal for panic macro
       
    39 _LIT( KModuleName, "Dialer" );
       
    40 
       
    41 // Panic macro
       
    42 inline void DialerPanic( TInt aReason )
       
    43     {
       
    44     User::Panic( KModuleName, aReason );
       
    45     }
       
    46 
       
    47 // Panic codes
       
    48 enum TDialerPanicCode 
       
    49     {
       
    50     EDialerPanicDrawingError = 100,
       
    51     EDialerPanicNoApplicationInstance,
       
    52     EDialerPanicUnknownScript,
       
    53     EDialerPanicChineseScriptError,
       
    54     EDialerPanicLabelNotFound,
       
    55     EDialerPanicToolbarButtonNotFound,
       
    56     EDialerPanicNullController,
       
    57     EDialerPanicEventFromUnknownControl
       
    58     };
       
    59 
       
    60 #endif // DIALERCOMMON_H
       
    61 
       
    62 // End of file