132 |
132 |
133 switch ( aFeedback ) |
133 switch ( aFeedback ) |
134 { |
134 { |
135 case ETouchFeedbackBasic: // flow through |
135 case ETouchFeedbackBasic: // flow through |
136 case ETouchFeedbackBasicButton: // flow through |
136 case ETouchFeedbackBasicButton: // flow through |
137 case ETouchFeedbackBasicItem: // flow through |
137 case ETouchFeedbackList: // flow through |
138 case ETouchFeedbackBounceEffect: // flow through |
138 case ETouchFeedbackBoundaryList: // flow through |
139 case ETouchFeedbackBasicSlider: // flow through |
139 case ETouchFeedbackSlider: // flow through |
140 case ETouchFeedbackEditor: // flow through |
140 case ETouchFeedbackEdit: // flow through |
141 case ETouchFeedbackLineSelection: // flow through |
141 case ETouchFeedbackLineSelection: // flow through |
142 case ETouchFeedbackBlankSelection: // flow through |
142 case ETouchFeedbackBlankSelection: // flow through |
143 case ETouchFeedbackTextSelection: // flow through |
143 case ETouchFeedbackTextSelection: // flow through |
144 case ETouchFeedbackEmptyLineSelection: // flow through |
144 case ETouchFeedbackEmptyLineSelection: // flow through |
|
145 case ETouchFeedbackTab: // flow through |
145 case ETouchFeedbackPopUp: // flow through |
146 case ETouchFeedbackPopUp: // flow through |
146 case ETouchFeedbackPopupOpen: // flow through |
147 case ETouchFeedbackIncreasingPopUp: // flow through |
147 case ETouchFeedbackPopupClose: // flow through |
148 case ETouchFeedbackDecreasingPopUp: // flow through |
148 case ETouchFeedbackItemScroll: // flow through |
149 case ETouchFeedbackFlick: // flow through |
149 case ETouchFeedbackCheckbox: // flow through |
150 case ETouchFeedbackCheckbox: // flow through |
150 case ETouchFeedbackMultitouchActivate: |
151 case ETouchFeedbackCharacterInputButton: |
151 case ETouchFeedbackBasicKeypad: |
152 case ETouchFeedbackOptionsMenuOpened: |
152 case ETouchFeedbackFlick: |
153 case ETouchFeedbackOptionsMenuClosed: |
153 case ETouchFeedbackItemDrop: |
154 case ETouchFeedbackSubMenuOpened: |
154 case ETouchFeedbackItemMoveOver: |
155 case ETouchFeedbackSubMenuClosed: |
155 case ETouchFeedbackItemPick: |
156 case ETouchFeedbackLongTap: |
156 case ETouchFeedbackMultipleCheckbox: |
157 case ETouchFeedbackMultiTouchRecognized: |
157 case ETouchFeedbackRotateStep: |
|
158 case ETouchFeedbackStopFlick: |
|
159 case ETouchFeedbackLongPress: |
|
160 volumeIndex = 0; |
158 volumeIndex = 0; |
161 break; |
159 break; |
162 case ETouchFeedbackSensitive: // flow through |
160 case ETouchFeedbackSensitive: // flow through |
163 case ETouchFeedbackSensitiveButton: // flow through |
161 case ETouchFeedbackSensitiveButton: // flow through |
164 case ETouchFeedbackSensitiveItem: |
162 case ETouchFeedbackSensitiveList: |
165 case ETouchFeedbackSensitiveKeypad: |
163 case ETouchFeedbackSensitiveInput: |
166 case ETouchFeedbackSensitiveSlider: |
|
167 volumeIndex = 1; |
164 volumeIndex = 1; |
168 break; |
165 break; |
169 default: |
166 default: |
170 // should not be there at all |
167 // should not be there at all |
171 TRACE2( "CTactileAudioPlayer::PlayFeedback - %d is not a feedback type - returning", aFeedback ); |
168 TRACE2( "CTactileAudioPlayer::PlayFeedback - %d is not a feedback type - returning", aFeedback ); |
345 |
342 |
346 // Read file names |
343 // Read file names |
347 iRepository.Get( KTactileAudioWavFileBasicLevel2, basicFileName ); |
344 iRepository.Get( KTactileAudioWavFileBasicLevel2, basicFileName ); |
348 |
345 |
349 iRepository.Get( KTactileAudioWavFileSensitiveLevel2, sensitiveFileName ); |
346 iRepository.Get( KTactileAudioWavFileSensitiveLevel2, sensitiveFileName ); |
350 iVolumeLevels.AppendL( basicVolumeLevel ); |
347 |
351 iVolumeLevels.AppendL( sensitiveVolumeLevel ); |
348 iVolumeLevels.Append( basicVolumeLevel ); |
352 |
349 iVolumeLevels.Append( sensitiveVolumeLevel ); |
|
350 |
353 TRACE("CTactileAudioPlayer::ReadSettingsL() - End"); |
351 TRACE("CTactileAudioPlayer::ReadSettingsL() - End"); |
354 } |
352 } |
355 |
353 |
356 |
354 |
357 // --------------------------------------------------------------------------- |
355 // --------------------------------------------------------------------------- |