testexecmgmt/ucc/Source/Uccs.v2/DeviceControlChannel/CommandControlErrors.cpp
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 /*
       
     2 * Copyright (c) 2005-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 * LocalIncludes
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #include "CommandControlErrors.h"
       
    22 
       
    23 
       
    24 /*****************************************************************************
       
    25  *
       
    26  * PUBLIC FUNCTION: GetCommandControlErrorString
       
    27  *
       
    28  ****************************************************************************/
       
    29 char *GetCommandControlErrorString( TCommandControlError aErrorCode )
       
    30 {
       
    31 	switch( aErrorCode ) {
       
    32 
       
    33 	case EAC_SUCCESS:
       
    34 		return "Success";
       
    35 
       
    36 	case EAC_ERRINITTRANSPORT: 
       
    37 		return "Error initialising the transport";
       
    38 
       
    39 	case EAC_INVALIDPORT:
       
    40 		return "Invalid port string";
       
    41 
       
    42 	case EAC_FAILEDTOOPENPORT:
       
    43 		return "Failed to open the port";
       
    44 
       
    45 	case EAC_INVALIDTRANSPORT:
       
    46 		return "Invalid transport requested";
       
    47 
       
    48 	case EAC_RECEIVEBYTESERROR:
       
    49 		return "Error while trying to receive data";
       
    50 
       
    51 	case EAC_PROCESSINGFAILED:
       
    52 		return "Error while trying send reply";
       
    53 
       
    54 	case EAC_STARTUSECASEFAILED:
       
    55 		return "StartUsecase failed";
       
    56 
       
    57 	case EAC_RENDEZVOUSFAILED:
       
    58 		return "Rendezvous failed";
       
    59 
       
    60 	case EAC_ENDUSECASEFAILED:
       
    61 		return "EndUsecase failed";
       
    62 
       
    63 	case EAC_SCRIPTFAILED:
       
    64 		return "Script failed";
       
    65 
       
    66 	default:
       
    67 		return "Unknown error";
       
    68 	}
       
    69 }