testexecmgmt/ucc/Source/UCCSDeviceControl/CUCCSDeviceControl.h
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 * CUCCSDeviceControl Class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef _CUCCSDeviceControl_H
       
    22 #define _CUCCSDeviceControl_H
       
    23 
       
    24 
       
    25 /*****************************************************************************
       
    26  *
       
    27  * System Includes 
       
    28  *
       
    29  ****************************************************************************/
       
    30 #include <e32cons.h>
       
    31 #include <e32def.h>
       
    32 
       
    33 #include <cuccsdeviceprotocol.h>
       
    34 
       
    35 /*****************************************************************************
       
    36  *
       
    37  * Local Includes
       
    38  *
       
    39  ****************************************************************************/
       
    40 
       
    41 
       
    42 /*****************************************************************************
       
    43  *
       
    44  *  Types
       
    45  *
       
    46  ****************************************************************************/
       
    47 typedef enum {
       
    48 	TDC_SUCCESS,
       
    49 	TDC_ERRINTIALISING,
       
    50 	TDC_ERRSENDING,
       
    51 	TDC_ERRRECV,
       
    52 	TDC_INVALIDREPLY,
       
    53 	TDC_VARNAMETOOLONG,
       
    54 	TDC_VARVALTOOLONG,
       
    55 	TDC_COMMDBERR,
       
    56 	TDC_RECORDIDNOTSPECIFIED,
       
    57 	TDC_COMMANDLINETOOLONG
       
    58 } TDCError;
       
    59 
       
    60 
       
    61 /*****************************************************************************
       
    62  *
       
    63  * CUCCSDeviceControl
       
    64  *
       
    65  ****************************************************************************/
       
    66 class CUCCSDeviceControl : CBase
       
    67 {
       
    68 public:
       
    69 	// Construction / Destruction						
       
    70 	IMPORT_C static CUCCSDeviceControl* New(); 
       
    71 	IMPORT_C ~CUCCSDeviceControl();
       
    72 
       
    73 	// External interface
       
    74 	IMPORT_C TUint connectL( TDesC *aRemoteHost, TDPTransport aTransportType = TDP_SERIAL );
       
    75 	IMPORT_C TUint startUseCase( TUint aData, int *aErrorCode );  
       
    76 	IMPORT_C TUint signal( TUint aData, int *aErrorCode );
       
    77 	IMPORT_C TUint waitfor( TUint aData, int *aErrorCode );
       
    78 	IMPORT_C TUint rendezvous( TUint aData, int *aErrorCode );
       
    79 	IMPORT_C TUint endUseCase( TUint aUseCaseData, TUint aResult, int *aErrorCode );
       
    80 	IMPORT_C TUint getVariableName( char* aVariableName, char* aOutputBuffer, int aOutputBufferSize, int *aErrorCode );
       
    81 	IMPORT_C TUint runCommandL( char* aCommandLine, int *aErrorCode );
       
    82 
       
    83 private:
       
    84 	CUCCSDeviceControl();
       
    85 	void ConstructL();
       
    86 
       
    87 private:
       
    88 	CUCCSDeviceProtocol *iProtocol;
       
    89 };
       
    90 
       
    91 #endif
       
    92 
       
    93 
       
    94 
       
    95 
       
    96