serviceproviders/sapi_location/inc/locationinterface.h
changeset 22 fc9cf246af83
parent 19 989d2f495d90
child 32 8d692d9f828f
--- a/serviceproviders/sapi_location/inc/locationinterface.h	Fri Jul 03 15:51:24 2009 +0100
+++ b/serviceproviders/sapi_location/inc/locationinterface.h	Thu Aug 27 07:43:07 2009 +0300
@@ -50,8 +50,8 @@
 _LIT8( KCmdGetLocation , "GetLocation" ) ;
 _LIT8( KCmdTraceLocation, "Trace" ) ;
 _LIT8( KCmdCancelRequest, "CancelNotification" ) ;
-_LIT8( KCmdSetIdentity, "SetIdentity");
 
+_LIT8(KCmdLastLocation,"GetLastPosition");
 _LIT( KRequestTrace ,"TraceCancel") ;
 _LIT( KRequestGetLoc , "GetLocCancel" ) ;
 _LIT8( KRequestCalculate , "Calculate") ;
@@ -82,6 +82,10 @@
 _LIT8(KUpdateOptionTimeOut,"UpdateTimeOut");
 _LIT8(KUpdateOptionMaxAge,"UpdateMaxAge");
 _LIT8(KPartialUpdates , "PartialUpdates");
+/**
+ * EnableHighAccuracy parameter
+ */
+_LIT8(KEnableHighAccuracy,"EnableHighAccuracy");
 
 /**
  * Class of Location Information ;user is 
@@ -136,12 +140,6 @@
 _LIT8(KPositionFieldMagneticCourse , "MagneticCourse") ;
 _LIT8(KPositionFieldMagneticCourseError , "MagneticCourseError") ;
 
-/**
- * NMEA information which will be part of outparam list 
- */
-
-_LIT8(KPositionFieldNMEASentences , "NMEASentence") ;
-_LIT8(KPositionFieldNMEASentencesStart , "NMEASentenceStart") ;
 
 /**
  * Enum specifier for postion Info Category
@@ -211,7 +209,7 @@
     virtual void Close() {delete this;}                          
 
     private :
-    static void ConvertPosToGenricListL( TPosition &aPos , CLiwGenericParamList &aOutList ) ;
+   
 
     /**
      * Internal private function which extracts coordinate information from CLiwMap
@@ -234,6 +232,11 @@
 	 
     private :
     /**
+     * By default Symbian 2nd phase constructor is private.
+     * 
+     */
+    void ConstructL();
+    /**
      *Default constructor
      */
      
@@ -279,15 +282,7 @@
      
 	void GetLocationInfo( CLiwGenericParamList& aOutParamList,TInt aPosInfoCategory) ;
 	
-	/**
-     * Internal function which cancels the asynchronous using transaction id of the 
-     * async request
-     *
-     * @param aTransactionId Transaction id of the asynchronous request to be cancelled
-     */   	
-     
-     MLiwNotifyCallback* RequestCancel(TInt32 aTransactionId/*,MLiwNotifyCallback** aCallBack*/) ;   	
-        
+	
             
     /**
      * Handle to core location class for performing location operations
@@ -310,6 +305,10 @@
      * Class member which contains module information which is used for location esitmation
      */
     TPositionModuleInfo   iModuleInfo ;
+    /**
+     * Class member which is used to obtain updates of Last Known Position
+     */
+    TPosition iPosition;
 
     /**
      * Class member which contains all the field ids of all the supported Hposition info fields