equal
deleted
inserted
replaced
19 #include <EPos_CPosLandmarkCategory.h> |
19 #include <EPos_CPosLandmarkCategory.h> |
20 #include <EPos_CPosLandmarkDatabase.h> |
20 #include <EPos_CPosLandmarkDatabase.h> |
21 #include <EPos_CPosLmCategoryManager.h> |
21 #include <EPos_CPosLmCategoryManager.h> |
22 #include <EPos_CPosLmItemIterator.h> |
22 #include <EPos_CPosLmItemIterator.h> |
23 #include "clandmarkcategoryiterable.h" |
23 #include "clandmarkcategoryiterable.h" |
|
24 #include "clandmarkmanagehandlers.h" |
24 #include "landmarkliwparams.hrh" |
25 #include "landmarkliwparams.hrh" |
25 |
26 |
26 // ============================ MEMBER FUNCTIONS =============================== |
27 // ============================ MEMBER FUNCTIONS =============================== |
27 |
28 |
28 // ----------------------------------------------------------------------------- |
29 // ----------------------------------------------------------------------------- |
75 delete iLandmarkCategory; |
76 delete iLandmarkCategory; |
76 delete iCategoryManager; |
77 delete iCategoryManager; |
77 delete iDatabase; |
78 delete iDatabase; |
78 delete iCategoryId; |
79 delete iCategoryId; |
79 delete iGlobalCategoryId; |
80 delete iGlobalCategoryId; |
|
81 if (iHandler && !iHandler->DecRef()) |
|
82 { |
|
83 delete iHandler; |
|
84 } |
80 ReleaseLandmarkResources(); |
85 ReleaseLandmarkResources(); |
|
86 } |
|
87 |
|
88 void CLandmarkCategoryIterable::SetHandler(CLandmarkHandler* aHandler) |
|
89 { |
|
90 iHandler = aHandler; |
|
91 iHandler->IncRef(); |
81 } |
92 } |
82 |
93 |
83 // ----------------------------------------------------------------------------- |
94 // ----------------------------------------------------------------------------- |
84 // CLandmarkCategoryIterable::Reset() |
95 // CLandmarkCategoryIterable::Reset() |
85 // Resets the iterator. NextL has to be called to retrieve the first item. |
96 // Resets the iterator. NextL has to be called to retrieve the first item. |
143 } |
154 } |
144 aEntry.SetL(categoryMap); |
155 aEntry.SetL(categoryMap); |
145 CleanupStack::PopAndDestroy(categoryMap); |
156 CleanupStack::PopAndDestroy(categoryMap); |
146 return ETrue; |
157 return ETrue; |
147 } |
158 } |
148 |
159 void CLandmarkCategoryIterable::Close() |
|
160 { |
|
161 DecRef(); |
|
162 } |
149 //end of file |
163 //end of file |