equal
deleted
inserted
replaced
291 return KErrIrObexRespUnauthorized; |
291 return KErrIrObexRespUnauthorized; |
292 } |
292 } |
293 |
293 |
294 if (iBTObject) |
294 if (iBTObject) |
295 { |
295 { |
296 iTotalSizeByte = iBTObject->Length(); // get size of receiving file |
296 if(iBTTransferState == ETransferPutDiskError) |
|
297 { |
|
298 return KErrDiskFull; |
|
299 } |
|
300 |
|
301 if(iBTObject->Name().Length() > KMaxFileName) |
|
302 { |
|
303 TRACE_INFO( _L( "[oppreceiveservice] COPPController: PutPacketIndication truncating name of file being received\t" ) ); |
|
304 TRAPD(err, iBTObject->SetNameL(iBTObject->Name().Left(KMaxFileName))); |
|
305 if(err != KErrNone) |
|
306 { |
|
307 return KErrAccessDenied; |
|
308 } |
|
309 } |
297 iReceivingFileName = iBTObject->Name(); // get name of receiving file |
310 iReceivingFileName = iBTObject->Name(); // get name of receiving file |
|
311 iTotalSizeByte = iBTObject->Length(); // get size of receiving file |
298 |
312 |
299 // Check that capacity is suitable as soon as possible |
313 // Check that capacity is suitable as soon as possible |
300 if(!iLengthHeaderReceived && iTotalSizeByte > 0) |
314 if(!iLengthHeaderReceived && iTotalSizeByte > 0) |
301 { |
315 { |
302 iLengthHeaderReceived = ETrue; // total size value is from length header |
316 iLengthHeaderReceived = ETrue; // total size value is from length header |
310 { |
324 { |
311 TRAP_IGNORE(TObexUtilsUiLayer::ShowGlobalConfirmationQueryL(R_OUT_OF_MEMORY)); |
325 TRAP_IGNORE(TObexUtilsUiLayer::ShowGlobalConfirmationQueryL(R_OUT_OF_MEMORY)); |
312 return KErrDiskFull; |
326 return KErrDiskFull; |
313 } |
327 } |
314 } |
328 } |
315 if(iBTObject->Name().Length() > KMaxFileName) |
329 |
316 { |
330 |
317 return KErrAccessDenied; |
|
318 } |
|
319 if(iBTTransferState == ETransferPutDiskError) |
|
320 { |
|
321 return KErrDiskFull; |
|
322 } |
|
323 // successfully received put packet if we reached here |
331 // successfully received put packet if we reached here |
324 iBTTransferState = ETransferPut; |
332 iBTTransferState = ETransferPut; |
325 |
333 |
326 // Now we need to either create (in the first instance) or update the dialog on the UI. |
334 // Now we need to either create (in the first instance) or update the dialog on the UI. |
327 if(ReceivingIndicatorActive()) |
335 if(ReceivingIndicatorActive()) |