equal
deleted
inserted
replaced
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include <sensrvchannelfinder.h> |
20 #include <sensrvchannelfinder.h> |
21 #include <sensrvorientationsensor.h> |
21 #include <sensrvorientationsensor.h> |
22 #include <jdebug.h> |
22 #include <jdebug.h> |
23 #include <fbs.h> |
23 #include <fbs.h> |
24 #include <e32svr.h> |
|
25 #include "cmmacameraplayer.h" |
24 #include "cmmacameraplayer.h" |
26 #include "tmmaparametervalidator.h" |
25 #include "tmmaparametervalidator.h" |
27 #include "mmmadisplay.h" |
26 #include "mmmadisplay.h" |
28 #include "cmmacamerasound.h" |
27 #include "cmmacamerasound.h" |
29 |
28 |
578 { |
577 { |
579 User::Leave(KErrNotReady); |
578 User::Leave(KErrNotReady); |
580 } |
579 } |
581 // save status which will be notified |
580 // save status which will be notified |
582 iSnapshotStatus = aStatus; |
581 iSnapshotStatus = aStatus; |
|
582 |
|
583 // changing status to pending |
|
584 *iSnapshotStatus = KRequestPending; |
583 |
585 |
584 // Source size not set in the beginning |
586 // Source size not set in the beginning |
585 TSize sourceSize; |
587 TSize sourceSize; |
586 |
588 |
587 // Use default if size is not specified. |
589 // Use default if size is not specified. |
684 iCamera->PrepareImageCaptureL(format, |
686 iCamera->PrepareImageCaptureL(format, |
685 sourceSizeIndex); |
687 sourceSizeIndex); |
686 |
688 |
687 // play sound when capturing image |
689 // play sound when capturing image |
688 CMMACameraSound::PlayImageCaptureSoundL(); |
690 CMMACameraSound::PlayImageCaptureSoundL(); |
689 |
691 |
690 // changing status to pending |
|
691 *iSnapshotStatus = KRequestPending; |
|
692 // start capture, ImageBufferReady will be called when ready |
692 // start capture, ImageBufferReady will be called when ready |
693 iWindow->SetStarted(EFalse); |
693 iWindow->SetStarted(EFalse); |
694 |
694 |
695 iCamera->CaptureImage(); |
695 iCamera->CaptureImage(); |
696 |
696 |