equal
deleted
inserted
replaced
164 // --------------------------------------------------------------------------- |
164 // --------------------------------------------------------------------------- |
165 // |
165 // |
166 void CNcdDeviceService::RunL() |
166 void CNcdDeviceService::RunL() |
167 { |
167 { |
168 DLTRACEIN(( "iStatus: %d", iStatus.Int() )); |
168 DLTRACEIN(( "iStatus: %d", iStatus.Int() )); |
|
169 DLINFO(( "iState: %d", iState )); |
169 |
170 |
170 // GetSubscriberId fails with KErrNotFound if there's no SIM in the device |
171 // GetSubscriberId fails with KErrNotFound if there's no SIM in the device |
171 switch ( iState ) |
172 switch ( iState ) |
172 { |
173 { |
173 case EGetPhoneId: |
174 case EGetPhoneId: |
180 } |
181 } |
181 |
182 |
182 case EGetSubscriberId: |
183 case EGetSubscriberId: |
183 { |
184 { |
184 if ( iStatus.Int() == KErrNone || |
185 if ( iStatus.Int() == KErrNone || |
185 iStatus.Int() == KErrNotFound ) |
186 iStatus.Int() == KErrNotFound || |
|
187 iStatus.Int() == KErrNotReady ) |
186 { |
188 { |
187 |
189 |
188 DLTRACE(("Got subscriber ID")); |
190 DLTRACE(("Got subscriber ID")); |
189 DLINFO(( _L("IMSI: %S"), &iSubscriberIdV1.iSubscriberId )) |
191 DLINFO(( _L("IMSI: %S"), &iSubscriberIdV1.iSubscriberId )) |
190 GetNetworkInfo(); |
192 GetNetworkInfo(); |