mds_plat/location_manager_api/inc/rlocationmanager.h
changeset 0 c53acadfccc6
child 3 b73a2e62868f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mds_plat/location_manager_api/inc/rlocationmanager.h	Mon Jan 18 20:34:07 2010 +0200
@@ -0,0 +1,78 @@
+/*
+* Copyright (c) 2006-2009 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:  An interface to Location Manager
+*
+*/
+
+#ifndef R_RLOCATIONMANAGER_H
+#define R_RLOCATIONMANAGER_H
+
+#include <e32base.h>
+#include <LbsPosition.h>
+#include <etel3rdparty.h>
+
+/**
+ *  Base class for Location Manager client interfaces.
+ *  @lib LocationManager.lib
+ *  @since S60 3.1
+ */
+NONSHARABLE_CLASS( RLocationManager ) : public RSessionBase
+    {
+public:
+
+    /**
+     * C++ default constructor.
+     * @since S60 3.1
+     */
+    IMPORT_C RLocationManager();
+    
+    /**
+     * Creates new session to Location Manager Server.
+     * @since S60 3.1
+     * @param None.
+     * @return KErrNone if successful.
+     */
+    IMPORT_C TInt Connect();
+    
+    /**
+     * Closes the connection with Location Manager Server
+     * @since S60 3.1
+     * @param None.
+     */
+    IMPORT_C void Close();
+
+private:
+    /**
+     * Returns the version of Location Manager.
+     */
+    TVersion Version() const;
+
+protected:
+	/**
+	 * Completes an asynchronous request with an error code.
+	 * @param aError Symbian error code
+	 */
+	void CompleteRequest(TRequestStatus& aStatus, TInt aError);
+       
+protected:
+    /**
+     * Buffer for names.
+     * Own.
+     */    
+    CBufFlat* iNameBuf;
+    };
+    
+#endif // R_RLOCATIONMANAGER_H
+
+//End of File