serviceproviders/sapi_location/inc/locationinterface.h
changeset 22 fc9cf246af83
parent 19 989d2f495d90
child 32 8d692d9f828f
equal deleted inserted replaced
19:989d2f495d90 22:fc9cf246af83
    48  */
    48  */
    49  
    49  
    50 _LIT8( KCmdGetLocation , "GetLocation" ) ;
    50 _LIT8( KCmdGetLocation , "GetLocation" ) ;
    51 _LIT8( KCmdTraceLocation, "Trace" ) ;
    51 _LIT8( KCmdTraceLocation, "Trace" ) ;
    52 _LIT8( KCmdCancelRequest, "CancelNotification" ) ;
    52 _LIT8( KCmdCancelRequest, "CancelNotification" ) ;
    53 _LIT8( KCmdSetIdentity, "SetIdentity");
    53 
    54 
    54 _LIT8(KCmdLastLocation,"GetLastPosition");
    55 _LIT( KRequestTrace ,"TraceCancel") ;
    55 _LIT( KRequestTrace ,"TraceCancel") ;
    56 _LIT( KRequestGetLoc , "GetLocCancel" ) ;
    56 _LIT( KRequestGetLoc , "GetLocCancel" ) ;
    57 _LIT8( KRequestCalculate , "Calculate") ;
    57 _LIT8( KRequestCalculate , "Calculate") ;
    58  
    58  
    59 _LIT8(	KMathRequest , "MathRequest") ;
    59 _LIT8(	KMathRequest , "MathRequest") ;
    80 _LIT8(KUpdateOptionMap,"Updateoptions");
    80 _LIT8(KUpdateOptionMap,"Updateoptions");
    81 _LIT8(KUpdateOptionInterval,"UpdateInterval");
    81 _LIT8(KUpdateOptionInterval,"UpdateInterval");
    82 _LIT8(KUpdateOptionTimeOut,"UpdateTimeOut");
    82 _LIT8(KUpdateOptionTimeOut,"UpdateTimeOut");
    83 _LIT8(KUpdateOptionMaxAge,"UpdateMaxAge");
    83 _LIT8(KUpdateOptionMaxAge,"UpdateMaxAge");
    84 _LIT8(KPartialUpdates , "PartialUpdates");
    84 _LIT8(KPartialUpdates , "PartialUpdates");
       
    85 /**
       
    86  * EnableHighAccuracy parameter
       
    87  */
       
    88 _LIT8(KEnableHighAccuracy,"EnableHighAccuracy");
    85 
    89 
    86 /**
    90 /**
    87  * Class of Location Information ;user is 
    91  * Class of Location Information ;user is 
    88  * looking for
    92  * looking for
    89  */
    93  */
   134 _LIT8(KPositionFieldTrueCourse , "TrueCourse") ;
   138 _LIT8(KPositionFieldTrueCourse , "TrueCourse") ;
   135 _LIT8(KPositionFieldTrueCourseError , "TrueCourseError") ;
   139 _LIT8(KPositionFieldTrueCourseError , "TrueCourseError") ;
   136 _LIT8(KPositionFieldMagneticCourse , "MagneticCourse") ;
   140 _LIT8(KPositionFieldMagneticCourse , "MagneticCourse") ;
   137 _LIT8(KPositionFieldMagneticCourseError , "MagneticCourseError") ;
   141 _LIT8(KPositionFieldMagneticCourseError , "MagneticCourseError") ;
   138 
   142 
   139 /**
       
   140  * NMEA information which will be part of outparam list 
       
   141  */
       
   142 
       
   143 _LIT8(KPositionFieldNMEASentences , "NMEASentence") ;
       
   144 _LIT8(KPositionFieldNMEASentencesStart , "NMEASentenceStart") ;
       
   145 
   143 
   146 /**
   144 /**
   147  * Enum specifier for postion Info Category
   145  * Enum specifier for postion Info Category
   148  * 
   146  * 
   149  */
   147  */
   209      * Close function called by consumer when it wants to delete the interface
   207      * Close function called by consumer when it wants to delete the interface
   210      */
   208      */
   211     virtual void Close() {delete this;}                          
   209     virtual void Close() {delete this;}                          
   212 
   210 
   213     private :
   211     private :
   214     static void ConvertPosToGenricListL( TPosition &aPos , CLiwGenericParamList &aOutList ) ;
   212    
   215 
   213 
   216     /**
   214     /**
   217      * Internal private function which extracts coordinate information from CLiwMap
   215      * Internal private function which extracts coordinate information from CLiwMap
   218      * passed by consumer, this is required for math operations
   216      * passed by consumer, this is required for math operations
   219      *
   217      *
   232 	 */
   230 	 */
   233 	 TInt SetUpdateOption(TPositionUpdateOptions& aPositionUpdateoption,const CLiwMap* aUpdatemap);
   231 	 TInt SetUpdateOption(TPositionUpdateOptions& aPositionUpdateoption,const CLiwMap* aUpdatemap);
   234 	 
   232 	 
   235     private :
   233     private :
   236     /**
   234     /**
       
   235      * By default Symbian 2nd phase constructor is private.
       
   236      * 
       
   237      */
       
   238     void ConstructL();
       
   239     /**
   237      *Default constructor
   240      *Default constructor
   238      */
   241      */
   239      
   242      
   240     CLocationInterface() ;
   243     CLocationInterface() ;
   241 
   244 
   277      * @param aPosInfoCategory position category (Basic or Generic)
   280      * @param aPosInfoCategory position category (Basic or Generic)
   278      */
   281      */
   279      
   282      
   280 	void GetLocationInfo( CLiwGenericParamList& aOutParamList,TInt aPosInfoCategory) ;
   283 	void GetLocationInfo( CLiwGenericParamList& aOutParamList,TInt aPosInfoCategory) ;
   281 	
   284 	
   282 	/**
   285 	
   283      * Internal function which cancels the asynchronous using transaction id of the 
       
   284      * async request
       
   285      *
       
   286      * @param aTransactionId Transaction id of the asynchronous request to be cancelled
       
   287      */   	
       
   288      
       
   289      MLiwNotifyCallback* RequestCancel(TInt32 aTransactionId/*,MLiwNotifyCallback** aCallBack*/) ;   	
       
   290         
       
   291             
   286             
   292     /**
   287     /**
   293      * Handle to core location class for performing location operations
   288      * Handle to core location class for performing location operations
   294      */
   289      */
   295     CLocationService *iLocationService ;
   290     CLocationService *iLocationService ;
   308 
   303 
   309     /**
   304     /**
   310      * Class member which contains module information which is used for location esitmation
   305      * Class member which contains module information which is used for location esitmation
   311      */
   306      */
   312     TPositionModuleInfo   iModuleInfo ;
   307     TPositionModuleInfo   iModuleInfo ;
       
   308     /**
       
   309      * Class member which is used to obtain updates of Last Known Position
       
   310      */
       
   311     TPosition iPosition;
   313 
   312 
   314     /**
   313     /**
   315      * Class member which contains all the field ids of all the supported Hposition info fields
   314      * Class member which contains all the field ids of all the supported Hposition info fields
   316      */ 
   315      */ 
   317 
   316