appinstaller/AppinstUi/Plugin/CommonUI/Inc/CUIProgressDialog.h
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 /*
       
     2 * Copyright (c) 2002-2008 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 CUIProgressDialog 
       
    15 *                class.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CUIPROGRESSDIALOG_H
       
    21 #define CUIPROGRESSDIALOG_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <AknProgressDialog.h>
       
    25 
       
    26 namespace SwiUI
       
    27 {
       
    28 namespace CommonUI
       
    29 {
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class MCUIWaitDialogCallback;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 * Progress dialog for installer.
       
    38 * @lib SWInstCommonUI.lib
       
    39 * @since 3.0
       
    40 */
       
    41 NONSHARABLE_CLASS(CCUIProgressDialog) : public CAknProgressDialog
       
    42     {
       
    43 
       
    44     public: // Constructors and destructor
       
    45 
       
    46         /**
       
    47         * Constructor, parameter aAppUi is used in function OkToExitL()
       
    48         */
       
    49         CCUIProgressDialog( CEikDialog** aSelfPtr, TBool aVisibilityDelayOff );
       
    50 
       
    51         virtual ~CCUIProgressDialog();
       
    52 
       
    53     public:
       
    54         
       
    55         /**
       
    56         * From CEikDialog, respond to softkey inputs.
       
    57         * @para aButtonId, type of pressed Button or Softkey
       
    58         * @return TBool, ETrue if exit the dialog, otherwise EFalse.
       
    59         */
       
    60         TBool OkToExitL( TInt aButtonId );
       
    61 
       
    62     public:  // New functions
       
    63         void SetCallback( MCUIWaitDialogCallback* aCallback );        
       
    64 
       
    65     protected:  // from CAknNoteDialog
       
    66         void PreLayoutDynInitL();
       
    67 
       
    68     private: //data
       
    69 
       
    70         MCUIWaitDialogCallback* iCallback;        
       
    71     };
       
    72 }
       
    73 }
       
    74 
       
    75 #endif // CUIPROGRESSDIALOG_H
       
    76 
       
    77 // End of file