|
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 CESMRAGNPARSERRULEWEEKLY_H |
|
20 #define CESMRAGNPARSERRULEWEEKLY_H |
|
21 |
|
22 #include "cesmragnparserrule.h" |
|
23 |
|
24 /** |
|
25 * An encapsulated CESMRAgnParseRRule for weeks |
|
26 */ |
|
27 class CESMRAgnParseRRuleWeekly : CESMRAgnParseRRule |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * C++ Constructor. |
|
32 */ |
|
33 CESMRAgnParseRRuleWeekly(); |
|
34 |
|
35 /** |
|
36 * C++ Destructor. |
|
37 */ |
|
38 virtual ~CESMRAgnParseRRuleWeekly(); |
|
39 |
|
40 public: |
|
41 /** |
|
42 * Constructs a new CESMRAgnParseRRuleWeekly and returns it. The object is left on the |
|
43 * cleanup stack. |
|
44 * @param aAgnImpUtil AgnVersit2Importer utility functions |
|
45 * @return a new CESMRAgnParseRRuleWeekly. |
|
46 */ |
|
47 static CESMRAgnParseRRule* NewLC( MESMRAgnImpUtil& aAgnImpUtil ); |
|
48 |
|
49 private://Constructor |
|
50 CESMRAgnParseRRuleWeekly( MESMRAgnImpUtil& aAgnImpUtil ); |
|
51 |
|
52 protected://From CESMRAgnParseRRule |
|
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 protected: |
|
70 /** |
|
71 * Update TCalRRule with by days |
|
72 * @param aSegment recurrence rule value segment. |
|
73 * @param aRule recurrence rules |
|
74 * @return true if aRule updated successfully |
|
75 */ |
|
76 virtual TBool SetRRuleByDayL( const CESMRICalRuleSegment& aSegment, TCalRRule& aRule ); |
|
77 }; |
|
78 |
|
79 #endif // CESMRAgnParseRRuleWeekly_h |