|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : CCEWaitNote.h 00004 * Part of : Content Listing Framework Sample Application 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 00017 #ifndef __CCEWAITNOTE_H__ 00018 #define __CCEWAITNOTE_H__ 00019 00020 // INCLUDES 00021 #include <e32base.h> 00022 #include <aknwaitdialog.h> 00023 #include <aknwaitnotewrapper.h> 00024 00025 #include "CLFExample.hrh" 00026 00027 // CLASS DECLARATION 00028 00029 /** 00030 * Wait note for CLF Example Application. 00031 * Shows a wait note to indicate the refresh of the List Model. 00032 * The wait note is closed, when refreshing operation has completed. 00033 * This wait note is used in classes CCEGroupView and CCEMusicView when 00034 * calling MCLFItemListModel::RefreshL(). 00035 */ 00036 class CCEWaitNote 00037 : public CBase, 00038 public MProgressDialogCallback 00039 { 00040 public: // Constructors and destructor 00041 00042 /** 00043 * Creates and returns a new instance of this class. 00044 * @return Pointer to the CCEWaitNote object 00045 */ 00046 static CCEWaitNote* NewL(); 00047 00048 /** 00049 * Destructor. 00050 */ 00051 virtual ~CCEWaitNote(); 00052 00053 private: // Constructors 00054 /** 00055 * C++ default constructor. 00056 */ 00057 CCEWaitNote(); 00058 00059 protected: // Functions from base classes 00060 00061 /** 00062 * From MProgressDialogCallback. Gets called when the 00063 * dialog is dismissed/closed. 00064 * @param aButtonId Softkey Button Id 00065 */ 00066 void DialogDismissedL( const TInt aButtonId ); 00067 00068 public: // New functions 00069 00070 /** 00071 * Close the wait note dialog. 00072 */ 00073 void CloseWaitNoteL(); 00074 00075 /** 00076 * Open the wait note dialog. 00077 * @param aResourceId Wait note resource id 00078 */ 00079 void OpenWaitNoteL( const TInt aResourceId ); 00080 00081 private: // Data 00082 00083 // Wait note dialog for indicating refresh operation 00084 // of the List Model (owned) 00085 CAknWaitDialog* iWaitDialog; 00086 00087 }; 00088 00089 #endif // __CCEWAITNOTE_H__ 00090 00091 // End of File
|
© Nokia 2009 |