securitydialogs/SecUi/Inc/SecUiWait.h
changeset 0 164170e6151a
child 17 8957df7b0072
child 49 09b1ac925e3f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/securitydialogs/SecUi/Inc/SecUiWait.h	Tue Jan 26 15:20:08 2010 +0200
@@ -0,0 +1,99 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*    
+*
+*/
+
+
+#ifndef     __SECUIWAIT_H
+#define     __SECUIWAIT_H
+
+//  INCLUDES
+
+#include    <e32base.h>
+#include    <eikappui.h>
+#include    <coecntrl.h>
+//  CLASS DEFINITIONS 
+class  CWait : public CActive
+    {
+     public:
+       /**
+        * Creates instance of the CWait class.
+        *
+        * @return Returns the instance just created.
+        */
+        static CWait* NewL();
+        /**
+        * Destructor.
+        */
+        ~CWait();
+    public:
+        /**
+        * Starts waiting for aReqStatus. 
+        */
+        TInt WaitForRequestL();
+    public:
+        /**
+        * Sets active request type. 
+        */
+        void SetRequestType(TInt aRequestType);
+    public:
+        /**
+        * Gets active request type. 
+        */
+        TInt GetRequestType();
+    private:
+        /**
+        * C++ default constructor.
+        */
+        CWait();
+        /**
+        * Symbian OS constructor.
+        */
+        void ConstructL();
+    private: // from CActive
+        /** @see CActive::RunL() */
+        void RunL();
+        /** @see CActive::DoCancel() */
+        void DoCancel();
+        RTimer iTimer;
+        CActiveSchedulerWait iWait;
+        // Used if there is a need to cancel an active request;
+        // namely in situations where destructor is called when Wait
+        // is active.
+        TInt iRequestType;
+    };
+
+
+// CWaitAbsorbingControl, absorbs all the key presses.
+class CWaitAbsorbingControl : public CCoeControl
+    {
+    public:
+        static CWaitAbsorbingControl* NewLC();
+        virtual ~CWaitAbsorbingControl();
+    private:
+        virtual TKeyResponse OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/,TEventCode /*aType*/);
+    private:
+        CWaitAbsorbingControl();
+        void ConstructL();
+    private: // Data
+         CEikAppUi*  iAppUi;
+
+
+    };
+
+#endif
+
+// End of file