equal
deleted
inserted
replaced
144 // ----------------------------------------------------------------------------- |
144 // ----------------------------------------------------------------------------- |
145 // |
145 // |
146 void CPEAccessoryModeMonitor::RunL() |
146 void CPEAccessoryModeMonitor::RunL() |
147 { |
147 { |
148 TEFLOGSTRING2(KTAINT, "CPEAccessoryModeMonitor::RunL %d", iStatus.Int() ); |
148 TEFLOGSTRING2(KTAINT, "CPEAccessoryModeMonitor::RunL %d", iStatus.Int() ); |
149 |
149 |
150 switch ( iStatus.Int() ) |
150 switch ( iStatus.Int() ) |
151 { |
151 { |
152 case KErrNone: |
152 case KErrNone: |
153 { |
153 { |
154 iAccessoryMode = iPolAccessoryMode.iAccessoryMode; |
154 iAccessoryMode = iPolAccessoryMode.iAccessoryMode; |
155 iAudioOutputStatus = iPolAccessoryMode.iAudioOutputStatus; |
155 iAudioOutputStatus = iPolAccessoryMode.iAudioOutputStatus; |
159 break; |
159 break; |
160 case KErrCancel: |
160 case KErrCancel: |
161 case KErrNotSupported: |
161 case KErrNotSupported: |
162 break; |
162 break; |
163 default: |
163 default: |
164 // Issue request again if needed. |
164 // Issue request again if needed. |
165 Start(); |
165 Start(); |
166 break; |
166 break; |
167 } |
167 } |
168 } |
168 } |
169 |
169 |
176 // |
176 // |
177 void CPEAccessoryModeMonitor::Start() |
177 void CPEAccessoryModeMonitor::Start() |
178 { |
178 { |
179 TEFLOGSTRING(KTAINT, "CPEAccessoryModeMonitor::Start" ); |
179 TEFLOGSTRING(KTAINT, "CPEAccessoryModeMonitor::Start" ); |
180 if ( !IsActive() ) |
180 if ( !IsActive() ) |
181 { |
181 { |
182 iMode.NotifyAccessoryModeChanged( iStatus, iPolAccessoryMode ); |
182 iMode.NotifyAccessoryModeChanged( iStatus, iPolAccessoryMode ); |
183 SetActive(); |
183 SetActive(); |
184 } |
184 } |
185 } |
185 } |
186 |
186 |
187 // End of File |
187 // End of File |