1.1 --- a/epoc32/include/networkemulator/cuccsdevicecontrol.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/networkemulator/cuccsdevicecontrol.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,95 +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 -
1.99 +/*
1.100 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.101 +* All rights reserved.
1.102 +* This component and the accompanying materials are made available
1.103 +* 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.104 +* which accompanies this distribution, and is available
1.105 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.106 +*
1.107 +* Initial Contributors:
1.108 +* Nokia Corporation - initial contribution.
1.109 +*
1.110 +* Contributors:
1.111 +*
1.112 +* Description:
1.113 +* CUCCSDeviceControl Class
1.114 +*
1.115 +*/
1.116 +
1.117 +
1.118 +#ifndef _CUCCSDeviceControl_H
1.119 +#define _CUCCSDeviceControl_H
1.120 +
1.121 +
1.122 +/*****************************************************************************
1.123 + *
1.124 + * System Includes
1.125 + *
1.126 + ****************************************************************************/
1.127 +#include <e32cons.h>
1.128 +#include <e32def.h>
1.129 +
1.130 +#include <cuccsdeviceprotocol.h>
1.131 +
1.132 +/*****************************************************************************
1.133 + *
1.134 + * Local Includes
1.135 + *
1.136 + ****************************************************************************/
1.137 +
1.138 +
1.139 +/*****************************************************************************
1.140 + *
1.141 + * Types
1.142 + *
1.143 + ****************************************************************************/
1.144 +typedef enum {
1.145 + TDC_SUCCESS,
1.146 + TDC_ERRINTIALISING,
1.147 + TDC_ERRSENDING,
1.148 + TDC_ERRRECV,
1.149 + TDC_INVALIDREPLY,
1.150 + TDC_VARNAMETOOLONG,
1.151 + TDC_VARVALTOOLONG,
1.152 + TDC_COMMDBERR,
1.153 + TDC_RECORDIDNOTSPECIFIED,
1.154 + TDC_COMMANDLINETOOLONG
1.155 +} TDCError;
1.156 +
1.157 +
1.158 +/*****************************************************************************
1.159 + *
1.160 + * CUCCSDeviceControl
1.161 + *
1.162 + ****************************************************************************/
1.163 +class CUCCSDeviceControl : CBase
1.164 +{
1.165 +public:
1.166 + // Construction / Destruction
1.167 + IMPORT_C static CUCCSDeviceControl* New();
1.168 + IMPORT_C ~CUCCSDeviceControl();
1.169 +
1.170 + // External interface
1.171 + IMPORT_C TUint connectL( TDesC *aRemoteHost, TDPTransport aTransportType = TDP_SERIAL );
1.172 + IMPORT_C TUint startUseCase( TUint aData, int *aErrorCode );
1.173 + IMPORT_C TUint signal( TUint aData, int *aErrorCode );
1.174 + IMPORT_C TUint waitfor( TUint aData, int *aErrorCode );
1.175 + IMPORT_C TUint rendezvous( TUint aData, int *aErrorCode );
1.176 + IMPORT_C TUint endUseCase( TUint aUseCaseData, TUint aResult, int *aErrorCode );
1.177 + IMPORT_C TUint getVariableName( char* aVariableName, char* aOutputBuffer, int aOutputBufferSize, int *aErrorCode );
1.178 + IMPORT_C TUint runCommandL( char* aCommandLine, int *aErrorCode );
1.179 +
1.180 +private:
1.181 + CUCCSDeviceControl();
1.182 + void ConstructL();
1.183 +
1.184 +private:
1.185 + CUCCSDeviceProtocol *iProtocol;
1.186 +};
1.187 +
1.188 +#endif
1.189 +
1.190 +
1.191 +
1.192 +
1.193 +