equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 // AknProgressTimer.cpp: implementation of the CAknProgressTimer class. |
18 // AknProgressTimer.cpp: implementation of the CAknProgressTimer class. |
19 // |
19 // |
20 ////////////////////////////////////////////////////////////////////// |
20 ////////////////////////////////////////////////////////////////////// |
21 |
21 #include <coemain.h> |
22 #include "aknnotecontrol.h" |
22 #include "aknnotecontrol.h" |
23 #include "aknprogresstimer.h" |
23 #include "aknprogresstimer.h" |
24 #include <coemain.h> |
24 #include "akntrace.h" |
|
25 |
25 |
26 |
26 ////////////////////////////////////////////////////////////////////// |
27 ////////////////////////////////////////////////////////////////////// |
27 // Construction/Destruction |
28 // Construction/Destruction |
28 ////////////////////////////////////////////////////////////////////// |
29 ////////////////////////////////////////////////////////////////////// |
29 |
30 |
43 (iModel->iRunning) ? Queue() : Cancel(); |
44 (iModel->iRunning) ? Queue() : Cancel(); |
44 } |
45 } |
45 |
46 |
46 void CAknProgressTimer::ConstructL(TTimerModel *aModel,CAknNoteControl *aContainer,TCallBack aCallBack) |
47 void CAknProgressTimer::ConstructL(TTimerModel *aModel,CAknNoteControl *aContainer,TCallBack aCallBack) |
47 { |
48 { |
|
49 _AKNTRACE_FUNC_ENTER; |
48 iCallBack = aCallBack; |
50 iCallBack = aCallBack; |
49 CTimer::ConstructL(); |
51 CTimer::ConstructL(); |
50 CActiveScheduler::Add(this); |
52 CActiveScheduler::Add(this); |
51 iModel = aModel; |
53 iModel = aModel; |
52 iContainer = aContainer; |
54 iContainer = aContainer; |
53 iContainer->SetFinalProgressValue(iModel->iFinalValue); |
55 iContainer->SetFinalProgressValue(iModel->iFinalValue); |
54 if (iModel->iRunning) |
56 if (iModel->iRunning) |
55 Queue(); |
57 Queue(); |
|
58 _AKNTRACE_FUNC_EXIT; |
56 } |
59 } |
57 |
60 |
58 void CAknProgressTimer::Queue() |
61 void CAknProgressTimer::Queue() |
59 { |
62 { |
60 After(10000 * iModel->iHundreths); |
63 After(10000 * iModel->iHundreths); |
61 } |
64 } |
62 |
65 |
63 void CAknProgressTimer::RunL() |
66 void CAknProgressTimer::RunL() |
64 { |
67 { |
|
68 _AKNTRACE_FUNC_ENTER; |
65 if (iContainer->IncrementBarsAndDraw(iModel->iIncrement)) |
69 if (iContainer->IncrementBarsAndDraw(iModel->iIncrement)) |
66 Queue(); |
70 Queue(); |
67 else |
71 else |
68 iCallBack.CallBack(); |
72 iCallBack.CallBack(); |
|
73 _AKNTRACE_FUNC_EXIT; |
69 } |
74 } |
70 |
75 |
71 // End of File |
76 // End of File |