equal
deleted
inserted
replaced
127 iReceivedObjectInfo->SetUint( CMTPObjectMetaData::EDataProviderId, |
127 iReceivedObjectInfo->SetUint( CMTPObjectMetaData::EDataProviderId, |
128 iFramework.DataProviderId() ); |
128 iFramework.DataProviderId() ); |
129 |
129 |
130 PRINT1( _L( "MM MTP <> CSendObject::ConstructL DataProviderId = 0x%x" ), iFramework.DataProviderId()); |
130 PRINT1( _L( "MM MTP <> CSendObject::ConstructL DataProviderId = 0x%x" ), iFramework.DataProviderId()); |
131 |
131 |
132 SetPSStatus(); |
132 |
133 PRINT( _L( "MM MTP <= CSendObject::ConstructL" ) ); |
133 PRINT( _L( "MM MTP <= CSendObject::ConstructL" ) ); |
134 } |
134 } |
135 |
135 |
136 // ----------------------------------------------------------------------------- |
136 // ----------------------------------------------------------------------------- |
137 // CSendObject::Match |
137 // CSendObject::Match |
322 // ----------------------------------------------------------------------------- |
322 // ----------------------------------------------------------------------------- |
323 // |
323 // |
324 EXPORT_C void CSendObject::ServiceL() |
324 EXPORT_C void CSendObject::ServiceL() |
325 { |
325 { |
326 PRINT( _L( "MM MTP => CSendObject::ServiceL" ) ); |
326 PRINT( _L( "MM MTP => CSendObject::ServiceL" ) ); |
|
327 |
|
328 MmMtpDpUtility::SetPSStatus(EMtpPSStatusActive); |
327 |
329 |
328 if ( iProgress == EObjectNone ) |
330 if ( iProgress == EObjectNone ) |
329 { |
331 { |
330 if ( iOperationCode == EMTPOpCodeSendObjectInfo ) |
332 if ( iOperationCode == EMTPOpCodeSendObjectInfo ) |
331 { |
333 { |
594 } |
596 } |
595 |
597 |
596 // Commits into MTP data object enumeration store the object handle and |
598 // Commits into MTP data object enumeration store the object handle and |
597 // storage space previously reserved for the specified object. |
599 // storage space previously reserved for the specified object. |
598 iFramework.ObjectMgr().CommitReservedObjectHandleL( *iReceivedObjectInfo ); |
600 iFramework.ObjectMgr().CommitReservedObjectHandleL( *iReceivedObjectInfo ); |
599 iRollbackList.Append( RemoveObjectFromDbL ); |
601 iRollbackList.Append( &CSendObject::RemoveObjectFromDbL ); |
600 } |
602 } |
601 |
603 |
602 // Commit object to MTP data store |
604 // Commit object to MTP data store |
603 iFramework.RouteRequestUnregisterL( iExpectedSendObjectRequest, |
605 iFramework.RouteRequestUnregisterL( iExpectedSendObjectRequest, |
604 iConnection ); |
606 iConnection ); |
1137 |
1139 |
1138 // Reserves space for and assigns an object handle to the object described |
1140 // Reserves space for and assigns an object handle to the object described |
1139 // by the specified object information record. |
1141 // by the specified object information record. |
1140 TRAP( err, iObjectMgr.ReserveObjectHandleL( *iReceivedObjectInfo, |
1142 TRAP( err, iObjectMgr.ReserveObjectHandleL( *iReceivedObjectInfo, |
1141 iObjectSize ) ); |
1143 iObjectSize ) ); |
1142 iRollbackList.Append( UnreserveObjectL ); |
1144 iRollbackList.Append( &CSendObject::UnreserveObjectL ); |
1143 |
1145 |
1144 PRINT2( _L( "MM MTP => CSendObject::ReserveObjectL iObjectsize = %Lu, Operation: 0x%x" ), iObjectSize, iOperationCode ); |
1146 PRINT2( _L( "MM MTP => CSendObject::ReserveObjectL iObjectsize = %Lu, Operation: 0x%x" ), iObjectSize, iOperationCode ); |
1145 if ( err != KErrNone ) |
1147 if ( err != KErrNone ) |
1146 { |
1148 { |
1147 PRINT1( _L( "MM MTP <> ReserveObjectHandleL err = %d" ), err ); |
1149 PRINT1( _L( "MM MTP <> ReserveObjectHandleL err = %d" ), err ); |
1150 if ( err == KErrNone ) |
1152 if ( err == KErrNone ) |
1151 { |
1153 { |
1152 delete iFileReceived; |
1154 delete iFileReceived; |
1153 iFileReceived = NULL; |
1155 iFileReceived = NULL; |
1154 PRINT2( _L( "MM MTP <> CSendObject::ServiceObjectL, iFullPath is %S, iObjectSize: %Lu" ), &iFullPath, iObjectSize ); |
1156 PRINT2( _L( "MM MTP <> CSendObject::ServiceObjectL, iFullPath is %S, iObjectSize: %Lu" ), &iFullPath, iObjectSize ); |
1155 iRollbackList.Append( RemoveObjectFromFs ); |
1157 iRollbackList.Append( &CSendObject::RemoveObjectFromFs ); |
1156 TRAP( err, iFileReceived = CMTPTypeFile::NewL( iFs, iFullPath, EFileWrite ) ); |
1158 TRAP( err, iFileReceived = CMTPTypeFile::NewL( iFs, iFullPath, EFileWrite ) ); |
1157 |
1159 |
1158 PRINT1( _L("MM MTP <> CMTPTypeFile::NewL Leave Code is: %d"), err ); |
1160 PRINT1( _L("MM MTP <> CMTPTypeFile::NewL Leave Code is: %d"), err ); |
1159 } |
1161 } |
1160 |
1162 |
1267 |
1269 |
1268 // add playlist to MPX DB |
1270 // add playlist to MPX DB |
1269 TRAPD( err, AddMediaToStoreL() ); |
1271 TRAPD( err, AddMediaToStoreL() ); |
1270 |
1272 |
1271 if ( err != KErrNone ) |
1273 if ( err != KErrNone ) |
1272 iRollbackList.Append( RemoveObjectFromDbL ); |
1274 iRollbackList.Append( &CSendObject::RemoveObjectFromDbL ); |
1273 else |
1275 else |
1274 iRollbackList.Reset(); |
1276 iRollbackList.Reset(); |
1275 |
1277 |
1276 PRINT1( _L( "MM MTP <= CSendObject::SaveEmptyFileL err = %d" ), err ); |
1278 PRINT1( _L( "MM MTP <= CSendObject::SaveEmptyFileL err = %d" ), err ); |
1277 } |
1279 } |