|
1 /* |
|
2 * Copyright (c) 2008-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: APNSettings implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "apncenreptable.h" |
|
20 #include "connectionmanager.h" |
|
21 #include "logger.h" |
|
22 #include "javacommonutils.h" // Required by logger.h |
|
23 #include "javasymbianoslayer.h" |
|
24 #include "javauid.h" |
|
25 |
|
26 namespace CENREP |
|
27 { |
|
28 |
|
29 CAPNCenRepTable::~CAPNCenRepTable() |
|
30 { |
|
31 } |
|
32 |
|
33 CAPNCenRepTable* CAPNCenRepTable::NewLC() |
|
34 { |
|
35 CAPNCenRepTable* table = new(ELeave) CAPNCenRepTable; |
|
36 CleanupStack::PushL(table); |
|
37 return table; |
|
38 } |
|
39 |
|
40 void CAPNCenRepTable::CreateL() |
|
41 { |
|
42 // noop |
|
43 } |
|
44 |
|
45 void CAPNCenRepTable::OpenL() |
|
46 { |
|
47 // noop |
|
48 } |
|
49 |
|
50 void CAPNCenRepTable::Close(void) |
|
51 { |
|
52 // noop |
|
53 } |
|
54 |
|
55 TUint32 CAPNCenRepTable::GetAPNIdL(TUint32 aMSId) |
|
56 { |
|
57 TUid uid = TUid::Uid(aMSId); |
|
58 java::util::Uid javaUid; |
|
59 TUidToUid(uid, javaUid); |
|
60 |
|
61 return ConnectionManager::getApnIdL(javaUid); |
|
62 } |
|
63 |
|
64 void CAPNCenRepTable::SetAPNL(TUint32 aMSId, TUint32 aAPNId) |
|
65 { |
|
66 TUid uid = TUid::Uid(aMSId); |
|
67 java::util::Uid javaUid; |
|
68 TUidToUid(uid, javaUid); |
|
69 ConnectionManager::setApnIdL(javaUid, aAPNId); |
|
70 } |
|
71 |
|
72 void CAPNCenRepTable::RemoveL(TUint32 aMSId) |
|
73 { |
|
74 TUid uid = TUid::Uid(aMSId); |
|
75 java::util::Uid javaUid; |
|
76 TUidToUid(uid, javaUid); |
|
77 ConnectionManager::setApnIdL(javaUid, KJavaNetworkAccessNotSpecified); |
|
78 } |
|
79 |
|
80 void CAPNCenRepTable::SetUseSystemDefaultAPNL(TUint32 /*aMSId*/) |
|
81 { |
|
82 } |
|
83 |
|
84 void CAPNCenRepTable::SetUseJavaDefaultAPNL(TUint32 /*aMSId*/) |
|
85 { |
|
86 } |
|
87 |
|
88 TBool CAPNCenRepTable::IsUseSystemDefaultAPNL(TUint32 /*aMSId*/) |
|
89 { |
|
90 return false; |
|
91 } |
|
92 |
|
93 TBool CAPNCenRepTable::IsUseJavaDefaultAPNL(TUint32 /*aMSId*/) |
|
94 { |
|
95 return false; |
|
96 } |
|
97 |
|
98 TUint32 CAPNCenRepTable::GetJavaDefaultAPNL() |
|
99 { |
|
100 return KMIDletSuiteAPNNotSpecified; |
|
101 } |
|
102 |
|
103 void CAPNCenRepTable::SetJavaDefaultAPNL(TUint32 /*aAPNId*/) |
|
104 { |
|
105 } |
|
106 } // end of namespace CENREP |
|
107 |
|
108 |