epoc32/include/lbs/lbsadmin.inl
branchSymbian2
changeset 2 2fe1408b6811
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
       
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 /**
       
    19  Sets one of the settings defined by the CLbsAdmin class.
       
    20  @param aSetting The setting to be changed.
       
    21  @param aValue   The new value of the setting.
       
    22  @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. 
       
    23  @capability WriteDeviceData
       
    24  @see TLbsAdminSetting
       
    25  @prototype 
       
    26 */
       
    27 template <typename T>
       
    28 	inline TInt CLbsAdmin::Set(const TLbsAdminSetting& aSetting, const T&  aValue)	
       
    29 		{
       
    30 		return DoSet(aSetting, aValue);
       
    31 		}
       
    32 
       
    33 
       
    34 /** Gets one of the settings defined by the CLbsAdmin class.
       
    35 @param aSetting The setting to be retrieved.
       
    36 @param aValue   The value of the setting.
       
    37 @return KErrNone if successful, one of the system wide error codes otherwise.
       
    38 @see TLbsAdminSetting
       
    39 @prototype */
       
    40 template <typename T>
       
    41 	inline TInt CLbsAdmin::Get(const TLbsAdminSetting& aSetting, T&  aValue) const
       
    42 		{
       
    43 		return DoGet(aSetting, aValue);		
       
    44 		}