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