equal
deleted
inserted
replaced
55 return self; |
55 return self; |
56 } |
56 } |
57 |
57 |
58 // --------------------------------------------------------------------------- |
58 // --------------------------------------------------------------------------- |
59 |
59 |
60 CCreatorEngine::CCreatorEngine() : |
60 CCreatorEngine::CCreatorEngine() |
61 CActive(0), |
61 : |
62 iAsyncRunScript( CActive::EPriorityStandard ) |
62 CActive(0) |
63 { |
63 {} |
64 TCallBack asyncRunScriptCB( AsyncRunScriptCB, this ); |
|
65 iAsyncRunScript.Set( asyncRunScriptCB ); |
|
66 } |
|
67 |
64 |
68 // --------------------------------------------------------------------------- |
65 // --------------------------------------------------------------------------- |
69 |
66 |
70 void CCreatorEngine::ConstructL(CCreatorAppUi* aAppUi) |
67 void CCreatorEngine::ConstructL(CCreatorAppUi* aAppUi) |
71 { |
68 { |
695 void CCreatorEngine::DoCancel() |
692 void CCreatorEngine::DoCancel() |
696 { |
693 { |
697 LOGSTRING("Creator: CCreatorEngine::DoCancel"); |
694 LOGSTRING("Creator: CCreatorEngine::DoCancel"); |
698 |
695 |
699 iTimer.Cancel(); |
696 iTimer.Cancel(); |
700 } |
|
701 |
|
702 // ---------------------------------------------------------------------------- |
|
703 // CCreatorEngine::AsyncRunScript |
|
704 // CallBack for an asynchronous call of RunScriptL |
|
705 // ---------------------------------------------------------------------------- |
|
706 // |
|
707 TInt CCreatorEngine::AsyncRunScriptCB( TAny* aObject ) |
|
708 { |
|
709 TRAPD( err, static_cast<CCreatorEngine*>( aObject )->RunScriptL() ); |
|
710 return err; |
|
711 } |
|
712 |
|
713 // --------------------------------------------------------------------------- |
|
714 |
|
715 void CCreatorEngine::AsyncRunScript() |
|
716 { |
|
717 LOGSTRING("Creator: CCreatorEngine::AsyncRunScript"); |
|
718 iAsyncRunScript.CallBack(); |
|
719 } |
697 } |
720 |
698 |
721 // --------------------------------------------------------------------------- |
699 // --------------------------------------------------------------------------- |
722 |
700 |
723 void CCreatorEngine::RunScriptL() |
701 void CCreatorEngine::RunScriptL() |