--- a/localconnectivityservice/obexreceiveservices/bip/src/BIPController.cpp Tue Feb 02 00:45:58 2010 +0200
+++ b/localconnectivityservice/obexreceiveservices/bip/src/BIPController.cpp Fri Mar 19 09:42:38 2010 +0200
@@ -29,7 +29,7 @@
#include <obexutilsuilayer.h>
#include <obexutilsdialog.h>
#include <UiklafInternalCRKeys.h>
-#include <obexutils.rsg>
+#include <Obexutils.rsg>
#include <sysutil.h>
#include <bautils.h>
#include <pathinfo.h> // provides interface for quering system paths
@@ -45,7 +45,7 @@
_LIT8(KBipCapabilityType, "x-bt/img-capabilities\0");
-const TInt KBufferSize = 0x4000; // 16kB
+const TInt KBufferSize = 0x10000; // 64 kB
// ================= MEMBER FUNCTIONS =======================
@@ -252,6 +252,17 @@
TRACE_FUNC_ENTRY
iLengthHeaderReceived = EFalse; // New put request so clear header based state
iBTTransferState = ETransferPut;
+
+ // Checking if backup is running now - if backup process is active, then we
+ // need to cancel transfer - otherwise phone will freeze during receiving
+ // data
+ if ( TObexUtilsUiLayer::IsBackupRunning() )
+ {
+ TRACE_INFO ( _L ("Backup in progress! Canceling incoming transfer."));
+ iBTTransferState = ETransferPutInitError;
+ return NULL;
+ }
+
TRAPD(err, HandlePutImageRequestL());
if (err == KErrNone)
{