calendarengines/agnversit2/inc/AgnRRuleImporter.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2005 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 
       
    20 #ifndef AgnRRuleImporter_H
       
    21 #define AgnRRuleImporter_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 //System includes.
       
    26 #include <calentry.h>		// for CCalEntry
       
    27 
       
    28 //User includes
       
    29 #include "MAgnImpUtil.h"    // for MAgnImpUtil
       
    30 
       
    31 //Forward class declarations.
       
    32 class CICal;
       
    33 class CICalComponent;
       
    34 class CICalProperty;
       
    35 class CCalEntry;
       
    36 class CAgnParseRRule;
       
    37 
       
    38 //Class declaration
       
    39 class CAgnRRuleImporter : public CBase
       
    40     {
       
    41     public:
       
    42         static CAgnRRuleImporter* NewLC( MAgnImpUtil& aAgnImpUtil );
       
    43         static CAgnRRuleImporter* NewL( MAgnImpUtil& aAgnImpUtil );
       
    44     
       
    45         virtual ~CAgnRRuleImporter();
       
    46         
       
    47     private:
       
    48 	    CAgnRRuleImporter( MAgnImpUtil& aAgnErrorReporter );
       
    49 	    void ConstructL();
       
    50 	
       
    51 	private:
       
    52 	    CAgnParseRRule* CreateParserLC( const CICalRuleSegment::TFreq aFreq, TCalRRule& rule );
       
    53 	
       
    54 	public:
       
    55 	    TBool ImportL( const CICalProperty& aProperty, CCalEntry& aEntry, const TCalTime& aStartTime );
       
    56 	    MAgnImpUtil& iAgnImpUtil; 
       
    57 
       
    58     };
       
    59 
       
    60 #endif	// AgnRRuleImporter_H