|
1 /* |
|
2 * Copyright (c) 2005-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: Implements the import functionality of RRule |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef CESMRAGNPARSERRULEMONTHLY_H |
|
20 #define CESMRAGNPARSERRULEMONTHLY_H |
|
21 |
|
22 #include "cesmragnparserrule.h" |
|
23 |
|
24 /** |
|
25 * An encalsulated CESMRAgnParseRRule for months |
|
26 */ |
|
27 class CESMRAgnParseRRuleMonthly : CESMRAgnParseRRule |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * C++ Constructor. |
|
32 */ |
|
33 CESMRAgnParseRRuleMonthly(); |
|
34 |
|
35 /** |
|
36 * C++ Destructor. |
|
37 */ |
|
38 virtual ~CESMRAgnParseRRuleMonthly(); |
|
39 |
|
40 public: |
|
41 /** |
|
42 * Constructs a new CESMRAgnParseRRuleMonthly and returns it. |
|
43 * The object is left on the cleanup stack. |
|
44 * @param aAgnImpUtil AgnVersit2Importer utility functions |
|
45 * @return a new CESMRAgnParseRRuleMonthly. |
|
46 */ |
|
47 static CESMRAgnParseRRule* NewLC( MESMRAgnImpUtil& aAgnImpUtil ); |
|
48 |
|
49 private://Constructor |
|
50 CESMRAgnParseRRuleMonthly( MESMRAgnImpUtil& aAgnImpUtil ); |
|
51 |
|
52 protected: |
|
53 /** |
|
54 * Parse the keywords and update RRule |
|
55 * @param aSegment recurrence rule value segment. |
|
56 * @param aRule recurrence rules |
|
57 * @return True if parsed the keyword successfully |
|
58 */ |
|
59 virtual TBool DoParseL( CESMRICalRuleSegment& aSegment, TCalRRule& aRule ); |
|
60 |
|
61 /** |
|
62 * Finalize the parsing |
|
63 * @param aRule recurrence rules |
|
64 * @param aStartTime The DTSTART of the parent component. |
|
65 * @return True if finalized parsing successfully |
|
66 */ |
|
67 virtual TBool FinalizeParsingL( TCalRRule& aRule, const TCalTime& aStartTime ); |
|
68 }; |
|
69 |
|
70 #endif // CESMRAgnParseRRuleMonthly_h |