meetingrequest/mricalviewer/inc/cesmrinforecurrencehandler.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-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:  ESMR mrinfo recurrence handler definition
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRINFORECURRENCEHANDLER_H
       
    20 #define CESMRINFORECURRENCEHANDLER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 //<cmail>
       
    24 #include "esmrdef.h"
       
    25 //</cmail>
       
    26 
       
    27 class MMRInfoObject;
       
    28 class CCalEntry;
       
    29 class MRRecurrenceRule;
       
    30 
       
    31 /**
       
    32  * CESMRInfoRecurrenceHandler parses recurrence information from MRINFO
       
    33  * object and stores it to calendar entry object.
       
    34  */
       
    35 NONSHARABLE_CLASS( CESMRInfoRecurrenceHandler ) :
       
    36         public CBase
       
    37     {
       
    38 public: // Construction and destruction
       
    39 
       
    40     /**
       
    41      * Creates and initialzes new CESMRInfoRecurrenceHandler
       
    42      * object. Ownership is transferred to caller.
       
    43      *
       
    44      * @return Pointer to CESMRInfoRecurrenceHandler object.
       
    45      */
       
    46     static CESMRInfoRecurrenceHandler* NewL();
       
    47 
       
    48     /**
       
    49      * Creates and initialzes new CESMRInfoRecurrenceHandler
       
    50      * object. Ownership is transferred to caller. Created object is
       
    51      * left to cleaup stack.
       
    52      *
       
    53      * @return Pointer to CESMRInfoRecurrenceHandler object.
       
    54      */
       
    55     static CESMRInfoRecurrenceHandler* NewLC();
       
    56 
       
    57     /**
       
    58      * C++ destructor.
       
    59      */
       
    60     ~CESMRInfoRecurrenceHandler();
       
    61 
       
    62 public: // Interface
       
    63 
       
    64     /**
       
    65      * Parser recurrence information MRINFO object and stores it to
       
    66      * calendar entry object.
       
    67      *
       
    68      * @param aCalEntry Reference to calendar entry.
       
    69      * @param aInfoObject Reference to mrinfo object
       
    70      * @see TESMRInputParams
       
    71      */
       
    72     void ParseRecurrenceInforationL(
       
    73             CCalEntry& aCalEntry,
       
    74             const MMRInfoObject& aInfoObject );
       
    75 
       
    76 private: // Implemenation
       
    77     CESMRInfoRecurrenceHandler();
       
    78     void ConstructL();
       
    79 
       
    80     void GetRecurrenceL(
       
    81             CCalEntry& aCalEntry,
       
    82             const MMRInfoObject& aInfoObject );
       
    83 
       
    84     void HandleDailyRecurrenceL(
       
    85             CCalEntry& aCalEntry,
       
    86             const MMRInfoObject& aInfoObject );
       
    87 
       
    88     void HandleWeeklyRecurrenceL(
       
    89             CCalEntry& aCalEntry,
       
    90             const MMRInfoObject& aInfoObject );
       
    91 
       
    92     void HandleMonthlyRecurrenceL(
       
    93             CCalEntry& aCalEntry,
       
    94             const MMRInfoObject& aInfoObject );
       
    95 
       
    96     void HandleYearlyRecurrenceL(
       
    97             CCalEntry& aCalEntry,
       
    98             const MMRInfoObject& aInfoObject );
       
    99 
       
   100 private: // Data
       
   101 
       
   102     };
       
   103 
       
   104 #endif 
       
   105 
       
   106 // EOF