|
1 /* |
|
2 * Copyright (c) 2007-2008 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: interface that access to etelmm API in sat |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MSATMULTIMODEAPI_H |
|
20 #define MSATMULTIMODEAPI_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <etel.h> |
|
24 #include <etelmm.h> |
|
25 #include <rmmcustomapi.h> |
|
26 |
|
27 |
|
28 /** |
|
29 * Encapsule the access to etelmm API in sat |
|
30 * |
|
31 * @lib satengine.lib |
|
32 * @since S60 v5.0 |
|
33 */ |
|
34 class MSatMultiModeApi |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Gives reference to active RMobilePhone session |
|
41 * |
|
42 * @return Reference to active RMobilePhone server session |
|
43 */ |
|
44 virtual RMobilePhone* Phone() = 0; |
|
45 |
|
46 /** |
|
47 * Gives reference to active Dummy RMobilePhone session |
|
48 * |
|
49 * @return Reference to active Dummy RMobilePhone server session |
|
50 */ |
|
51 virtual RMobilePhone* DummyPhone() = 0; |
|
52 |
|
53 /** |
|
54 * Gives reference to active RMmCustomApi session |
|
55 * |
|
56 * @return Reference to active RMmCustomApi server session |
|
57 */ |
|
58 virtual RMmCustomAPI* CustomApi() = 0; |
|
59 |
|
60 /** |
|
61 * Lowers error granularity to basic errors |
|
62 */ |
|
63 virtual void LowerErrorGranularity() = 0; |
|
64 |
|
65 /** |
|
66 * Raises error granularity to extended errors |
|
67 */ |
|
68 virtual void RaiseErrorGranularity() = 0; |
|
69 |
|
70 /** |
|
71 * Access RMobilePhone::GetNetworkRegistrationStatus |
|
72 * for the paramter information please see the etelmm.h |
|
73 */ |
|
74 virtual void GetNetworkRegistrationStatus( TRequestStatus& aReqStatus, |
|
75 RMobilePhone::TMobilePhoneRegistrationStatus& aStatus ) = 0; |
|
76 |
|
77 /** |
|
78 * Access RMobilePhone::NotifyNetworkRegistrationStatusChange |
|
79 * for the paramter information please see the etelmm.h |
|
80 */ |
|
81 virtual void NotifyNetworkRegistrationStatusChange( |
|
82 TRequestStatus& aReqStatus, |
|
83 RMobilePhone::TMobilePhoneRegistrationStatus& aStatus) = 0; |
|
84 |
|
85 /** |
|
86 * Access RMobilePhone::GetSubscriberId |
|
87 * for the paramter information please see the etelmm.h |
|
88 */ |
|
89 virtual void GetSubscriberId( TRequestStatus& aReqStatus, |
|
90 RMobilePhone::TMobilePhoneSubscriberId& aId ) = 0; |
|
91 |
|
92 /** |
|
93 * Access RMobilePhone::SendDTMFTones |
|
94 * for the paramter information please see the etelmm.h |
|
95 */ |
|
96 virtual void SendDTMFTones(TRequestStatus& aReqStatus, |
|
97 const TDesC& aTones) = 0; |
|
98 /** |
|
99 * Access RMobilePhone::CancelAsyncRequest |
|
100 * for the paramter information please see the etelmm.h |
|
101 */ |
|
102 virtual void CancelAsyncRequest(TInt aReqToCancel) = 0; |
|
103 |
|
104 |
|
105 /** |
|
106 * Access RMobilePhone::SendNetworkServiceRequestNoFdnCheck |
|
107 * for the paramter information please see the etelmm.h |
|
108 */ |
|
109 virtual void SendNetworkServiceRequestNoFdnCheck( |
|
110 TRequestStatus& aReqStatus, const TDesC& aServiceString) = 0; |
|
111 |
|
112 /** |
|
113 * Access RMobileCall::DialNoFdnCheck |
|
114 * for the paramter information please see the etelmm.h |
|
115 */ |
|
116 virtual void DialNoFdnCheck(TRequestStatus& aStatus, |
|
117 const TDesC8& aCallParams,const TDesC& aTelNumber) = 0; |
|
118 |
|
119 /** |
|
120 * Access RMobileUssdMessaging::SendNetworkServiceRequestNoFdnCheck |
|
121 * for the paramter information please see the etelmm.h |
|
122 */ |
|
123 virtual void SendMessageNoFdnCheck( TRequestStatus& aReqStatus, |
|
124 const TDesC8& aMsgData, const TDesC8& aMsgAttributes ) = 0 ; |
|
125 /** |
|
126 * Access RMobileCall::DialCancel |
|
127 */ |
|
128 virtual void DialCancel() = 0; |
|
129 /** |
|
130 * Access RMobilePhone::GetCurrentActiveUSimApplication |
|
131 * for the paramter information please see the etelmm.h |
|
132 */ |
|
133 virtual void GetCurrentActiveUSimApplication( TRequestStatus& aReqStatus, |
|
134 RMobilePhone::TAID& aAID ) = 0; |
|
135 |
|
136 /** |
|
137 * Check if there is an incoming call |
|
138 * @return ETrue if there is an incoming call |
|
139 */ |
|
140 virtual TBool IsCallIncoming() = 0; |
|
141 }; |
|
142 |
|
143 #endif // MSATMULTIMODEAPI_H |