|
1 /* |
|
2 * Copyright (c) 2004 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: definition of dm constants/exported methods |
|
15 * This is part of remotemgmt_plat. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef PNP_TO_PAOS_INTERFACE_H |
|
21 #define PNP_TO_PAOS_INTERFACE_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <etelmm.h> |
|
25 |
|
26 const TInt KMaxVersionStringLength(32); |
|
27 const TInt KNonceLength(8); |
|
28 const TInt KMaxKeyInfoLength(20); |
|
29 _LIT( KPnpUtilDllFileName, "Pnp.dll" ); |
|
30 const TUid KPnpUtilDllUid = { 0x1020433A }; |
|
31 |
|
32 class MPnpToPaosInterface |
|
33 { |
|
34 public: |
|
35 virtual void RESERVED_FUNC() = 0; |
|
36 |
|
37 /** |
|
38 * Returns PnP version string, max length of version string is KMaxVersionStringLength |
|
39 * @return KErrNone, KErrArgument |
|
40 */ |
|
41 virtual TInt Version(TDes& aVersion) = 0; |
|
42 |
|
43 /** |
|
44 * Creates and stores a new nonce. Leaves with KErrArgument if |
|
45 * the nonce does ot fit into aNonce. |
|
46 * @param aTimeOut A time-out for nonce validity (not in use!) |
|
47 * @param aNonce On return contains the new nonce. Minimum length |
|
48 * is KNonceLength. |
|
49 */ |
|
50 virtual void CreateNewNonceL( const TUint aTimeOut, TDes8& aNonce ) = 0; |
|
51 |
|
52 /** |
|
53 * @param aNonce On return contains the nonce. The maximum length should be |
|
54 * KNonceLength. Leaves with KErrArgument if the nonce does ot fit into aNonce. |
|
55 */ |
|
56 virtual void GetNonceL( TDes8& aNonce ) = 0; |
|
57 |
|
58 /** |
|
59 * @param aKeyInfo On return contains the key info. The maximum length is |
|
60 * KMaxKeyInfoLength |
|
61 */ |
|
62 virtual void GetKeyInfoL( TDes8& aKeyInfo ) = 0; |
|
63 |
|
64 /** |
|
65 * Fetch home network info and store it using SetHomeMccL() and SetHomeMncL() |
|
66 */ |
|
67 virtual void FetchHomeNetworkInfoL() = 0; |
|
68 |
|
69 /** |
|
70 * Fetch network info and store it using SetNetworkMccL() and SetNetworkMncL() |
|
71 */ |
|
72 virtual void FetchNetworkInfoL() = 0; |
|
73 |
|
74 /** |
|
75 * Returns the home(sim) MCC stored to shared data / central repository. |
|
76 * @return Home MCC |
|
77 */ |
|
78 virtual const RMobilePhone::TMobilePhoneNetworkCountryCode HomeMccL() const = 0; |
|
79 |
|
80 /** |
|
81 * Returns the home(sim) MNC stored to shared data / central repository. |
|
82 * @return Home MNC |
|
83 */ |
|
84 virtual const RMobilePhone::TMobilePhoneNetworkIdentity HomeMncL() const = 0; |
|
85 |
|
86 /** |
|
87 * Returns the network MCC stored to shared data / central repository. |
|
88 * @return Network MCC |
|
89 */ |
|
90 virtual const RMobilePhone::TMobilePhoneNetworkCountryCode NetworkMccL() const = 0; |
|
91 |
|
92 /** |
|
93 * Stores network MCC to shared data / central repository. |
|
94 * @param Network MCC |
|
95 */ |
|
96 virtual void SetNetworkMccL( const RMobilePhone::TMobilePhoneNetworkCountryCode aMcc ) = 0; |
|
97 |
|
98 /** |
|
99 * Returns the network MNC stored to shared data / central repository. |
|
100 * @return Network MNC |
|
101 */ |
|
102 virtual const RMobilePhone::TMobilePhoneNetworkIdentity NetworkMncL() const = 0; |
|
103 |
|
104 /** |
|
105 * Stores network MNC to shared data / central repository. |
|
106 * @param Network MNC |
|
107 */ |
|
108 virtual void SetNetworkMncL( const RMobilePhone::TMobilePhoneNetworkIdentity aMnc ) = 0; |
|
109 }; |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 #endif // PNP_TO_PAOS_INTERFACE_H |