meetingrequest/mragnversit2/src/cesmragnparserruledaily.cpp
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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: This file implements class CESMRAgnParseRRuleDaily.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "emailtrace.h"
       
    20 #include "cesmragnparserruledaily.h"
       
    21 
       
    22 //<cmail>
       
    23 //</cmail>
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CESMRAgnParseRRuleDaily::CESMRAgnParseRRuleDaily
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CESMRAgnParseRRuleDaily::CESMRAgnParseRRuleDaily( MESMRAgnImpUtil& aAgnImpUtil ):
       
    32                         CESMRAgnParseRRule( aAgnImpUtil )
       
    33     {
       
    34     FUNC_LOG;
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // CESMRAgnParseRRuleDaily::~CESMRAgnParseRRuleDaily
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 CESMRAgnParseRRuleDaily::~CESMRAgnParseRRuleDaily()
       
    42     {
       
    43     FUNC_LOG;
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // CESMRAgnParseRRuleDaily::NewLC
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 CESMRAgnParseRRule* CESMRAgnParseRRuleDaily::NewLC( MESMRAgnImpUtil& aAgnImpUtil )
       
    51     {
       
    52     FUNC_LOG;
       
    53 
       
    54     CESMRAgnParseRRule *self = new (ELeave) CESMRAgnParseRRuleDaily( aAgnImpUtil );
       
    55     CleanupStack::PushL( self );
       
    56 
       
    57     return self;
       
    58     }
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // CESMRAgnParseRRuleDaily::DoParseL
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 TBool CESMRAgnParseRRuleDaily::DoParseL( CESMRICalRuleSegment& aSegment, TCalRRule& /*aRule*/ )
       
    65     {
       
    66     FUNC_LOG;
       
    67 
       
    68     TBool parsed;
       
    69 
       
    70     switch( aSegment.Type() )
       
    71         {
       
    72         default:
       
    73             {
       
    74             parsed = EFalse;
       
    75             }
       
    76         }
       
    77 
       
    78     return parsed;
       
    79     }
       
    80 
       
    81 // ---------------------------------------------------------------------------
       
    82 // CESMRAgnParseRRuleDaily::FinalizeParsingL
       
    83 // ---------------------------------------------------------------------------
       
    84 //
       
    85 TBool CESMRAgnParseRRuleDaily::FinalizeParsingL( TCalRRule& aRule, const TCalTime& aStartTime )
       
    86     {
       
    87     FUNC_LOG;
       
    88 
       
    89     //Call the parent, to set some common values
       
    90     TBool finalized = CESMRAgnParseRRule::FinalizeParsingL( aRule, aStartTime );
       
    91 
       
    92     return finalized;
       
    93     }
       
    94