|
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: DS agenda progress view |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDES |
|
21 #include "nsmldebug.h" |
|
22 #include "nsmlagendadatastore.h" |
|
23 |
|
24 // ===================================== MEMBER FUNCTIONS ====================== |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CNSmlAgendaProgressview::NewL |
|
27 // Two-phased constructor. |
|
28 // ----------------------------------------------------------------------------- |
|
29 CNSmlAgendaProgressview* CNSmlAgendaProgressview::NewL() |
|
30 { |
|
31 _DBG_FILE("CNSmlAgendaProgressview::NewL(): BEGIN"); |
|
32 CNSmlAgendaProgressview* self = new (ELeave) CNSmlAgendaProgressview(); |
|
33 self->ConstructL(); |
|
34 _DBG_FILE("CNSmlAgendaProgressview::NewL(): END"); |
|
35 return self; |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CNSmlAgendaProgressview::~CNSmlAgendaProgressview |
|
40 // Destructor. |
|
41 // ----------------------------------------------------------------------------- |
|
42 CNSmlAgendaProgressview::~CNSmlAgendaProgressview() |
|
43 { |
|
44 _DBG_FILE("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): BEGIN"); |
|
45 // Nothing to do |
|
46 _DBG_FILE("CNSmlAgendaProgressview::~CNSmlAgendaProgressview(): END"); |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // CNSmlAgendaProgressview::Progress |
|
51 // This calls the observing class with the percentage complete of the current |
|
52 // operation. |
|
53 // ----------------------------------------------------------------------------- |
|
54 void CNSmlAgendaProgressview::Progress( TInt /*aPercentageCompleted*/ ) |
|
55 { |
|
56 _DBG_FILE("CNSmlAgendaProgressview::Progress(): BEGIN"); |
|
57 _DBG_FILE("CNSmlAgendaProgressview::Progress(): END"); |
|
58 } |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CNSmlAgendaProgressview::Completed |
|
62 // This calls the observing class when the current operation is finished. |
|
63 // ----------------------------------------------------------------------------- |
|
64 void CNSmlAgendaProgressview::Completed( TInt aError ) |
|
65 { |
|
66 _DBG_FILE("CNSmlAgendaProgressview::Completed(): BEGIN"); |
|
67 |
|
68 iCompletedStatus = aError; |
|
69 CActiveScheduler::Stop(); |
|
70 |
|
71 _DBG_FILE("CNSmlAgendaProgressview::Completed(): END"); |
|
72 } |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // CNSmlAgendaProgressview::GetCompletedStatus |
|
76 // This method returns status of Completed method (see above). |
|
77 // ----------------------------------------------------------------------------- |
|
78 TInt CNSmlAgendaProgressview::GetCompletedStatus() |
|
79 { |
|
80 return iCompletedStatus; |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // CNSmlAgendaProgressview::NotifyProgress |
|
85 // Asks the observing class whether progress callbacks are required. |
|
86 // ----------------------------------------------------------------------------- |
|
87 TBool CNSmlAgendaProgressview::NotifyProgress() |
|
88 { |
|
89 _DBG_FILE("CNSmlAgendaProgressview::NotifyProgress(): BEGIN"); |
|
90 _DBG_FILE("CNSmlAgendaProgressview::NotifyProgress(): END"); |
|
91 return EFalse; |
|
92 } |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // CNSmlAgendaProgressview::CNSmlAgendaProgressview |
|
96 // C++ default constructor. |
|
97 // ----------------------------------------------------------------------------- |
|
98 CNSmlAgendaProgressview::CNSmlAgendaProgressview() : |
|
99 iCompletedStatus( KErrNotReady ) |
|
100 { |
|
101 _DBG_FILE("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): BEGIN"); |
|
102 // Nothing to do |
|
103 _DBG_FILE("CNSmlAgendaProgressview::CNSmlAgendaProgressview(): END"); |
|
104 } |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // CNSmlAgendaProgressview::ConstructL |
|
108 // Second phase constructor. |
|
109 // ----------------------------------------------------------------------------- |
|
110 void CNSmlAgendaProgressview::ConstructL() |
|
111 { |
|
112 _DBG_FILE("CNSmlAgendaProgressview::ConstructL(): BEGIN"); |
|
113 // Nothing to do |
|
114 _DBG_FILE("CNSmlAgendaProgressview::ConstructL(): END"); |
|
115 } |
|
116 |
|
117 // End of File |