2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * CUCCSDeviceProtocol Class
20 #ifndef _CUCCSDeviceProtocol_H
21 #define _CUCCSDeviceProtocol_H
24 /*****************************************************************************
28 ****************************************************************************/
32 /*****************************************************************************
36 ****************************************************************************/
37 //#include "MUCCTransport.h"
38 //#include "CProtocolTypes.h"
40 #include <mucctransport.h>
41 #include <cprotocoltypes.h>
44 /*****************************************************************************
48 ****************************************************************************/
71 /*****************************************************************************
75 ****************************************************************************/
76 class CUCCSDeviceProtocol : public CBase
79 CUCCSDeviceProtocol();
80 ~CUCCSDeviceProtocol();
82 TDPError initialise(TBufC16<40> aRemoteHost, TDPTransport aTransportType = TDP_SERIAL );
83 TDPError disconnect();
85 TDPError sendMessage(TPCommand aCmd, int aDataLength, void *aData);
86 TDPError receiveMessage(TPCommand* aCmd, int* aDataLength, void* aData);
89 bool isValidCMDID(TPCommand aCommand);
92 MUCCTransport* iTransport;
93 TBufC16<40> iRemoteHost;