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