locationdataharvester/inc/mylocationsdefines.h
branchGCC_SURGE
changeset 32 9bd2e0ffe298
parent 31 8db05346071b
child 35 59575560d1e6
equal deleted inserted replaced
25:a4fe51dd4d22 32:9bd2e0ffe298
    36     // Landmark uid in the landmarks database
    36     // Landmark uid in the landmarks database
    37     TUint32 iLmId;
    37     TUint32 iLmId;
    38    
    38    
    39     // File Path
    39     // File Path
    40     TFileName iFilePath;
    40     TFileName iFilePath;
       
    41     
       
    42     //MK  map tile fetching status
       
    43     TUint32 iFetchingStatus;
    41 };
    44 };
    42 
    45 
       
    46 /** Defines map tile fetching states.
       
    47  */
    43 
    48 
       
    49 enum TMapTileFetchingState
       
    50     {
       
    51     /** Map tile fetching completed */
       
    52     EMapTileFectchingCompleted,
       
    53     /** Map tile fetching in progress */
       
    54     EMapTileFetchingInProgress,
       
    55     /** Map  tile fetching n/w error */
       
    56     EMapTileFetchingNetworkError,
       
    57     /** Map tile fetching invalid address */
       
    58     EMapTileFetchingInvalidAddress,
       
    59     /** Map tile fetching unknown erro */
       
    60     EMapTileFetchingUnknownError
       
    61     };
    44 // contacts category in landmarks db
    62 // contacts category in landmarks db
    45 _LIT( KContactsCategory, "Contacts" );
    63 _LIT( KContactsCategory, "Contacts" );
    46 
    64 
    47 // calendar category in landmarks db
    65 // calendar category in landmarks db
    48 _LIT( KCalendarCategory, "Calendar" );
    66 _LIT( KCalendarCategory, "Calendar" );
    77 _LIT( NColLmUid, "lmuid" );
    95 _LIT( NColLmUid, "lmuid" );
    78 
    96 
    79 // maptile database column names
    97 // maptile database column names
    80 _LIT( NCntColUid, "cntuid" );
    98 _LIT( NCntColUid, "cntuid" );
    81 _LIT( NCntColFilePath, "filepath" );
    99 _LIT( NCntColFilePath, "filepath" );
       
   100 _LIT( MapTileFetchingStatus, "fetchingstatus" );
    82 
   101 
    83 // database table name
   102 // database table name
    84 _LIT( KLookupTable, "lookuptable" );
   103 _LIT( KLookupTable, "lookuptable" );
    85 
   104 
    86 // maptile database table name
   105 // maptile database table name
    95 
   114 
    96 // uid column number
   115 // uid column number
    97 const TInt KColumncntUid = 1;
   116 const TInt KColumncntUid = 1;
    98 // source type column number
   117 // source type column number
    99 const TInt KColumnFilePath = 3;
   118 const TInt KColumnFilePath = 3;
       
   119 // fetching state  column number
       
   120 const TInt KColumnMapTileFetchingStatus = 4;
   100 
   121 
   101 const TInt KBufSize=256;
   122 const TInt KBufSize=256;
   102 
   123 
       
   124 //Different Maptile sizes for different applications
       
   125 const int MapTileWidth = 614;
       
   126 const int MapTileHeight = 250;
       
   127 const int MaptilePortraitWidth = 334;
       
   128 const int MaptilePortraitHeight = 250;
       
   129 const int MaptileContactLandscapeWidth =  382;
       
   130 const int MaptileContactLandscapeHeight = 128;
       
   131 const int MaptileCalendarLandscapeWidth = 614;
       
   132 const int MaptileCalendarLandscapeHeight = 202;    
       
   133 const int MaptileHurriganesWidth = 228;    
       
   134 const int MaptileHurriganesHeight = 170;
       
   135 
       
   136 static const char*  MAPTILE_IMAGE_PORTRAIT = "_Vertical";
       
   137 static const char*  MAPTILE_IMAGE_LANDSCAPE = "_Horizontal";
       
   138 static const char*  MAPTILE_IMAGE_CALENDAR = "_Calendar";
       
   139 static const char*  MAPTILE_IMAGE_CONTACT  = "_Contact"; 
       
   140 static const char*  MAPTILE_IMAGE_HURRIGANES = "_Hurriganes";
       
   141 static const char*  MAPTILE_IMAGE_TYPE = "PNG";
       
   142        
   103 #endif  // __MYLOCATIONSDEFINES_H__
   143 #endif  // __MYLOCATIONSDEFINES_H__
   104 // End of file
   144 // End of file
   105 
   145