|
1 /** |
|
2 * Copyright (c) 1997-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 * Header for Connection Settings used by CDialogProcessor |
|
16 * and DBAccess Classes |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 /** |
|
24 @file CONNECTIONSETTINGS.H |
|
25 @internalTechnology |
|
26 */ |
|
27 |
|
28 |
|
29 #ifndef __CONNECTIONSETTINGS_H__ |
|
30 #define __CONNECTIONSETTINGS_H__ |
|
31 |
|
32 #include <d32comm.h> |
|
33 #include <commdb.h> //todo move the constants |
|
34 #include <commsdattypesv1_1.h> |
|
35 using namespace CommsDat; |
|
36 |
|
37 const TUint KCharT='T'; |
|
38 const TUint KCharP='P'; |
|
39 const TUint KSlashChar='\\'; |
|
40 |
|
41 const TUint KDCDHandshakeMask=KConfigObeyDCD|KConfigFailDCD; |
|
42 const TUint KDSRFailHandshakeMask=KConfigFailDSR; |
|
43 const TUint KCTSHandshakeMask=KConfigObeyCTS|KConfigFailCTS; |
|
44 const TUint KNoHandshakingMask=~(KConfigObeyXoff | KConfigSendXoff | KConfigObeyCTS | |
|
45 KConfigFailCTS | KConfigObeyDSR | KConfigFailDSR | KConfigObeyDCD | KConfigFailDCD ); |
|
46 |
|
47 class TConnectionSettings |
|
48 /** |
|
49 @internalTechnology |
|
50 */ |
|
51 { |
|
52 public: |
|
53 IMPORT_C TConnectionSettings(); |
|
54 public: |
|
55 TUint32 iRank; |
|
56 TCommDbConnectionDirection iDirection; |
|
57 TCommDbDialogPref iDialogPref; |
|
58 TUint32 iBearerSet; |
|
59 TUint32 iIAPId; |
|
60 TUint32 iServiceId; |
|
61 TBuf<KCommsDbSvrMaxColumnNameLength> iServiceType; |
|
62 TUint32 iBearerId; |
|
63 TBuf<KCommsDbSvrMaxFieldLength> iBearerType; |
|
64 TUint32 iLocationId; |
|
65 TUint32 iChargeCardId; |
|
66 }; |
|
67 |
|
68 #endif |
|
69 |