meetingrequest/mrcommon/inc/esmrentryhelper.h
branchRCL_3
changeset 33 da5135c61bad
parent 0 8466d47a6819
child 24 b5fbb9b25d57
equal deleted inserted replaced
32:a3a1ae9acec6 33:da5135c61bad
    17 
    17 
    18 
    18 
    19 #ifndef MESMRENTRYHELPER_H
    19 #ifndef MESMRENTRYHELPER_H
    20 #define MESMRENTRYHELPER_H
    20 #define MESMRENTRYHELPER_H
    21 
    21 
       
    22 #include "esmrdef.h"
    22 #include <e32base.h>
    23 #include <e32base.h>
    23 #include <MAgnEntryUi.h>
    24 #include <magnentryui.h>
    24 
    25 
    25 class CCalEntry;
    26 class CCalEntry;
    26 class CCalAttendee;
    27 class CCalAttendee;
    27 class CMRMailboxUtils;
    28 class CMRMailboxUtils;
    28 
    29 
    81     * @return ETrue if meeting cancelled from user's point of view
    82     * @return ETrue if meeting cancelled from user's point of view
    82     */
    83     */
    83     IMPORT_C static TBool IsCancelledL(
    84     IMPORT_C static TBool IsCancelledL(
    84             const CCalEntry& aEntry,
    85             const CCalEntry& aEntry,
    85             CMRMailboxUtils& aUtils );
    86             CMRMailboxUtils& aUtils );
       
    87     
       
    88     /**
       
    89     * Checks if entry is all-day event.
       
    90     * @param aEntry
       
    91     * @return ETrue if meeting is all-day event
       
    92     */
       
    93     IMPORT_C static TBool IsAllDayEventL(
       
    94             const CCalEntry& aEntry );
    86 
    95 
    87     /**
    96     /**
    88     * Checks whether entry is out of date or not.
    97     * Checks whether entry is out of date or not.
    89     * @param aEntry entry to check
    98     * @param aEntry entry to check
    90     * @return ETrue if entry is outdated
    99     * @return ETrue if entry is outdated
   120     * @return ETrue if spans multiple days
   129     * @return ETrue if spans multiple days
   121     */
   130     */
   122     IMPORT_C static TBool SpansManyDaysL(
   131     IMPORT_C static TBool SpansManyDaysL(
   123             const TCalTime& aStartTime,
   132             const TCalTime& aStartTime,
   124             const TCalTime& aEndTime );
   133             const TCalTime& aEndTime );
       
   134     
       
   135     /**
       
   136      * Resolves the calendar entry type.
       
   137      * @param aCalEntry reference to calendar entry
       
   138      */
       
   139     IMPORT_C static TESMRCalendarEventType EventTypeL(
       
   140             const CCalEntry& aCalEntry );
       
   141     
       
   142     /**
       
   143      * Sets child entry's start and end time.
       
   144      *
       
   145      * @param aChild Reference to child entry
       
   146      * @param aParent Reference to parent entry
       
   147      * @param aChildEnd Child entry's start time
       
   148      */
       
   149     IMPORT_C static void SetInstanceStartAndEndL(
       
   150             CCalEntry& aChild,
       
   151             const CCalEntry& aParent,
       
   152             const TCalTime& aChildStart );
       
   153 
       
   154     /**
       
   155      * Checks and adjust repeat until validity. Method adjusts entry's
       
   156      * recurrence until time if needed.
       
   157      * @param aEntry Reference to parent entry
       
   158      * @param aInstanceTime Reference to instances time
       
   159      */
       
   160     IMPORT_C static void CheckRepeatUntilValidityL(
       
   161             CCalEntry& aEntry,
       
   162             const TCalTime& aInstanceTime );    
   125     };
   163     };
   126 
   164 
   127 #endif      // MESMRENTRYHELPER_H
   165 #endif      // MESMRENTRYHELPER_H