locationdataharvester/inc/mylocationsdefines.h
changeset 17 0f22fb80ebba
child 20 cd10d5b85554
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/locationdataharvester/inc/mylocationsdefines.h	Mon May 03 12:27:22 2010 +0300
@@ -0,0 +1,124 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+
+#ifndef __MYLOCATIONSDEFINES_H__
+#define __MYLOCATIONSDEFINES_H__
+
+/**
+ * TLookupItem struct.
+ * This structure defines a single lookup item.
+ */
+
+class TLookupItem
+{
+public:
+    // Uid of the source entry
+    TUint32 iUid;
+
+    // Source type
+    TUint32 iSource;
+
+    // Landmark uid in the landmarks database
+    TUint32 iLmId;
+   
+    // File Path
+    TFileName iFilePath;
+};
+
+/** Defines uid source type
+ */
+enum TUidSourceType
+{
+    /** Uid Source type calendar */
+    ESourceCalendar=0,
+    /** Uid Source type landmarks */
+    ESourceLandmarks,
+    /** Uid Source type maps history */
+    ESourceMapsHistory,
+    /** Uid Source type contacts default/prefered address */
+    ESourceContactsPref,
+    /** Uid Source type contacts work address */
+    ESourceContactsWork,
+    /** Uid Source type contacts home address */
+    ESourceContactsHome,
+    /** Uid Source type landmarks category */
+    ESourceLandmarksCategory,
+    /** Uid Source type landmarks user created category */
+    ESourceLandmarksUserCat,
+    /** Uid Source type landmarks 'contacts' category */
+    ESourceLandmarksContactsCat,
+    /** Uid Source type landmarks 'calendar' category */
+    ESourceLandmarksCalendarCat,
+    /** Uid Source type maps history' category */
+    ESourceLandmarksHistoryCat
+};
+
+// lookup database folder path
+_LIT( KLookupDbPath, "c:\\mylocations\\" );
+
+//Mylocations resource file
+_LIT(KMyLocationsResourceFile, "z:\\resource\\apps\\mylocations.rsc");
+
+// My locations landmarks database uri.
+_LIT( KMylocationsDatabaseUri, "file://c:MyLocationsLandmarks.ldb" );
+
+// maptile database uri.
+_LIT( KMaptileDatabaseUri, "file://c:MyLocationsMaptile.ldb" );
+
+// History landmarks database uri.
+_LIT( KMapsHistoryUri, "file://c:MapsHistoryLandmarks.ldb" );
+
+// mylocations lookup database name
+_LIT( KMylocationsLookupDatabaseName, "mylocationslookup.db" );
+
+// maptile lookup database name
+_LIT( KMapTileLookupDatabaseName, "mylocationsmaptilelookup.db" );
+
+// landmarks lookup database name
+_LIT( KLandmarksLookupDatabaseName, "landmarkslookup.db" );
+
+// database column names
+_LIT( NColUid, "uid" );
+_LIT( NColSource, "source" );
+_LIT( NColLmUid, "lmuid" );
+
+// maptile database column names
+_LIT( NCntColUid, "cntuid" );
+_LIT( NCntColFilePath, "filepath" );
+
+// database table name
+_LIT( KLookupTable, "lookuptable" );
+
+// maptile database table name
+_LIT( KMapTileLookupTable, "cntmaptilelookuptable" );
+
+// uid column number
+const TInt KColumnUid = 1;
+// source type column number
+const TInt KColumnSource = 2;
+// landmark uid column number
+const TInt KColumnLmkUid = 3;
+
+// uid column number
+const TInt KColumncntUid = 1;
+// source type column number
+const TInt KColumnFilePath = 3;
+
+#endif  // __MYLOCATIONSDEFINES_H__
+// End of file
+