homescreensrv_plat/menu_sat_interface_api/tsrc/inc/waitactive.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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 "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Plugin Interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_WAITACTIVE_H
       
    20 #define C_WAITACTIVE_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 /**
       
    25  *  Helper wait active class
       
    26  */
       
    27  class CWaitActive : public CTimer
       
    28     {
       
    29     
       
    30 public:
       
    31 	
       
    32 	
       
    33 	static CWaitActive* NewL( );
       
    34 
       
    35 	~CWaitActive();
       
    36 	
       
    37 	void Wait(TTimeIntervalMicroSeconds32 anInterval);
       
    38     
       
    39 protected:
       
    40     
       
    41     /**
       
    42     * From CActive, RunL.
       
    43     * Handles the active object’s request completion event
       
    44     */
       
    45     void RunL();
       
    46     
       
    47      
       
    48 private:
       
    49    
       
    50     CWaitActive();
       
    51    
       
    52     void ConstructL();
       
    53     
       
    54 private:      
       
    55 
       
    56 	/*
       
    57 	* Own.
       
    58     */
       
    59 	CActiveSchedulerWait* iActiveScheduler;	
       
    60     };
       
    61     
       
    62 
       
    63 #endif // C_WAITACTIVE_H