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