202 CleanupClosePushL( observers ); |
202 CleanupClosePushL( observers ); |
203 observers.AppendL( this ); |
203 observers.AppendL( this ); |
204 observers.AppendL( this ); |
204 observers.AppendL( this ); |
205 // add the array of observers |
205 // add the array of observers |
206 iRouter->AddObserversL( observers.Array() ); |
206 iRouter->AddObserversL( observers.Array() ); |
207 CleanupStack::PopAndDestroy( observers ); |
207 CleanupStack::PopAndDestroy( &observers ); |
208 // add us as publisher |
208 // add us as publisher |
209 RPointerArray<MShwEventPublisher> publisher; |
209 RPointerArray<MShwEventPublisher> publisher; |
210 CleanupClosePushL( publisher ); |
210 CleanupClosePushL( publisher ); |
211 publisher.AppendL( this ); |
211 publisher.AppendL( this ); |
212 iRouter->AddProducers( publisher.Array() ); |
212 iRouter->AddProducers( publisher.Array() ); |
213 CleanupStack::PopAndDestroy( publisher ); |
213 CleanupStack::PopAndDestroy( &publisher ); |
214 |
214 |
215 T_TestEvent testEvent; |
215 T_TestEvent testEvent; |
216 // set the event object pointer so that the notify can verify the event object |
216 // set the event object pointer so that the notify can verify the event object |
217 iEventToReceive = &testEvent; |
217 iEventToReceive = &testEvent; |
218 // send the event, |
218 // send the event, |