|
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 interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MAPNSETTINGS_H |
|
20 #define MAPNSETTINGS_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 const TUint32 KAPNSettingsVersion = 0x0000; |
|
25 |
|
26 namespace CENREP |
|
27 { |
|
28 |
|
29 /** |
|
30 * APN Id return value if no APN is specified for the given suite. |
|
31 * This constant decouples the persistence media (i.e CenRep) and the API. |
|
32 */ |
|
33 const TUint32 KMIDletSuiteAPNNotSpecified = KMaxTUint32; |
|
34 |
|
35 |
|
36 class MAPNSettings |
|
37 { |
|
38 public: |
|
39 virtual void CreateL() = 0; |
|
40 virtual void OpenL() = 0; |
|
41 virtual void Close(void) = 0; |
|
42 virtual TUint32 GetAPNIdL(TUint32 aMSId) = 0; |
|
43 virtual void SetAPNL(TUint32 aMSId, TUint32 aAPNId) = 0; |
|
44 virtual void RemoveL(TUint32 aMSId) = 0; |
|
45 virtual void SetUseSystemDefaultAPNL(TUint32 aMSId) = 0; |
|
46 virtual void SetUseJavaDefaultAPNL(TUint32 aMSId) = 0; |
|
47 virtual TBool IsUseSystemDefaultAPNL(TUint32 aMSId) = 0; |
|
48 virtual TBool IsUseJavaDefaultAPNL(TUint32 aMSId) = 0; |
|
49 virtual TUint32 GetJavaDefaultAPNL() = 0; |
|
50 virtual void SetJavaDefaultAPNL(TUint32 aAPNId) = 0; |
|
51 virtual ~MAPNSettings() = 0; |
|
52 |
|
53 }; |
|
54 inline MAPNSettings::~MAPNSettings() |
|
55 { |
|
56 } |
|
57 |
|
58 IMPORT_C MAPNSettings* GetAPNSettingsLC(TUint32); |
|
59 |
|
60 } // end of namespace CENREP |
|
61 |
|
62 #endif // MAPNSETTINGS_H |