phoneapp/phoneuiview/inc/cphoneprogressnote.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Progress note handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHONEPROGRESSNOTE_H
       
    20 #define CPHONEPROGRESSNOTE_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include    <AknProgressDialog.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 
       
    27 class CPhoneProgressNote : public CAknProgressDialog
       
    28     {
       
    29     public:  // Constructors and destructor
       
    30 
       
    31         /**
       
    32         * Constructor.
       
    33         *
       
    34         * @param aFinalValue final value.
       
    35         * @param anIncrement increment.
       
    36         * @param anInterval interval after which note is updated.
       
    37         * @param aSelfPtr pointer to itself.
       
    38         * @param aCommandHandler command handler.
       
    39         */
       
    40         CPhoneProgressNote( 
       
    41                 TInt aFinalValue,
       
    42                 TInt anIncrement,
       
    43                 TInt anInterval,
       
    44                 CEikDialog** aSelfPtr,
       
    45                 MEikCommandObserver* aCommandObserver ); 
       
    46                 
       
    47         /**
       
    48         * Constructor.
       
    49         *
       
    50         * @param aSelfPtr pointer to itself.
       
    51         * @param aCommandHandler command handler.
       
    52         */
       
    53         CPhoneProgressNote(
       
    54             CEikDialog** aSelfPtr,
       
    55             MEikCommandObserver* aCommandObserver  ); 
       
    56         
       
    57         /**
       
    58         * Destructor.
       
    59         */
       
    60         virtual ~CPhoneProgressNote();  
       
    61         
       
    62     private:  // From CAknNoteDialog
       
    63 
       
    64         TKeyResponse OfferKeyEventL( 
       
    65             const TKeyEvent& aKeyEvent,
       
    66             TEventCode aType );
       
    67 
       
    68         TBool OkToExitL( TInt aCommand );
       
    69 
       
    70     private:  // Data
       
    71 
       
    72         MEikCommandObserver* iCommandObserver;
       
    73     };
       
    74 #endif      // CPhoneProgressNote_H
       
    75             
       
    76 // End of File