startupservices/startupanimation/tsrc/TSanimmmf/inc/testwaiter.h
changeset 77 b01c07dfcf84
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/startupservices/startupanimation/tsrc/TSanimmmf/inc/testwaiter.h	Thu Oct 07 06:25:45 2010 +0300
@@ -0,0 +1,88 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Declaration of CTestWaiter class
+*
+*/
+
+
+#ifndef TESTWAITER_H
+#define TESTWAITER_H
+
+#include <e32base.h>
+
+/**
+*  Stops active scheduler in RunL.
+*
+*  @lib None
+*  @since S60 3.2
+*/
+class CTestWaiter  : public CActive
+    {
+
+public:
+
+    /**
+    * Constructs a CTestWaiter object.
+    *
+    * @return The new object
+    * @since S60 3.2
+    */
+    static CTestWaiter* NewL();
+
+    /**
+    * Destructor.
+    *
+    * @since S60 3.2
+    */
+    virtual ~CTestWaiter();
+
+    /**
+    * Set active.
+    *
+    * @since S60 3.2
+    */
+    void Activate();
+
+protected:
+
+    /**
+    * From CActive.
+    * Implements cancellation of an outstanding request.
+    *
+    * @since S60 3.2
+    */
+    virtual void DoCancel();
+
+    /**
+    * From CActive.
+    * Handles an active object's request completion event.
+    * Never leaves.
+    *
+    * @since S60 3.2
+    */
+    virtual void RunL();
+
+private:
+
+    /**
+    * First phase constructor.
+    *
+    */
+    CTestWaiter();
+
+private: // data
+
+    };
+
+#endif // TESTWAITER_H