diff -r 09b1ac925e3f -r 03674e5abf46 securitydialogs/SecUi/Src/SecUiWait.cpp --- a/securitydialogs/SecUi/Src/SecUiWait.cpp Tue Aug 31 16:04:40 2010 +0300 +++ b/securitydialogs/SecUi/Src/SecUiWait.cpp Wed Sep 01 12:19:59 2010 +0100 @@ -77,8 +77,10 @@ // TInt CWait::WaitForRequestL() { + CWaitAbsorbingControl* absorbing = CWaitAbsorbingControl::NewLC(); SetActive(); iWait.Start(); + CleanupStack::PopAndDestroy(absorbing); return iStatus.Int(); } // @@ -126,33 +128,6 @@ return iRequestType; } // -// class CAutolockQuery -// -CAutolockQuery::CAutolockQuery() - { - } - -CAutolockQuery::~CAutolockQuery() - { - - } - -CAutolockQuery* CAutolockQuery::NewLC() - { - return NULL; - } - -void CAutolockQuery::ConstructL() - { - - } - -TKeyResponse CAutolockQuery::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/,TEventCode /*aType*/) - { - return EKeyWasConsumed; - } -/***********/ -// // class CWaitAbsorbingControl // CWaitAbsorbingControl::CWaitAbsorbingControl() @@ -161,22 +136,32 @@ CWaitAbsorbingControl::~CWaitAbsorbingControl() { - + if (iCoeEnv && iAppUi) + iAppUi->RemoveFromStack(this); } CWaitAbsorbingControl* CWaitAbsorbingControl::NewLC() { - return NULL; + CWaitAbsorbingControl* self= new(ELeave) CWaitAbsorbingControl(); + CleanupStack::PushL(self); + self->ConstructL(); + return self; } void CWaitAbsorbingControl::ConstructL() { - + CreateWindowL(); + SetExtent(TPoint(0,0), TSize(0,0)); + ActivateL(); + SetPointerCapture(ETrue); + ClaimPointerGrab(ETrue); + iAppUi=iEikonEnv->EikAppUi(); + iAppUi->AddToStackL(this, ECoeStackPriorityEnvironmentFilter); } TKeyResponse CWaitAbsorbingControl::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/,TEventCode /*aType*/) { - return EKeyWasConsumed; + return EKeyWasConsumed; } // End of file