convergedcallengine/cce/inc/ccceutility.h
changeset 0 ff3b6d0fd310
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2006-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:  Other useful methods
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCCEUTILITY_H
       
    20 #define CCCEUTILITY_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 enum TCCEPanic
       
    26     {
       
    27     ECCEPanicTooManyCalls,
       
    28     ECCEPanicInvalidCallId,
       
    29     ECCEPanicInvalidCallType,
       
    30     ECCEPanicInvalidState,
       
    31     ECCEPanicInvalidRequestToCancel,
       
    32     ECCEPanicNoRequestActive,
       
    33     ECCEPanicRequestAlreadyActive,
       
    34     ECCEPanicTwoRequests,
       
    35     ECCEPanicNullPointer,
       
    36     ECCEPanicBadHandle,
       
    37     ECCEPanicSwapNoCallOnHold,
       
    38     ECCEPanicInvalidIncomingSession,
       
    39     ECCEPanicInvalidCallDirection,
       
    40     ECCEPanicInvalidError
       
    41     };
       
    42 
       
    43 /**
       
    44  *  Useful static methods
       
    45  *
       
    46  *  
       
    47  *
       
    48  *  @lib cce.dll
       
    49  *  @since S60 v3.2
       
    50  */
       
    51 NONSHARABLE_CLASS(CCCEUtility)
       
    52     {
       
    53 public:
       
    54 
       
    55     /**
       
    56      * Generates cce specific errors
       
    57      *
       
    58      * @since S60 3.2
       
    59      * @param aPanic Panic code
       
    60      */
       
    61     static void CCCEUtility::Panic( const TCCEPanic aPanic );
       
    62 
       
    63     };
       
    64 
       
    65 #endif // CCCEUTILITY_H