testexecmgmt/ucc/Source/Uccs.v2/DeviceControlChannel/CUCCSCommandControl.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 * CUCCSCommandControl Class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef _CUCCSCommandControl_H
       
    22 #define _CUCCSCommandControl_H
       
    23 
       
    24 /*****************************************************************************
       
    25  *
       
    26  * System Includes 
       
    27  *
       
    28  ****************************************************************************/
       
    29 
       
    30 /*****************************************************************************
       
    31  *
       
    32  * Local Includes
       
    33  *
       
    34  ****************************************************************************/
       
    35 #include "CommandControlErrors.h"
       
    36 #include "../Core/UCCS_Interfaces.h"
       
    37 #include "CProtocolTypes.h"
       
    38 #include "CUCCSCommandProtocol.h"
       
    39 
       
    40 /*****************************************************************************
       
    41  *
       
    42  *  Types
       
    43  *
       
    44  ****************************************************************************/
       
    45 
       
    46 /*****************************************************************************
       
    47  *
       
    48  *  Defines
       
    49  *
       
    50  ****************************************************************************/
       
    51 #define KMAXDATALENGTH			4096
       
    52 
       
    53 
       
    54 /*****************************************************************************
       
    55  *
       
    56  * Class Definition
       
    57  *
       
    58  ****************************************************************************/
       
    59 class CUCCSCommandControl : public IRemoteControl
       
    60 {
       
    61 public:
       
    62 	CUCCSCommandControl( MUccsControl *aCallBackService, IOutput *aOutput );	
       
    63 	~CUCCSCommandControl();
       
    64 	void LocalUpdateMessageIn( int aCommandId, char *aMsg);
       
    65 	void LocalUpdateMessageOut( int aCommandId );
       
    66 
       
    67 	// from IRemoteControl
       
    68 	virtual TCommandControlError Start( TRemoteControlTransport aTransport, char* aPortname, int *aErrorCode, int *aScriptError );
       
    69 	
       
    70 private:
       
    71 	CUCCSCommandProtocol iProtocol;
       
    72 	MUccsControl *iCallBackService;
       
    73 	IOutput *iOutput;
       
    74 	int iStopFlag;
       
    75 	TRemoteControlTransport iTransport;
       
    76 };
       
    77 
       
    78 #endif