meetingrequest/mrpolicy/inc/cesmrpolicymanager.inl
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
       
     2 * Copyright (c) 2007 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:  ESMR policy manager inline methods 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // CESMRPolicyManager::CurrentPolicy
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 inline CESMRPolicy& CESMRPolicyManager::CurrentPolicy()
       
    24     {
       
    25     CESMRPolicy* currentPolicy = iCurrentPolicy;
       
    26     if ( !currentPolicy && iPolicyStack.Count() )
       
    27         {
       
    28         currentPolicy = iPolicyStack[ iPolicyStack.Count() - 1 ];
       
    29         }
       
    30     
       
    31     ASSERT( currentPolicy );
       
    32     return *currentPolicy;
       
    33     }