00001 /* 00002 * ============================================================================ 00003 * Name : AknProgressTimer.h 00004 * Part of : Avkon 00005 * 00006 * Description: 00007 * Version: 00008 * 00009 * Copyright © 2002 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. All rights are reserved. Copying, 00013 * including reproducing, storing, adapting or translating, any 00014 * or all of this material requires the prior written consent of 00015 * Nokia Corporation. This material also contains confidential 00016 * information which may not be disclosed to others without the 00017 * prior written consent of Nokia Corporation. 00018 * ============================================================================ 00019 */ 00020 // AknProgressTimer.h: interface for the CAknProgressTimer class. 00021 // 00023 00024 #ifndef __AKNPROGRESSTIMER__ 00025 #define __AKNPROGRESSTIMER__ 00026 00027 #include <e32base.h> 00028 00029 struct TTimerModel 00030 { 00031 TInt iFinalValue; 00032 TInt iHundreths; 00033 TInt iIncrement; 00034 TBool iRunning; 00035 }; 00036 class CAknNoteControl; 00037 00038 NONSHARABLE_CLASS(CAknProgressTimer) : public CTimer 00039 { 00040 public: 00041 CAknProgressTimer(); 00042 virtual ~CAknProgressTimer(); 00043 void ConstructL(TTimerModel* aModel,CAknNoteControl* aContainer,TCallBack aCallBack); 00044 void AdjustRunningState(); 00045 private: 00046 void Queue(); 00047 void RunL(); 00048 private: 00049 TTimerModel* iModel; 00050 CAknNoteControl* iContainer; 00051 TCallBack iCallBack; 00052 }; 00053 00054 #endif