profilesservices/FileList/Src/CFLDWaitNote.h
branchRCL_3
changeset 24 8ee96d21d9bf
parent 23 8bda91a87a00
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
     1 /*
       
     2 * Copyright (c) 2005 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: Implements wait note when CLF is refreshed.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CFLDWAITNOTE_H__
       
    21 #define __CFLDWAITNOTE_H__
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <AknWaitDialog.h>
       
    26 #include <AknWaitNoteWrapper.h>
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *	Implements wait note when CLF is refreshed
       
    32 */
       
    33 NONSHARABLE_CLASS( CFLDWaitNote )
       
    34     : public CBase,
       
    35       public MProgressDialogCallback
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38 
       
    39 		/**
       
    40 		 * Creates and returns a new instance of this class.
       
    41 	     * @param aResourceId Wait note resource id
       
    42 		 * @return Pointer to the CFLDWaitNote object
       
    43 		 */
       
    44 	    static CFLDWaitNote* NewL( const TInt aWaitNoteResourceId );
       
    45 
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         virtual ~CFLDWaitNote();
       
    50 
       
    51     private:    // Constructors
       
    52         /**
       
    53         * C++ default constructor.
       
    54         */
       
    55         CFLDWaitNote( const TInt aWaitNoteResourceId );
       
    56 
       
    57     protected:  // Methods derived from MProgressDialogCallback
       
    58         
       
    59         void DialogDismissedL( const TInt aButtonId );
       
    60 
       
    61     public:     // New functions
       
    62 
       
    63         /**
       
    64         * Close the wait note dialog.
       
    65         */
       
    66         void CloseWaitNoteL();
       
    67 
       
    68         /**
       
    69         * Open the wait note dialog.
       
    70         */
       
    71         void OpenWaitNoteL();
       
    72 
       
    73         /**
       
    74         * Is wait note running.
       
    75         */
       
    76         TBool IsRunning();
       
    77 
       
    78     private:    // Data
       
    79 
       
    80         /// Own: Wait note dialog for indicating refresh operation
       
    81         /// of the List Model (owned)
       
    82 		CAknWaitDialog* iWaitDialog;
       
    83 		
       
    84 		/// Wait note resource
       
    85 		const TInt iWaitNoteResourceId;
       
    86 
       
    87     };
       
    88 
       
    89 #endif // __CFLDWAITNOTE_H__
       
    90 
       
    91 // End of File