locationmgmt/locationcore/inc/lbsadmin.inl
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  Sets one of the settings defined by the CLbsAdmin class.
       
    18  @param aSetting The setting to be changed.
       
    19  @param aValue   The new value of the setting.
       
    20  @return KErrNone if successful, KErrArgument if the value is out of range, KErrNotSupported if the value is not supported and one of the system wide error codes otherwise. 
       
    21  @capability WriteDeviceData
       
    22  @see TLbsAdminSetting
       
    23  @released 
       
    24 */
       
    25 template <typename T>
       
    26 	inline TInt CLbsAdmin::Set(const TLbsAdminSetting& aSetting, const T&  aValue)	
       
    27 		{
       
    28 		return DoSet(aSetting, aValue);
       
    29 		}
       
    30 
       
    31 
       
    32 /** Gets one of the settings defined by the CLbsAdmin class.
       
    33 @param aSetting The setting to be retrieved.
       
    34 @param aValue   The value of the setting.
       
    35 @return KErrNone if successful, one of the system wide error codes otherwise.
       
    36 @see TLbsAdminSetting
       
    37 @released */
       
    38 template <typename T>
       
    39 	inline TInt CLbsAdmin::Get(const TLbsAdminSetting& aSetting, T&  aValue) const
       
    40 		{
       
    41 		return DoGet(aSetting, aValue);		
       
    42 		}