os/boardsupport/haitest/bspsvs/suite/e32/inc/T_TCommCapsV01Data.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 *
    16 */
    17 
    18 
    19 #if (!defined __T_TCOMM_CAPS_V01_DATA_H__)
    20 #define __T_TCOMM_CAPS_V01_DATA_H__
    21 
    22 //	User Includes
    23 #include "DataWrapperBase.h"
    24 
    25 //	EPOC includes
    26 #include <d32comm.h>
    27 
    28 /**
    29  * Test Active Notification class
    30  *
    31  */
    32 class CT_TCommCapsV01Data : public CDataWrapperBase
    33 	{
    34 public:
    35 	CT_TCommCapsV01Data();
    36 	~CT_TCommCapsV01Data();
    37 
    38 	virtual TDes8*	Descriptor();
    39 
    40 	virtual TAny*	GetObject();
    41 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
    42 
    43 protected:
    44 	virtual TCommCapsV01&		GetCommCapsV01();
    45 
    46 private:
    47 	void	DestroyData();
    48 
    49 	TInt	DoCmdConstructor();
    50 	void	DoCmdDestructor();
    51 	void	DoCmdiDataBits(const TDesC& aSection);
    52 	void	DoCmdiFifo(const TDesC& aSection);
    53 	void	DoCmdiHandshake(const TDesC& aSection);
    54 	void	DoCmdiParity(const TDesC& aSection);
    55 	void	DoCmdiRate(const TDesC& aSection);
    56 	void	DoCmdiSIR(const TDesC& aSection);
    57 	void	DoCmdiSignals(const TDesC& aSection);
    58 	void	DoCmdiStopBits(const TDesC& aSection);
    59 
    60 private:
    61 	TCommCaps*	iCommCaps;
    62 
    63 	static const TEnumEntryTable	iEnumTableDataBits[];
    64 	static const TEnumEntryTable	iEnumTableFifo[];
    65 	static const TEnumEntryTable	iEnumTableHandshake[];
    66 	static const TEnumEntryTable	iEnumTableParity[];
    67 	static const TEnumEntryTable	iEnumTableRate[];
    68 	static const TEnumEntryTable	iEnumTableSir[];
    69 	static const TEnumEntryTable	iEnumTableSignals[];
    70 	static const TEnumEntryTable	iEnumTableStopBits[];
    71 	};
    72 
    73 #endif /* __T_TCOMM_CAPS_V01_DATA_H__ */