rtsecuritymanager/rtsecuritymanagerserver/inc/rtsecmgrpolicymanager.inl
changeset 57 61b27eec6533
parent 45 7aa6007702af
equal deleted inserted replaced
45:7aa6007702af 57:61b27eec6533
     1 /*
       
     2 * Copyright (c) 2007-2008 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 the License "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:       Definition of policy manager inline functions
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 inline CPolicyManager::CPolicyManager(CSecMgrStore* aSecMgrDB) :
       
    25 	iSecMgrDB(aSecMgrDB)
       
    26 	{
       
    27 	}
       
    28 
       
    29 inline CPolicyManager::~CPolicyManager()
       
    30 	{
       
    31 	iPolicies.ResetAndDestroy ();
       
    32 	}
       
    33 
       
    34 inline void CPolicyManager::RestorePoliciesL()
       
    35 	{
       
    36 	if ( iSecMgrDB)
       
    37 		iSecMgrDB->RestorePoliciesL (iPolicies);
       
    38 	}
       
    39 
       
    40 inline TInt CPolicyManager::Count() const
       
    41 	{
       
    42 	return iPolicies.Count ();
       
    43 	}