|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : aknexpbartimer.h 00004 * Part of : ProgressBar 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 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 __AKNEXPBARTIMER_H__ 00018 #define __AKNEXPBARTIMER_H__ 00019 00020 00021 // INCLUDES 00022 #include <aknappui.h> 00023 00024 // CONSTANTS 00025 const TInt KIntervalBaseTime = 10000; 00026 00027 00028 // FORWARD DECLARATIONS 00029 class CAknExPbarContainer; 00030 struct TAknExPbarTimerModel; 00031 00032 00033 // CLASS DECLARATION 00034 /** 00035 * Timer class. 00036 */ 00037 class CAknExPbarTimer : public CTimer 00038 { 00039 00040 public: // Constructors and destructor 00041 00042 /** 00043 * CAknExPbarTimer. 00044 * C++ default constructor. 00045 */ 00046 CAknExPbarTimer(); 00047 00048 /** 00049 * NewL 00050 * Two-phased constructor. 00051 * Construct a CAknExPbarTimer. 00052 * Using two phase construction, and return a pointer to 00053 * the created object. 00054 * @param aModel pointer to TAknExPbarTimerModel. 00055 * @param aContainer pointer to CAknExPbarContainer 00056 * @return A pointer to the created instance of CAknExPbarTimer. 00057 */ 00058 static CAknExPbarTimer* NewL( TAknExPbarTimerModel* aModel, 00059 CAknExPbarContainer *aContainer ); 00060 00061 /** 00062 * NewLC 00063 * Two-phased constructor. 00064 * Construct a CAknExPbarTimer. 00065 * Using two phase construction, and return a pointer to 00066 * the created object. 00067 * @param aModel pointer to TAknExPbarTimerModel. 00068 * @param aContainer pointer to CAknExPbarContainer 00069 * @return A pointer to the created instance of CAknExPbarTimer. 00070 */ 00071 static CAknExPbarTimer* NewLC( TAknExPbarTimerModel* aModel, 00072 CAknExPbarContainer *aContainer ); 00073 00074 /** 00075 * ConstructL 00076 * 2nd phase constructor. 00077 * @param aModel pointer to TAknExPbarTimerModel. 00078 * @param aContainer pointer to CAknExPbarContainer 00079 */ 00080 void ConstructL( TAknExPbarTimerModel* aModel, 00081 CAknExPbarContainer* aContainer ); 00082 00083 00084 /** 00085 * ~CAknExPbarTimer 00086 * Virtual Destructor. 00087 */ 00088 virtual ~CAknExPbarTimer(); 00089 00090 00091 private: // from CActive 00092 00093 /** 00094 * RunL 00095 * Definition of what to do when timer event occurred. 00096 */ 00097 void RunL(); 00098 00099 00100 private: // New function 00101 00102 /** 00103 * Queue 00104 * Set timer event interval. 00105 */ 00106 void Queue(); 00107 00108 00109 private: // Data 00110 00111 /** 00112 * iModel 00113 * Pointer to Timer model 00114 * owned by CAknExPbarTimer object. 00115 */ 00116 TAknExPbarTimerModel* iModel; 00117 00118 /** 00119 * iContainer 00120 * Pointer to Container class 00121 * owned by CAknExPbarTimer object. 00122 */ 00123 CAknExPbarContainer* iContainer; 00124 }; 00125 00126 #endif // __AKNEXPBARTIMER_H__ 00127 00128 // End of File
|
© Nokia 2009 |