startupservices/startupanimation/tsrc/TSanimengine/inc/testwaiter.h
changeset 77 b01c07dfcf84
equal deleted inserted replaced
74:1505405bc645 77:b01c07dfcf84
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Declaration of CTestWaiter class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TESTWAITER_H
       
    20 #define TESTWAITER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 /**
       
    25 *  Stops active scheduler in RunL.
       
    26 *
       
    27 *  @lib None
       
    28 *  @since S60 3.2
       
    29 */
       
    30 class CTestWaiter  : public CActive
       
    31     {
       
    32 
       
    33 public:
       
    34 
       
    35     /**
       
    36     * Constructs a CTestWaiter object.
       
    37     *
       
    38     * @return The new object
       
    39     * @since S60 3.2
       
    40     */
       
    41     static CTestWaiter* NewL();
       
    42 
       
    43     /**
       
    44     * Destructor.
       
    45     *
       
    46     * @since S60 3.2
       
    47     */
       
    48     virtual ~CTestWaiter();
       
    49 
       
    50     /**
       
    51     * Set active.
       
    52     *
       
    53     * @since S60 3.2
       
    54     */
       
    55     void Activate();
       
    56 
       
    57 protected:
       
    58 
       
    59     /**
       
    60     * From CActive.
       
    61     * Implements cancellation of an outstanding request.
       
    62     *
       
    63     * @since S60 3.2
       
    64     */
       
    65     virtual void DoCancel();
       
    66 
       
    67     /**
       
    68     * From CActive.
       
    69     * Handles an active object's request completion event.
       
    70     * Never leaves.
       
    71     *
       
    72     * @since S60 3.2
       
    73     */
       
    74     virtual void RunL();
       
    75 
       
    76 private:
       
    77 
       
    78     /**
       
    79     * First phase constructor.
       
    80     *
       
    81     */
       
    82     CTestWaiter();
       
    83 
       
    84 private: // data
       
    85 
       
    86     };
       
    87 
       
    88 #endif // TESTWAITER_H