equal
deleted
inserted
replaced
1 // Copyright (c) 2001-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
15 |
16 |
|
17 |
|
18 #include "OstTraceDefinitions.h" |
|
19 #ifdef OST_TRACE_COMPILER_IN_USE |
|
20 #include "CSimDataLineTraces.h" |
|
21 #endif |
|
22 |
|
23 #include "CSimPhone.h" |
16 #include "CSimPhone.h" |
24 #include "CSimDataCall.h" |
17 #include "CSimDataCall.h" |
|
18 #include "Simlog.h" |
25 #include "et_struct.h" |
19 #include "et_struct.h" |
26 |
20 |
27 _LIT(KCommonCallName,"DataCall%d"); // < Data call name template. |
21 _LIT(KCommonCallName,"DataCall%d"); // < Data call name template. |
28 const TInt KCallListGranularity=2; // < The granularity of the call list array. |
22 const TInt KCallListGranularity=2; // < The granularity of the call list array. |
29 |
23 |
112 * @param aName name of call to be opened |
106 * @param aName name of call to be opened |
113 * @return CTelObject pointer to the object opened by name |
107 * @return CTelObject pointer to the object opened by name |
114 * @leave Leaves if name given does not match the required name |
108 * @leave Leaves if name given does not match the required name |
115 */ |
109 */ |
116 { |
110 { |
117 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSIMDATALINE_OPENNEWOBJECTBYNAMEL_1, ">>CSimDataLine::OpenNewObjectByNameL"); |
111 LOGDATA1(">>CSimDataLine::OpenNewObjectByNameL"); |
118 TInt i; |
112 TInt i; |
119 for(i=0;i<iCalls->Count();i++) |
113 for(i=0;i<iCalls->Count();i++) |
120 { |
114 { |
121 if(iCalls->At(i)->iName.MatchF(aName)==0) |
115 if(iCalls->At(i)->iName.MatchF(aName)==0) |
122 { |
116 { |
123 (void)iCalls->At(i)->Open(); |
117 (void)iCalls->At(i)->Open(); |
124 return iCalls->At(i); |
118 return iCalls->At(i); |
125 } |
119 } |
126 } |
120 } |
127 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSIMDATALINE_OPENNEWOBJECTBYNAMEL_2, "<<CSimDataLine::OpenNewObjectByNameL"); |
121 LOGDATA1("<<CSimDataLine::OpenNewObjectByNameL"); |
128 User::Leave(KErrNotFound); |
122 User::Leave(KErrNotFound); |
129 return NULL; |
123 return NULL; |
130 } |
124 } |
131 |
125 |
132 CTelObject* CSimDataLine::OpenNewObjectL(TDes& aNewName) |
126 CTelObject* CSimDataLine::OpenNewObjectL(TDes& aNewName) |
151 if(aCallType!=ECallTypeSpareCall) |
145 if(aCallType!=ECallTypeSpareCall) |
152 { |
146 { |
153 HandleNewCallAddedNotification(aNewName); |
147 HandleNewCallAddedNotification(aNewName); |
154 } |
148 } |
155 iNameOfLastCallAdded.Copy(aNewName); |
149 iNameOfLastCallAdded.Copy(aNewName); |
156 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSIMDATALINE_CREATENEWCALLL_1, ">>CSimDataLine::CreateNewCallL 0x%08x",newCall); |
150 LOGDATA2(">>CSimDataLine::CreateNewCallL 0x%08x",newCall); |
157 CleanupStack::Pop(newCall); |
151 CleanupStack::Pop(newCall); |
158 return newCall; |
152 return newCall; |
159 } |
153 } |
160 |
154 |
161 TInt CSimDataLine::ExtFunc(const TTsyReqHandle aTsyReqHandle,const TInt aIpc,const TDataPackage& aPackage) |
155 TInt CSimDataLine::ExtFunc(const TTsyReqHandle aTsyReqHandle,const TInt aIpc,const TDataPackage& aPackage) |
222 |
216 |
223 case EMobileLineNotifyMobileLineStatusChange: |
217 case EMobileLineNotifyMobileLineStatusChange: |
224 return NotifyMobileLineStatusChangeCancel(aTsyReqHandle); |
218 return NotifyMobileLineStatusChangeCancel(aTsyReqHandle); |
225 |
219 |
226 default: |
220 default: |
227 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSIMDATALINE_CANCELSERVICE_1, "CSimDataLine::CancelService: No IPC match in SIM TSY, defering to core cancelservice function."); |
221 LOGDATA1("CSimDataLine::CancelService: No IPC match in SIM TSY, defering to core cancelservice function."); |
228 break; |
222 break; |
229 } |
223 } |
230 |
224 |
231 return CLineBase::CancelService(aIpc,aTsyReqHandle); |
225 return CLineBase::CancelService(aIpc,aTsyReqHandle); |
232 } |
226 } |