|
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_CONFIG_V01_DATA_H__) |
|
20 #define __T_TCOMM_CONFIG_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_TCommConfigV01Data : public CDataWrapperBase |
|
33 { |
|
34 public: |
|
35 CT_TCommConfigV01Data(); |
|
36 ~CT_TCommConfigV01Data(); |
|
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 TCommConfigV01& GetCommConfigV01(); |
|
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 DoCmdiParityError(const TDesC& aSection); |
|
56 void DoCmdiParityErrorChar(const TDesC& aSection); |
|
57 void DoCmdiRate(const TDesC& aSection); |
|
58 void DoCmdiSIREnable(const TDesC& aSection); |
|
59 void DoCmdiSIRSettings(const TDesC& aSection); |
|
60 void DoCmdiSpecialRate(const TDesC& aSection); |
|
61 void DoCmdiStopBits(const TDesC& aSection); |
|
62 void DoCmdiTerminator(const TDesC& aSection); |
|
63 void DoCmdiTerminatorCount(const TDesC& aSection); |
|
64 void DoCmdiXoffChar(const TDesC& aSection); |
|
65 void DoCmdiXonChar(const TDesC& aSection); |
|
66 |
|
67 private: |
|
68 TCommConfig* iCommConfig; |
|
69 |
|
70 static const TEnumEntryTable iEnumTableDataBits[]; |
|
71 static const TEnumEntryTable iEnumTableFifo[]; |
|
72 static const TEnumEntryTable iEnumTableHandshake[]; |
|
73 static const TEnumEntryTable iEnumTableParity[]; |
|
74 static const TEnumEntryTable iEnumTableParityError[]; |
|
75 static const TEnumEntryTable iEnumTableRate[]; |
|
76 static const TEnumEntryTable iEnumTableSir[]; |
|
77 static const TEnumEntryTable iEnumTableSirSetting[]; |
|
78 static const TEnumEntryTable iEnumTableStopBits[]; |
|
79 }; |
|
80 |
|
81 #endif /* __T_TCOMM_CONFIG_V01_DATA_H__ */ |