meetingrequest/mrpolicy/inc/cesmrpolicychecker.h
branchRCL_3
changeset 33 da5135c61bad
parent 32 a3a1ae9acec6
child 34 cd2816114bd1
equal deleted inserted replaced
32:a3a1ae9acec6 33:da5135c61bad
     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:  ESMR service policy checker definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRPOLICYCHECKER_H
       
    20 #define CESMRPOLICYCHECKER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 //<cmail>
       
    24 #include "mesmrpolicychecker.h"
       
    25 //</cmail>
       
    26 
       
    27 /**
       
    28  *  CESMRPolicyChecker is responsible for matching policy
       
    29  *  against scenario data. This utility class encapsulates
       
    30  *  matching policies with TESMRScenarioData
       
    31  *
       
    32  *  @lib esmrpolicy.lib
       
    33  */
       
    34 NONSHARABLE_CLASS(CESMRPolicyChecker) :
       
    35         public CBase,
       
    36         public MESMRPolicyChecker
       
    37     {
       
    38 public: // Construction and destruction
       
    39     /**
       
    40      * Two-phased constructor. Creates and initializes
       
    41      * CESMRPolicyChecker object.
       
    42      * @return Pointer to esmr policy checker object.
       
    43      */
       
    44     static CESMRPolicyChecker* NewL();
       
    45 
       
    46     /**
       
    47      * C++ Destructor.
       
    48      */
       
    49     ~CESMRPolicyChecker();
       
    50 
       
    51 public: // Interface
       
    52     /**
       
    53      * Tests, whether policy matches against scenario data.
       
    54      * @param aPolicy Reference to policy to be tested.
       
    55      * @param aScenData Reference to scenario data.
       
    56      */
       
    57     TBool MatchesL(
       
    58         const CESMRPolicy& aPolicy,
       
    59         const TESMRScenarioData& aScenData );
       
    60 
       
    61 private: // Implementation
       
    62     CESMRPolicyChecker();
       
    63     void ConstructL();
       
    64     };
       
    65 
       
    66 #endif // CESMRPOLICYCHECKER_H
       
    67 
       
    68 // EOF