meetingrequest/mrpolicy/inc/mmrpolicyresolver.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Interface definition for MR policy resolver ECom interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MMRPOLICYRESOLVER_H
       
    20 #define MMRPOLICYRESOLVER_H
       
    21 
       
    22 #include "esmrdef.h"
       
    23 
       
    24 class CESMRPolicy;
       
    25 class TESMRScenarioData;
       
    26 
       
    27 /**
       
    28  *  MMRPolicyResolver defines interface for policy resolving .
       
    29  */
       
    30 class MMRPolicyResolver
       
    31     {
       
    32 public:
       
    33     
       
    34     virtual ~MMRPolicyResolver() {}
       
    35     
       
    36         
       
    37 public:
       
    38     
       
    39     /**
       
    40      * Resolves policy based on given scenario data.
       
    41      * Ownership of the resolved policy is transferred to caller.
       
    42      * 
       
    43      * @param aScenData scenario data.
       
    44      * @return resolved policy instance.
       
    45      */
       
    46     virtual CESMRPolicy* ResolveL( const TESMRScenarioData& aScenData ) = 0;
       
    47 
       
    48     /**
       
    49      * Returns ETrue if resolver is capable of resolving specified entry type
       
    50      * 
       
    51      * @param aType Entry type to test
       
    52      */
       
    53     virtual TBool SupportsTypeL( TESMRCalendarEventType aType ) = 0;
       
    54     
       
    55     /**
       
    56      * Accessor for interface extensions.
       
    57      * 
       
    58      * @param aExtensionUid the extension interface UID
       
    59      * @return pointer to extension interface or NULL
       
    60      */
       
    61     virtual TAny* Extension( TUid /*aExtensionUid*/ ) { return NULL; }
       
    62     
       
    63     };
       
    64 
       
    65 #endif // MMRPOLICYRESOLVER_H