locationdataharvester/inc/mylocationsdefines.h
changeset 17 0f22fb80ebba
child 20 cd10d5b85554
equal deleted inserted replaced
15:13ae750350c9 17:0f22fb80ebba
       
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __MYLOCATIONSDEFINES_H__
       
    20 #define __MYLOCATIONSDEFINES_H__
       
    21 
       
    22 /**
       
    23  * TLookupItem struct.
       
    24  * This structure defines a single lookup item.
       
    25  */
       
    26 
       
    27 class TLookupItem
       
    28 {
       
    29 public:
       
    30     // Uid of the source entry
       
    31     TUint32 iUid;
       
    32 
       
    33     // Source type
       
    34     TUint32 iSource;
       
    35 
       
    36     // Landmark uid in the landmarks database
       
    37     TUint32 iLmId;
       
    38    
       
    39     // File Path
       
    40     TFileName iFilePath;
       
    41 };
       
    42 
       
    43 /** Defines uid source type
       
    44  */
       
    45 enum TUidSourceType
       
    46 {
       
    47     /** Uid Source type calendar */
       
    48     ESourceCalendar=0,
       
    49     /** Uid Source type landmarks */
       
    50     ESourceLandmarks,
       
    51     /** Uid Source type maps history */
       
    52     ESourceMapsHistory,
       
    53     /** Uid Source type contacts default/prefered address */
       
    54     ESourceContactsPref,
       
    55     /** Uid Source type contacts work address */
       
    56     ESourceContactsWork,
       
    57     /** Uid Source type contacts home address */
       
    58     ESourceContactsHome,
       
    59     /** Uid Source type landmarks category */
       
    60     ESourceLandmarksCategory,
       
    61     /** Uid Source type landmarks user created category */
       
    62     ESourceLandmarksUserCat,
       
    63     /** Uid Source type landmarks 'contacts' category */
       
    64     ESourceLandmarksContactsCat,
       
    65     /** Uid Source type landmarks 'calendar' category */
       
    66     ESourceLandmarksCalendarCat,
       
    67     /** Uid Source type maps history' category */
       
    68     ESourceLandmarksHistoryCat
       
    69 };
       
    70 
       
    71 // lookup database folder path
       
    72 _LIT( KLookupDbPath, "c:\\mylocations\\" );
       
    73 
       
    74 //Mylocations resource file
       
    75 _LIT(KMyLocationsResourceFile, "z:\\resource\\apps\\mylocations.rsc");
       
    76 
       
    77 // My locations landmarks database uri.
       
    78 _LIT( KMylocationsDatabaseUri, "file://c:MyLocationsLandmarks.ldb" );
       
    79 
       
    80 // maptile database uri.
       
    81 _LIT( KMaptileDatabaseUri, "file://c:MyLocationsMaptile.ldb" );
       
    82 
       
    83 // History landmarks database uri.
       
    84 _LIT( KMapsHistoryUri, "file://c:MapsHistoryLandmarks.ldb" );
       
    85 
       
    86 // mylocations lookup database name
       
    87 _LIT( KMylocationsLookupDatabaseName, "mylocationslookup.db" );
       
    88 
       
    89 // maptile lookup database name
       
    90 _LIT( KMapTileLookupDatabaseName, "mylocationsmaptilelookup.db" );
       
    91 
       
    92 // landmarks lookup database name
       
    93 _LIT( KLandmarksLookupDatabaseName, "landmarkslookup.db" );
       
    94 
       
    95 // database column names
       
    96 _LIT( NColUid, "uid" );
       
    97 _LIT( NColSource, "source" );
       
    98 _LIT( NColLmUid, "lmuid" );
       
    99 
       
   100 // maptile database column names
       
   101 _LIT( NCntColUid, "cntuid" );
       
   102 _LIT( NCntColFilePath, "filepath" );
       
   103 
       
   104 // database table name
       
   105 _LIT( KLookupTable, "lookuptable" );
       
   106 
       
   107 // maptile database table name
       
   108 _LIT( KMapTileLookupTable, "cntmaptilelookuptable" );
       
   109 
       
   110 // uid column number
       
   111 const TInt KColumnUid = 1;
       
   112 // source type column number
       
   113 const TInt KColumnSource = 2;
       
   114 // landmark uid column number
       
   115 const TInt KColumnLmkUid = 3;
       
   116 
       
   117 // uid column number
       
   118 const TInt KColumncntUid = 1;
       
   119 // source type column number
       
   120 const TInt KColumnFilePath = 3;
       
   121 
       
   122 #endif  // __MYLOCATIONSDEFINES_H__
       
   123 // End of file
       
   124