equal
deleted
inserted
replaced
84 } |
84 } |
85 |
85 |
86 |
86 |
87 /* |
87 /* |
88 * Start Autofocus |
88 * Start Autofocus |
89 */ |
89 * \param soundEnabled False if the auto focus sound don't need to be played |
90 CxeError::Id CxeAutoFocusControlSymbian::start() |
90 * Default value for soundEnabled is true |
91 { |
91 */ |
92 CX_DEBUG( ("CxeAutoFocusControlSymbian::start() <> state: %d", state() ) ); |
92 CxeError::Id CxeAutoFocusControlSymbian::start(bool soundEnabled) |
93 |
93 { |
|
94 CX_DEBUG( ("CxeAutoFocusControlSymbian::start() <> state: %d, sound enabled: %d", |
|
95 state(), soundEnabled ) ); |
|
96 mSoundEnabled = soundEnabled; |
94 int err = KErrNone; |
97 int err = KErrNone; |
95 |
98 |
96 CX_ASSERT_ALWAYS(mAdvancedSettings); |
99 CX_ASSERT_ALWAYS(mAdvancedSettings); |
97 |
100 |
98 if ( state() != CxeAutoFocusControl::InProgress && state() != CxeAutoFocusControl::Canceling ) { |
101 if ( state() != CxeAutoFocusControl::InProgress && state() != CxeAutoFocusControl::Canceling ) { |
104 } else { // AF was started earlier, can't start until it completes |
107 } else { // AF was started earlier, can't start until it completes |
105 err = KErrInUse; |
108 err = KErrInUse; |
106 } |
109 } |
107 |
110 |
108 CX_DEBUG( ("CxeAutoFocusControlSymbian::start() <= err : %d", err ) ); |
111 CX_DEBUG( ("CxeAutoFocusControlSymbian::start() <= err : %d", err ) ); |
109 |
|
110 return CxeErrorHandlingSymbian::map(err); |
112 return CxeErrorHandlingSymbian::map(err); |
111 } |
113 } |
112 |
114 |
113 |
115 |
114 |
116 |
444 } // end switch |
446 } // end switch |
445 |
447 |
446 CX_DEBUG_EXIT_FUNCTION(); |
448 CX_DEBUG_EXIT_FUNCTION(); |
447 } |
449 } |
448 |
450 |
|
451 /*! |
|
452 * Public method for checking if auto focus sound is enabled |
|
453 * \return true if enabled |
|
454 */ |
|
455 bool CxeAutoFocusControlSymbian::isSoundEnabled() const |
|
456 { |
|
457 return mSoundEnabled; |
|
458 } |
|
459 |
449 // end of file |
460 // end of file |