equal
deleted
inserted
replaced
52 // todo @ QT migration: take official definition from Messaging at app layer (btmsgtypeuid.h) |
52 // todo @ QT migration: take official definition from Messaging at app layer (btmsgtypeuid.h) |
53 const TUid KUidMsgTypeBt = {0x10009ED5}; |
53 const TUid KUidMsgTypeBt = {0x10009ED5}; |
54 |
54 |
55 const TInt KObexUtilsMaxCharToFromField = 256; |
55 const TInt KObexUtilsMaxCharToFromField = 256; |
56 |
56 |
|
57 const TInt32 KUidMsgTypeBtTInt32 = 0x10009ED5; |
|
58 |
57 // ============================= LOCAL FUNCTIONS =============================== |
59 // ============================= LOCAL FUNCTIONS =============================== |
58 |
60 |
59 // ----------------------------------------------------------------------------- |
61 // ----------------------------------------------------------------------------- |
60 // RemoveObexBuffer Removes Obex buffer object. |
62 // RemoveObexBuffer Removes Obex buffer object. |
61 // ----------------------------------------------------------------------------- |
63 // ----------------------------------------------------------------------------- |
301 |
303 |
302 TMsvEntry parentTEntry = parentEntry->Entry(); |
304 TMsvEntry parentTEntry = parentEntry->Entry(); |
303 parentTEntry.iMtm = KUidBIOMessageTypeMtm; |
305 parentTEntry.iMtm = KUidBIOMessageTypeMtm; |
304 parentTEntry.iServiceId = KMsvLocalServiceIndexEntryId; |
306 parentTEntry.iServiceId = KMsvLocalServiceIndexEntryId; |
305 parentTEntry.iBioType = aBioMsgId.iUid; |
307 parentTEntry.iBioType = aBioMsgId.iUid; |
|
308 parentTEntry.iMtmData1 = KUidMsgTypeBtTInt32; |
306 parentTEntry.iDescription.Set(aBioDB->BifReader(index).Description()); |
309 parentTEntry.iDescription.Set(aBioDB->BifReader(index).Description()); |
307 parentEntry->ChangeL(parentTEntry); |
310 parentEntry->ChangeL(parentTEntry); |
308 |
311 |
309 FLOG(_L("[OBEXUTILS]\t StoreAndUpdateBioMessageL() completed")); |
312 FLOG(_L("[OBEXUTILS]\t StoreAndUpdateBioMessageL() completed")); |
310 } |
313 } |
340 HBufC* buf16 = HBufC::NewLC(mimeType.Length()); |
343 HBufC* buf16 = HBufC::NewLC(mimeType.Length()); |
341 buf16->Des().Copy(mimeType); |
344 buf16->Des().Copy(mimeType); |
342 TPtrC mimeType16(buf16->Des()); |
345 TPtrC mimeType16(buf16->Des()); |
343 CleanupStack::PopAndDestroy(); // buf16 |
346 CleanupStack::PopAndDestroy(); // buf16 |
344 |
347 |
345 CUpdateMusicCollection* updateMusicCollection = CUpdateMusicCollection::NewL() ; |
348 CUpdateMusicCollection* updateMusicCollection = CUpdateMusicCollection::NewL(); |
|
349 CleanupStack::PushL(updateMusicCollection); |
346 if (updateMusicCollection->isSupported(mimeType16)) |
350 if (updateMusicCollection->isSupported(mimeType16)) |
347 { |
351 { |
348 updateMusicCollection->addToCollectionL(aFileName); |
352 updateMusicCollection->addToCollectionL(aFileName); |
349 } |
353 } |
|
354 CleanupStack::PopAndDestroy(); // updateMusicCollection |
350 |
355 |
351 aAttachInfo->SetMimeTypeL( mimeType ); |
356 aAttachInfo->SetMimeTypeL( mimeType ); |
352 |
357 |
353 FLOG(_L("[OBEXUTILS]\t RecogniseObjectsL() completed")); |
358 FLOG(_L("[OBEXUTILS]\t RecogniseObjectsL() completed")); |
354 } |
359 } |