equal
deleted
inserted
replaced
77 //__ASSERT_DEBUG( !iOperation, User::Invariant() ); |
77 //__ASSERT_DEBUG( !iOperation, User::Invariant() ); |
78 iObserver = aObserver; |
78 iObserver = aObserver; |
79 SetActive(); |
79 SetActive(); |
80 } |
80 } |
81 |
81 |
82 void CMCSPluginWatcher::StopAndWatch( CMenuOperation* aOperation, |
|
83 CActiveSchedulerWait* aWaitScheduler ) |
|
84 { |
|
85 __ASSERT_DEBUG( KRequestPending == iStatus.Int(), User::Invariant() ); |
|
86 iWaitScheduler = aWaitScheduler; |
|
87 iOperation = aOperation; |
|
88 SetActive(); |
|
89 } |
|
90 |
|
91 // --------------------------------------------------------------------------- |
82 // --------------------------------------------------------------------------- |
92 // Inherited from CActive class |
83 // Inherited from CActive class |
93 // --------------------------------------------------------------------------- |
84 // --------------------------------------------------------------------------- |
94 void CMCSPluginWatcher::RunL() |
85 void CMCSPluginWatcher::RunL() |
95 { |
86 { |
98 |
89 |
99 if( iType == ENotify ) |
90 if( iType == ENotify ) |
100 { |
91 { |
101 iObserver->HandleNotifyL(); |
92 iObserver->HandleNotifyL(); |
102 } |
93 } |
103 if ( iWaitScheduler && iWaitScheduler->IsStarted() ) |
94 |
104 { |
|
105 Cancel(); |
|
106 iWaitScheduler->AsyncStop(); |
|
107 } |
|
108 //CActiveScheduler::Stop(); |
95 //CActiveScheduler::Stop(); |
109 } |
96 } |
110 |
97 |
111 // --------------------------------------------------------------------------- |
98 // --------------------------------------------------------------------------- |
112 // Inherited from CActive class |
99 // Inherited from CActive class |