mds_plat/location_manager_api/inc/rlocationmanager.h
changeset 0 c53acadfccc6
child 3 b73a2e62868f
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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:  An interface to Location Manager
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef R_RLOCATIONMANAGER_H
       
    19 #define R_RLOCATIONMANAGER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <LbsPosition.h>
       
    23 #include <etel3rdparty.h>
       
    24 
       
    25 /**
       
    26  *  Base class for Location Manager client interfaces.
       
    27  *  @lib LocationManager.lib
       
    28  *  @since S60 3.1
       
    29  */
       
    30 NONSHARABLE_CLASS( RLocationManager ) : public RSessionBase
       
    31     {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * C++ default constructor.
       
    36      * @since S60 3.1
       
    37      */
       
    38     IMPORT_C RLocationManager();
       
    39     
       
    40     /**
       
    41      * Creates new session to Location Manager Server.
       
    42      * @since S60 3.1
       
    43      * @param None.
       
    44      * @return KErrNone if successful.
       
    45      */
       
    46     IMPORT_C TInt Connect();
       
    47     
       
    48     /**
       
    49      * Closes the connection with Location Manager Server
       
    50      * @since S60 3.1
       
    51      * @param None.
       
    52      */
       
    53     IMPORT_C void Close();
       
    54 
       
    55 private:
       
    56     /**
       
    57      * Returns the version of Location Manager.
       
    58      */
       
    59     TVersion Version() const;
       
    60 
       
    61 protected:
       
    62 	/**
       
    63 	 * Completes an asynchronous request with an error code.
       
    64 	 * @param aError Symbian error code
       
    65 	 */
       
    66 	void CompleteRequest(TRequestStatus& aStatus, TInt aError);
       
    67        
       
    68 protected:
       
    69     /**
       
    70      * Buffer for names.
       
    71      * Own.
       
    72      */    
       
    73     CBufFlat* iNameBuf;
       
    74     };
       
    75     
       
    76 #endif // R_RLOCATIONMANAGER_H
       
    77 
       
    78 //End of File