meetingrequest/mragnversit2/inc/cesmragnparserruledaily.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     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 CESMRAGNPARSERRULEDAILY_H
       
    20 #define CESMRAGNPARSERRULEDAILY_H
       
    21 
       
    22 #include "cesmragnparserrule.h"
       
    23 
       
    24 /**
       
    25  * Encapsulates a single CESMRAgnParseRRule handling
       
    26  */
       
    27 class CESMRAgnParseRRuleDaily : CESMRAgnParseRRule
       
    28     {
       
    29 public:
       
    30     CESMRAgnParseRRuleDaily();
       
    31     virtual ~CESMRAgnParseRRuleDaily();
       
    32 
       
    33 public:
       
    34     /**
       
    35      * Constructs a new CESMRAgnParseRRuleDaily and returns it. The object is left on the
       
    36      * cleanup stack.
       
    37      * @param aAgnImpUtil AgnVersit2Importer utility functions
       
    38      * @return a new CESMRAgnParseRRuleDaily.
       
    39      */
       
    40     static CESMRAgnParseRRule* NewLC( MESMRAgnImpUtil& aAgnImpUtil );
       
    41 
       
    42 private://Constructor
       
    43     CESMRAgnParseRRuleDaily( MESMRAgnImpUtil& aAgnImpUtil );
       
    44 
       
    45 protected:
       
    46     /**
       
    47      * Parse the keywords and update RRule
       
    48      * @param aSegment recurrence rule value segment.
       
    49      * @param aRule recurrence rules
       
    50      * @return True if parsed the keyword successfully
       
    51      */
       
    52     virtual TBool DoParseL( CESMRICalRuleSegment& aSegment, TCalRRule& aRule );
       
    53     
       
    54     /**
       
    55      * Finalize the parsing
       
    56      * @param aRule recurrence rules
       
    57      * @param aStartTime The DTSTART of the parent component.
       
    58      * @return True if finalized parsing successfully
       
    59      */
       
    60     virtual TBool FinalizeParsingL( TCalRRule& aRule, const TCalTime& aStartTime );
       
    61     };
       
    62 
       
    63 #endif  // CAgnParseRRuleDaily_H