iaupdate/IAD/ui/inc/iaupdateuitimer.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2009 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:   This file contains the header file of the CIAUpdateUITimer class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef IA_UPDATEUI_TIMER_H
       
    19 #define IA_UPDATEUI_TIMER_H
       
    20 
       
    21 
       
    22 #include "e32base.h"
       
    23 
       
    24 class MIAUpdateUITimerObserver;
       
    25 
       
    26 /**
       
    27  * CIAUpdateUITimer
       
    28  */
       
    29 class CIAUpdateUITimer : public CTimer
       
    30     {
       
    31 
       
    32 public:
       
    33      
       
    34     enum TTimerType
       
    35         {
       
    36         EBackgroundDelay,       
       
    37         EForegroundDelay ,
       
    38         EProcessStartDelay
       
    39         };
       
    40     
       
    41 public:   
       
    42     /**
       
    43      * Destructor
       
    44      */
       
    45     virtual ~CIAUpdateUITimer();
       
    46 
       
    47 
       
    48     /**
       
    49      * @param aObserver Observer that is informed about timer
       
    50      * completion.
       
    51      * @return CIAUpdateUITimer* Created object.
       
    52      */
       
    53     static CIAUpdateUITimer* NewL( 
       
    54         MIAUpdateUITimerObserver& aObserver,
       
    55         TTimerType aTimerType );
       
    56 
       
    57     /**
       
    58      * @param aObserver Observer that is informed about timer
       
    59      * completion.
       
    60      * @return CIAUpdateUITimer* Created object.
       
    61      */
       
    62     static CIAUpdateUITimer* NewLC( 
       
    63         MIAUpdateUITimerObserver& aObserver,
       
    64         TTimerType aTimerType );
       
    65 
       
    66 
       
    67 protected: // CTimer
       
    68 
       
    69     /**
       
    70      * @see CTimer::RunL
       
    71      */    
       
    72     virtual void RunL();
       
    73 
       
    74 
       
    75 private:
       
    76 
       
    77     // Prevent these if not implemented
       
    78     CIAUpdateUITimer( const CIAUpdateUITimer& aObject );
       
    79     CIAUpdateUITimer& operator =( const CIAUpdateUITimer& aObject );
       
    80 
       
    81     // Constructor functions
       
    82     CIAUpdateUITimer( MIAUpdateUITimerObserver& aObserver,
       
    83                       TTimerType aTimerType );
       
    84 
       
    85 
       
    86 private: // data
       
    87     
       
    88     // Observer that is informed when timer completes.
       
    89     MIAUpdateUITimerObserver& iObserver;
       
    90     TTimerType iTimerType;
       
    91     };
       
    92 
       
    93 #endif // IA_UPDATE_TIMER_H
       
    94