javauis/mmapi_akn/baseline/src.nga/cmmacameraplayer.cpp
branchRCL_3
changeset 77 7cee158cb8cd
parent 60 6c158198356e
child 83 26b2b12093af
equal deleted inserted replaced
71:d5e927d5853b 77:7cee158cb8cd
   579         User::Leave(KErrNotReady);
   579         User::Leave(KErrNotReady);
   580     }
   580     }
   581     // save status which will be notified
   581     // save status which will be notified
   582     iSnapshotStatus = aStatus;
   582     iSnapshotStatus = aStatus;
   583 
   583 
   584     // changing status to pending
       
   585     *iSnapshotStatus = KRequestPending;
       
   586 
       
   587     // Source size not set in the beginning
   584     // Source size not set in the beginning
   588     TSize sourceSize;
   585     TSize sourceSize;
   589 
   586 
   590     // Use default if size is not specified.
   587     // Use default if size is not specified.
   591     TInt sourceSizeIndex;
   588     TInt sourceSizeIndex;
   687     iCamera->PrepareImageCaptureL(format,
   684     iCamera->PrepareImageCaptureL(format,
   688                                   sourceSizeIndex);
   685                                   sourceSizeIndex);
   689 
   686 
   690     // play sound when capturing image
   687     // play sound when capturing image
   691     CMMACameraSound::PlayImageCaptureSoundL();
   688     CMMACameraSound::PlayImageCaptureSoundL();
   692 
   689     
       
   690     // changing status to pending
       
   691     *iSnapshotStatus = KRequestPending;
   693     // start capture, ImageBufferReady will be called when ready
   692     // start capture, ImageBufferReady will be called when ready
   694     iWindow->SetStarted(EFalse);
   693     iWindow->SetStarted(EFalse);
   695 
   694 
   696     iCamera->CaptureImage();
   695     iCamera->CaptureImage();
   697 
   696