epoc32/include/networkemulator/cuccsdevicecontrol.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * CUCCSDeviceControl Class
    16 *
    17 */
    18 
    19 
    20 #ifndef _CUCCSDeviceControl_H
    21 #define _CUCCSDeviceControl_H
    22 
    23 
    24 /*****************************************************************************
    25  *
    26  * System Includes 
    27  *
    28  ****************************************************************************/
    29 #include <e32cons.h>
    30 #include <e32def.h>
    31 
    32 #include <cuccsdeviceprotocol.h>
    33 
    34 /*****************************************************************************
    35  *
    36  * Local Includes
    37  *
    38  ****************************************************************************/
    39 
    40 
    41 /*****************************************************************************
    42  *
    43  *  Types
    44  *
    45  ****************************************************************************/
    46 typedef enum {
    47 	TDC_SUCCESS,
    48 	TDC_ERRINTIALISING,
    49 	TDC_ERRSENDING,
    50 	TDC_ERRRECV,
    51 	TDC_INVALIDREPLY,
    52 	TDC_VARNAMETOOLONG,
    53 	TDC_VARVALTOOLONG,
    54 	TDC_COMMDBERR,
    55 	TDC_RECORDIDNOTSPECIFIED,
    56 	TDC_COMMANDLINETOOLONG
    57 } TDCError;
    58 
    59 
    60 /*****************************************************************************
    61  *
    62  * CUCCSDeviceControl
    63  *
    64  ****************************************************************************/
    65 class CUCCSDeviceControl : CBase
    66 {
    67 public:
    68 	// Construction / Destruction						
    69 	IMPORT_C static CUCCSDeviceControl* New(); 
    70 	IMPORT_C ~CUCCSDeviceControl();
    71 
    72 	// External interface
    73 	IMPORT_C TUint connectL( TDesC *aRemoteHost, TDPTransport aTransportType = TDP_SERIAL );
    74 	IMPORT_C TUint startUseCase( TUint aData, int *aErrorCode );  
    75 	IMPORT_C TUint signal( TUint aData, int *aErrorCode );
    76 	IMPORT_C TUint waitfor( TUint aData, int *aErrorCode );
    77 	IMPORT_C TUint rendezvous( TUint aData, int *aErrorCode );
    78 	IMPORT_C TUint endUseCase( TUint aUseCaseData, TUint aResult, int *aErrorCode );
    79 	IMPORT_C TUint getVariableName( char* aVariableName, char* aOutputBuffer, int aOutputBufferSize, int *aErrorCode );
    80 	IMPORT_C TUint runCommandL( char* aCommandLine, int *aErrorCode );
    81 
    82 private:
    83 	CUCCSDeviceControl();
    84 	void ConstructL();
    85 
    86 private:
    87 	CUCCSDeviceProtocol *iProtocol;
    88 };
    89 
    90 #endif
    91 
    92 
    93 
    94 
    95