meetingrequest/mrpolicy/inc/cmrpolicyresolver.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 CMRPOLICYRESOLVER_H
       
    20 #define CMRPOLICYRESOLVER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "mmrpolicyresolver.h"
       
    24 #include "mesmrpolicychecker.h"
       
    25 
       
    26 #include "esmrdef.h"
       
    27 
       
    28 /**
       
    29  *  CMRPolicyResolver defines ECom plugin interface for policy resolving .
       
    30  *  @see MESMRTaskFactory
       
    31  *
       
    32  *  @lib esmrtasks.lib
       
    33  */
       
    34 class CMRPolicyResolver : public CBase,
       
    35                           public MMRPolicyResolver,
       
    36                           public MESMRPolicyChecker
       
    37     {
       
    38 public: // Construction and destruction
       
    39     /**
       
    40      * Creates and initialzes new ES MR task factory.
       
    41      * @param aCalDbMgr Reference to cal db manager.
       
    42      */
       
    43     inline static CMRPolicyResolver* NewL( TESMRCalendarEventType aType );
       
    44 
       
    45     /**
       
    46      * C++ destructor.
       
    47      */
       
    48     inline ~CMRPolicyResolver();
       
    49     
       
    50 public: // From MMRPolicyResolver
       
    51     
       
    52     CESMRPolicy* ResolveL( const TESMRScenarioData& aScenData ) = 0;
       
    53 
       
    54     TBool SupportsTypeL( TESMRCalendarEventType aType ) = 0;
       
    55     
       
    56 public: // From MESMRPolicyChecker
       
    57    TBool MatchesL(
       
    58             const CESMRPolicy& aPolicy,
       
    59             const TESMRScenarioData& aScenData ) = 0;
       
    60 
       
    61 private: // Data
       
    62     
       
    63     /**
       
    64      * iDtor_ID_Key Instance identifier key. When instance of an
       
    65      * implementation is created by ECOM framework, the
       
    66      * framework will assign UID for it. The UID is used in
       
    67      * destructor to notify framework that this instance is
       
    68      * being destroyed and resources can be released.
       
    69      */
       
    70     TUid iDtor_ID_Key;    
       
    71     };
       
    72 
       
    73 #include "cmrpolicyresolver.inl"
       
    74 
       
    75 #endif // C_ESMRTASKFACTORY_H