usbuis/imageprintui/inc/notetimer.h
changeset 93 2dc695882abd
parent 89 3592750162a5
equal deleted inserted replaced
89:3592750162a5 93:2dc695882abd
     1 /*
       
     2 * Copyright (c) 2006, 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 "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:  Header file for note timer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_NOTETIMER_H
       
    21 #define C_NOTETIMER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 class CImagePrintUiAppUi;
       
    26 
       
    27 /**
       
    28 * Timer for showing notes in right time
       
    29 */
       
    30 class CNoteTimer : public CTimer
       
    31     {
       
    32 public:
       
    33 
       
    34     /**
       
    35     * Factory method NewL
       
    36     * @param aAppUi the pointer to the appui class
       
    37     * @return instance of notetimer        
       
    38     */
       
    39     static CNoteTimer* NewL( CImagePrintUiAppUi* aAppUi);
       
    40     
       
    41     /**
       
    42     * Factory method NewLC
       
    43     * @param aAppUi the pointer to the appui class
       
    44     * @return instance of notetimer        
       
    45     */
       
    46     static CNoteTimer* NewLC( CImagePrintUiAppUi* aAppUi);
       
    47     
       
    48    /**
       
    49     * Destructor.
       
    50     */
       
    51     ~CNoteTimer();
       
    52 
       
    53    
       
    54 private:
       
    55     
       
    56    /**
       
    57     *   @see CActive
       
    58     */
       
    59     virtual void RunL();
       
    60     
       
    61    /**
       
    62     *   @see CActive
       
    63     */
       
    64     TInt RunError(TInt aError);
       
    65 
       
    66    /**
       
    67     * C++ default constructor
       
    68     */
       
    69     CNoteTimer();
       
    70     
       
    71    /**
       
    72     *   Second phase constructor. Operations which might leave should 
       
    73     *   be called here
       
    74     * @param aAppUi the pointer to the appui class
       
    75     */  
       
    76     void ConstructL(CImagePrintUiAppUi* aAppUi);
       
    77 
       
    78 private:
       
    79 
       
    80     CImagePrintUiAppUi* iAppUi;
       
    81     };
       
    82     
       
    83 #endif // C_NOTETIMER_H