1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/networkemulator/cuccsdevicecontrol.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,95 @@
1.4 +/*
1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* CUCCSDeviceControl Class
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +#ifndef _CUCCSDeviceControl_H
1.24 +#define _CUCCSDeviceControl_H
1.25 +
1.26 +
1.27 +/*****************************************************************************
1.28 + *
1.29 + * System Includes
1.30 + *
1.31 + ****************************************************************************/
1.32 +#include <e32cons.h>
1.33 +#include <e32def.h>
1.34 +
1.35 +#include <cuccsdeviceprotocol.h>
1.36 +
1.37 +/*****************************************************************************
1.38 + *
1.39 + * Local Includes
1.40 + *
1.41 + ****************************************************************************/
1.42 +
1.43 +
1.44 +/*****************************************************************************
1.45 + *
1.46 + * Types
1.47 + *
1.48 + ****************************************************************************/
1.49 +typedef enum {
1.50 + TDC_SUCCESS,
1.51 + TDC_ERRINTIALISING,
1.52 + TDC_ERRSENDING,
1.53 + TDC_ERRRECV,
1.54 + TDC_INVALIDREPLY,
1.55 + TDC_VARNAMETOOLONG,
1.56 + TDC_VARVALTOOLONG,
1.57 + TDC_COMMDBERR,
1.58 + TDC_RECORDIDNOTSPECIFIED,
1.59 + TDC_COMMANDLINETOOLONG
1.60 +} TDCError;
1.61 +
1.62 +
1.63 +/*****************************************************************************
1.64 + *
1.65 + * CUCCSDeviceControl
1.66 + *
1.67 + ****************************************************************************/
1.68 +class CUCCSDeviceControl : CBase
1.69 +{
1.70 +public:
1.71 + // Construction / Destruction
1.72 + IMPORT_C static CUCCSDeviceControl* New();
1.73 + IMPORT_C ~CUCCSDeviceControl();
1.74 +
1.75 + // External interface
1.76 + IMPORT_C TUint connectL( TDesC *aRemoteHost, TDPTransport aTransportType = TDP_SERIAL );
1.77 + IMPORT_C TUint startUseCase( TUint aData, int *aErrorCode );
1.78 + IMPORT_C TUint signal( TUint aData, int *aErrorCode );
1.79 + IMPORT_C TUint waitfor( TUint aData, int *aErrorCode );
1.80 + IMPORT_C TUint rendezvous( TUint aData, int *aErrorCode );
1.81 + IMPORT_C TUint endUseCase( TUint aUseCaseData, TUint aResult, int *aErrorCode );
1.82 + IMPORT_C TUint getVariableName( char* aVariableName, char* aOutputBuffer, int aOutputBufferSize, int *aErrorCode );
1.83 + IMPORT_C TUint runCommandL( char* aCommandLine, int *aErrorCode );
1.84 +
1.85 +private:
1.86 + CUCCSDeviceControl();
1.87 + void ConstructL();
1.88 +
1.89 +private:
1.90 + CUCCSDeviceProtocol *iProtocol;
1.91 +};
1.92 +
1.93 +#endif
1.94 +
1.95 +
1.96 +
1.97 +
1.98 +