|
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 CMRENTRYPOLICYRESOLVER_H |
|
20 #define CMRENTRYPOLICYRESOLVER_H |
|
21 |
|
22 #include "cmrpolicyresolver.h" |
|
23 |
|
24 class CMRPolicyResourceIterator; |
|
25 |
|
26 /** |
|
27 * CESMRPolicyChecker is responsible for matching policy |
|
28 * against scenario data. This utility class encapsulates |
|
29 * matching policies with TESMRScenarioData |
|
30 * |
|
31 * @lib esmrpolicy.lib |
|
32 */ |
|
33 NONSHARABLE_CLASS( CMREntryPolicyResolver ) : |
|
34 public CMRPolicyResolver |
|
35 { |
|
36 public: // Construction and destruction |
|
37 /** |
|
38 * Two-phased constructor. Creates and initializes |
|
39 * CESMRPolicyChecker object. |
|
40 * @return Pointer to esmr policy checker object. |
|
41 */ |
|
42 static CMREntryPolicyResolver* NewL(); |
|
43 |
|
44 /** |
|
45 * C++ Destructor. |
|
46 */ |
|
47 ~CMREntryPolicyResolver(); |
|
48 |
|
49 protected: // Interface |
|
50 |
|
51 CESMRPolicy* ResolveL( const TESMRScenarioData& aScenData ); |
|
52 |
|
53 TBool SupportsTypeL( TESMRCalendarEventType aType ); |
|
54 |
|
55 TBool MatchesL( |
|
56 const CESMRPolicy& aPolicy, |
|
57 const TESMRScenarioData& aScenData ); |
|
58 |
|
59 private: // Implementation |
|
60 CMREntryPolicyResolver(); |
|
61 |
|
62 void ConstructL(); |
|
63 |
|
64 private: // Data |
|
65 |
|
66 CMRPolicyResourceIterator* iIterator; |
|
67 }; |
|
68 |
|
69 #endif // CMRENTRYPOLICYRESOLVER_H |
|
70 |
|
71 // EOF |