1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/boardsupport/haitest/bspsvs/suite/e32/inc/T_TCommCapsV01Data.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,73 @@
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 "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.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 +*
1.19 +*/
1.20 +
1.21 +
1.22 +#if (!defined __T_TCOMM_CAPS_V01_DATA_H__)
1.23 +#define __T_TCOMM_CAPS_V01_DATA_H__
1.24 +
1.25 +// User Includes
1.26 +#include "DataWrapperBase.h"
1.27 +
1.28 +// EPOC includes
1.29 +#include <d32comm.h>
1.30 +
1.31 +/**
1.32 + * Test Active Notification class
1.33 + *
1.34 + */
1.35 +class CT_TCommCapsV01Data : public CDataWrapperBase
1.36 + {
1.37 +public:
1.38 + CT_TCommCapsV01Data();
1.39 + ~CT_TCommCapsV01Data();
1.40 +
1.41 + virtual TDes8* Descriptor();
1.42 +
1.43 + virtual TAny* GetObject();
1.44 + virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
1.45 +
1.46 +protected:
1.47 + virtual TCommCapsV01& GetCommCapsV01();
1.48 +
1.49 +private:
1.50 + void DestroyData();
1.51 +
1.52 + TInt DoCmdConstructor();
1.53 + void DoCmdDestructor();
1.54 + void DoCmdiDataBits(const TDesC& aSection);
1.55 + void DoCmdiFifo(const TDesC& aSection);
1.56 + void DoCmdiHandshake(const TDesC& aSection);
1.57 + void DoCmdiParity(const TDesC& aSection);
1.58 + void DoCmdiRate(const TDesC& aSection);
1.59 + void DoCmdiSIR(const TDesC& aSection);
1.60 + void DoCmdiSignals(const TDesC& aSection);
1.61 + void DoCmdiStopBits(const TDesC& aSection);
1.62 +
1.63 +private:
1.64 + TCommCaps* iCommCaps;
1.65 +
1.66 + static const TEnumEntryTable iEnumTableDataBits[];
1.67 + static const TEnumEntryTable iEnumTableFifo[];
1.68 + static const TEnumEntryTable iEnumTableHandshake[];
1.69 + static const TEnumEntryTable iEnumTableParity[];
1.70 + static const TEnumEntryTable iEnumTableRate[];
1.71 + static const TEnumEntryTable iEnumTableSir[];
1.72 + static const TEnumEntryTable iEnumTableSignals[];
1.73 + static const TEnumEntryTable iEnumTableStopBits[];
1.74 + };
1.75 +
1.76 +#endif /* __T_TCOMM_CAPS_V01_DATA_H__ */