equal
deleted
inserted
replaced
1384 TInt cleanupItems(0); |
1384 TInt cleanupItems(0); |
1385 TBool okToSend = EFalse; |
1385 TBool okToSend = EFalse; |
1386 CSendUiFileRightsEngine* fileRightsEngine = CSendUiFileRightsEngine::NewLC( iCoeEnv->FsSession() ); |
1386 CSendUiFileRightsEngine* fileRightsEngine = CSendUiFileRightsEngine::NewLC( iCoeEnv->FsSession() ); |
1387 cleanupItems++; |
1387 cleanupItems++; |
1388 // Get attachments |
1388 // Get attachments |
1389 if ( aMessageData ) |
|
1390 { |
|
1391 attachments = CSendUiAttachment::InitAttachmentArrayLCC( |
1389 attachments = CSendUiAttachment::InitAttachmentArrayLCC( |
1392 aMessageData->AttachmentArray(), |
1390 aMessageData->AttachmentArray(), |
1393 aMessageData->AttachmentHandleArray(), |
1391 aMessageData->AttachmentHandleArray(), |
1394 iCoeEnv->FsSession() ); |
1392 iCoeEnv->FsSession() ); |
1395 cleanupItems += 2; |
1393 cleanupItems += 2; |
1397 if ( attachments->Count() == 0 ) |
1395 if ( attachments->Count() == 0 ) |
1398 { |
1396 { |
1399 //there are no attachments, so no point in checking the file rights at all. |
1397 //there are no attachments, so no point in checking the file rights at all. |
1400 CleanupStack::PopAndDestroy( cleanupItems ); |
1398 CleanupStack::PopAndDestroy( cleanupItems ); |
1401 return ETrue; |
1399 return ETrue; |
1402 } |
1400 } |
1403 } |
|
1404 fileRightsEngine->ConfirmDrmFileRightsL( attachments ); |
1401 fileRightsEngine->ConfirmDrmFileRightsL( attachments ); |
1405 if ( attachments->Count() <= 0 ) |
1402 if ( attachments->Count() <= 0 ) |
1406 { |
1403 { |
1407 fileRightsEngine->ShowDrmAndMmsInfoL(); |
1404 fileRightsEngine->ShowDrmAndMmsInfoL(); |
1408 } |
1405 } |