This page was last modified 08:23, 25 March 2008.
How to use Landmarks API
From Forum Nokia Wiki
The following code snippets are how to open and read the landmarks from landmarks database
Opening Landmarks database
CPosLandmarkDatabase* db = CPosLandmarkDatabase::OpenL(); CleanupStack::PushL(db); ExecuteAndDeleteLD(db->InitializeL()); CPosLmItemIterator* iter = db->LandmarkIteratorL(); CleanupStack::PushL(iter); TPosLmItemId lmID; while ((lmID = iter->NextL()) != KPosLmNullItemId) { CPosLandmark* lm = db->ReadLandmarkLC(lmID); CleanupStack::PopAndDestroy(lm); } CleanupStack::PopAndDestroy(2, db);
Reading Landmarks from database
CPosLmCategoryManager* categoryManager = CPosLmCategoryManager::NewL(*aDb); CleanupStack::PushL(categoryManager); CPosLmItemIterator* iter = categoryManager->CategoryIteratorL(); CleanupStack::PushL(iter); TPosLmItemId catID; while ((catID = iter->NextL()) != KPosLmNullItemId) { CPosLandmarkCategory* cat = categoryManager->ReadCategoryLC(catID); CleanupStack::PopAndDestroy(cat); } CleanupStack::PopAndDestroy(2, categoryManager);
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SyncML Client API missing from FP2 API plug-in pack | alexbirkett | Symbian Tools & SDKs | 3 | 2008-09-10 10:47 |
| How to send a message on devices without wma? | raulftang | Mobile Java Networking & Messaging & Security | 2 | 2006-05-01 02:57 |
| MobInfo API on S60 3rd Ed FP2 | gerdavax | Mobile Java General | 2 | 2008-07-15 15:51 |
| PC Suite Connectivity API 1.1 Evolution | clifford13 | PC Suite API and PC Connectivity SDK | 6 | 2006-03-06 11:00 |
| Connection Monitor API, Who knows how to use? | lifangjie | Symbian Networking & Messaging | 2 | 2007-10-31 11:21 |
