|
1 // Copyright (c) 1997-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 /** |
|
17 @file |
|
18 @internalAll |
|
19 */ |
|
20 |
|
21 #ifndef __MPHONE_H__ |
|
22 #define __MPHONE_H__ |
|
23 |
|
24 #include "PHONE.H" |
|
25 #include <etelmm.h> |
|
26 #include "mnetwork.h" |
|
27 #include "Msignal.h" |
|
28 |
|
29 class CMobileSmsMessaging; |
|
30 class CATPhoneBookInfo; |
|
31 class CATGetBattery; |
|
32 class CATGetSignal; |
|
33 class CATNetworkInfo; |
|
34 class CATSubscriberId; |
|
35 class CATOwnNumbers; |
|
36 class CATDetectNetwork; |
|
37 class CGprs; |
|
38 |
|
39 |
|
40 class CListReadAllAttempt : public CBase |
|
41 { |
|
42 public: |
|
43 static CListReadAllAttempt* NewL(RMobilePhone::TClientId* aId, TTsyReqHandle aTsyReqHandle); |
|
44 ~CListReadAllAttempt(); |
|
45 |
|
46 protected: |
|
47 CListReadAllAttempt(RMobilePhone::TClientId* aId, TTsyReqHandle aTsyReqHandle); |
|
48 |
|
49 private: |
|
50 void ConstructL(); |
|
51 |
|
52 public: |
|
53 CBufBase* iListBuf; |
|
54 RMobilePhone::TClientId iClient; |
|
55 TTsyReqHandle iReqHandle; |
|
56 }; |
|
57 |
|
58 |
|
59 class CPhoneMobile : public CPhoneHayes |
|
60 { |
|
61 public: |
|
62 static CPhoneMobile* NewL(); |
|
63 ~CPhoneMobile(); |
|
64 |
|
65 static void ClosePhone(TAny* aObj); |
|
66 |
|
67 virtual TInt ExtFunc(const TTsyReqHandle aTsyReqHandle,const TInt aIpc,const TDataPackage& aPackage); |
|
68 virtual TInt NumberOfSlotsL(const TInt aIpc); |
|
69 virtual TInt RegisterNotification(const TInt aIpc); |
|
70 virtual TInt DeregisterNotification(const TInt aIpc); |
|
71 virtual TInt CancelService(const TInt aIpc,const TTsyReqHandle aTsyReqHandle); |
|
72 virtual TReqMode ReqModeL(const TInt aIpc); |
|
73 virtual CTelObject* OpenNewObjectL(TDes& aName); |
|
74 virtual CTelObject* OpenNewObjectByNameL(const TDesC& aName); |
|
75 virtual TInt ControlledInitialisation(const TTsyReqHandle aTsyReqHandle); |
|
76 |
|
77 RMobilePhone::TMobilePhoneRegistrationStatus RegistrationStatus() const; |
|
78 void CurrentNetworkInfo(CATNetworkInfo::TTsyNetworkInfo* aNetworkInfo) const; |
|
79 // Callback function for CATDetectNetworks to signal cancel completion |
|
80 void CompleteDetectedNetworksCancel(const TTsyReqHandle aTsyReqHandle); |
|
81 TInt MultimodeInitL(TBool aExplicit); |
|
82 |
|
83 |
|
84 RMobilePhone::TMMTableSettings iTableSettings; |
|
85 |
|
86 private: |
|
87 void ConstructL(); |
|
88 // |
|
89 // Multimode extension |
|
90 // |
|
91 TInt GetPhoneId(const TTsyReqHandle aTsyReqHandle,RMobilePhone::TMobilePhoneIdentityV1* aId); |
|
92 TInt GetIdentityCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aIdentityCaps); |
|
93 TInt GetSignalCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps); |
|
94 TInt GetSignalStrength(const TTsyReqHandle aTsyReqHandle, TInt32* aSignalStrength, TInt8* aBar); |
|
95 TInt GetSignalStrengthCancel(const TTsyReqHandle aTsyReqHandle); |
|
96 |
|
97 TInt GetMultimodeCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aMultimodeCaps); |
|
98 TInt GetPhoneStoreInfo(const TTsyReqHandle aTsyReqHandle, TDes8* aInfo,TDesC* aName); |
|
99 TInt GetPhoneStoreInfo(const TTsyReqHandle aTsyReqHandle, TDes8* aStoreNameIccType,TDes8* aInfo); |
|
100 TInt GetNetworkRegistrationStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneRegistrationStatus* aRegistrationStatus); |
|
101 TInt NotifyNetworkRegistrationStatusChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneRegistrationStatus* aRegistrationStatus); |
|
102 |
|
103 TInt NotifyNetworkRegistrationStatusChangeCancel(const TTsyReqHandle aTsyReqHandle); |
|
104 TInt GetNetworkCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aNetworkCaps); |
|
105 TInt GetCurrentMode(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNetworkMode* aNetworkMode); |
|
106 TInt GetCurrentNetwork(const TTsyReqHandle aTsyReqHandle, TDes8* aNetworkInfoPckg, |
|
107 RMobilePhone::TMobilePhoneLocationAreaV1* aArea); |
|
108 TInt NotifyCurrentNetworkChange(const TTsyReqHandle aTsyReqHandle,TDes8* aNetworkInfoPckg, |
|
109 RMobilePhone::TMobilePhoneLocationAreaV1* aArea); |
|
110 |
|
111 TInt NotifyCurrentNetworkChangeCancel(const TTsyReqHandle aTsyReqHandle); |
|
112 TInt GetDetectedNetworksPhase1L(TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TInt* aBufSiz); |
|
113 TInt GetDetectedNetworksPhase1(TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TInt* aBufSiz); //hs |
|
114 TInt GetDetectedNetworksPhase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf); |
|
115 TInt GetBatteryCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aBatteryCaps); |
|
116 |
|
117 TInt GetBatteryInfo(const TTsyReqHandle aTsyReqHandle,RMobilePhone::TMobilePhoneBatteryInfoV1* aBatteryInfo); |
|
118 TInt GetBatteryInfoCancel(const TTsyReqHandle aTsyReqHandle); |
|
119 TBool IsListedPhoneBook(const TDesC& aName,TDes8& aStorageType,TBool& aSupported) const; |
|
120 TInt GetSubscriberId(TTsyReqHandle aTsyReqHandle,RMobilePhone::TMobilePhoneSubscriberId* aId); |
|
121 RMobilePhone::TMobilePhoneNetworkMode GetMode(); |
|
122 TInt ExplicitInitialisationL(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMMTableSettings* aSettings); |
|
123 TInt ExplicitInitialisationCancel(const TTsyReqHandle aTsyReqHandle); |
|
124 |
|
125 private: |
|
126 CGprs* iGprsService; |
|
127 CMobileSmsMessaging* iSmsMessaging; |
|
128 CATPhoneBookInfo* iPhoneBookInfo; |
|
129 CATGetBattery* iATBattery; |
|
130 CATGetSignal* iATSignal; |
|
131 CATNetworkInfo* iATNetworkInfo; |
|
132 CATSubscriberId* iATSubscriberId; |
|
133 CATOwnNumbers* iATOwnNumbers; |
|
134 CATDetectNetwork* iATDetectNetwork; |
|
135 CArrayPtrFlat<CListReadAllAttempt>* iGetDetectedNetworks; |
|
136 |
|
137 // Keep structure holding pointers to ETel server memory |
|
138 CATGetSignal::TTsySignalInfo iSignalPtrs; |
|
139 CATNetworkInfo::TTsyNetworkInfo iNetworkInfoPtrs; |
|
140 CATDetectNetwork::TTsyDetectedNetworks iNetworkListInfoPtrs; |
|
141 }; |
|
142 |
|
143 #endif |
|
144 |
|
145 |
|
146 |