|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #if !defined(__GPRS_BEARER_DATA_H__) |
|
17 #define __GPRS_BEARER_DATA_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <e32std.h> |
|
21 |
|
22 class CIpAddress; |
|
23 |
|
24 class CWapGprsBearerData:public CBase |
|
25 /** |
|
26 @internalComponent |
|
27 @released |
|
28 */ |
|
29 { |
|
30 public: |
|
31 |
|
32 static CWapGprsBearerData* NewL(); |
|
33 static CWapGprsBearerData* NewLC(); |
|
34 ~CWapGprsBearerData(); |
|
35 |
|
36 public: |
|
37 |
|
38 // Read from XML message (must be present in it) |
|
39 TPtrC iAccessPointName; |
|
40 |
|
41 // Values for these two must be invented |
|
42 // they are mandatory but will not be in the XML message |
|
43 TUint32 iPDPType; |
|
44 HBufC* iPDPAddress; |
|
45 |
|
46 // These two are set to "PPP" and ETrue |
|
47 // they are mandatory but are not in the XML message or the default table |
|
48 HBufC* iIFName; |
|
49 TBool iIFPromptForAuth; |
|
50 |
|
51 // Read from XML message |
|
52 // Not mandatory |
|
53 TPtrC iLoginName; |
|
54 TPtrC iLoginPass; |
|
55 CIpAddress* iGatewayAddr; |
|
56 |
|
57 // Mandatory, but not in the XML message or the default table |
|
58 // set to ETrue |
|
59 TBool iIPDnsAddrFromServer; |
|
60 TBool iPlainTextAuthDisabled; |
|
61 TBool iIpAddrFromServer; |
|
62 TUint iGprsCommDbRecordId; |
|
63 |
|
64 private: |
|
65 void ConstructL(); |
|
66 CWapGprsBearerData(){} |
|
67 }; |
|
68 |
|
69 #endif |