CCalenInterimUtils2 Class Reference

#include <app/CalenInterimUtils2.h>

Link against: caleninterimutils2.lib

class CCalenInterimUtils2 : public CBase

Inherits from

  • CCalenInterimUtils2

    Detailed Description

    This class contains utility methods related to usage of Calendar Interim API

    Constructor & Destructor Documentation

    ~CCalenInterimUtils2 ( )

    IMPORT_C~CCalenInterimUtils2()

    Destructor

    Member Function Documentation

    GlobalUidL ( )

    IMPORT_C HBufC8 *GlobalUidL()

    Allocates and returns a new global UID.

    Returns: UID, ownership is transferred to caller

    IsMeetingRequestL ( CCalEntry & )

    IMPORT_C TBoolIsMeetingRequestL(CCalEntry &aEntry)[static]

    Checks to see if the given entry has properties consistent with a meeting request.

    ParameterDescription
    aEntryEntry to test

    Returns: ETrue if the entry is a meeting request, EFalse otherwise

    MRViewersEnabledL ( TBool )

    IMPORT_C TBoolMRViewersEnabledL(TBoolaForceCheck = EFalse)

    Checks to see if Meeting Request Viewer functionality is enabled and is available to use

    ParameterDescription
    aForceCheckis by default EFalse and ETrue only when it is absolutely needed as it has performance overhead.

    Returns: current state of MR Viewers implementation

    NewL ( )

    IMPORT_C CCalenInterimUtils2 *NewL()[static]

    Create a new instance of CalenInterimUtils2

    PopulateChildFromParentL ( CCalEntry &, const CCalEntry & )

    IMPORT_C voidPopulateChildFromParentL(CCalEntry &aChild,
    const CCalEntry &aParent
    )[static]

    Populates empty fields of a child entry with data from the parent entry.

    ParameterDescription
    aChildchild (modifying) entry to be populated
    aParentparent (originating) entry

    StoreL ( CCalEntryView &, CCalEntry &, TBool )

    IMPORT_C voidStoreL(CCalEntryView &aEntryView,
    CCalEntry &aEntry,
    TBoolaCopyToChildren = EFalse
    )[static]

    This function is a wrapper around CCalEntryView::StoreL() and CCalEntryView::UpdateL(). The function makes the appropriate call to either of those functions, depending on several factors, such as whether the entry is a child or parent, and whether it has exceptions or not. If aCopyToChildren is set to ETrue, extra logic is applied as follows: For each exception, for each field, if the field is NOT the reason for the entry being an exception, copy the new parent's field across to the exception.

    ParameterDescription
    aEntryViewview of the entries
    aEntryentry to be stored
    aCopyToChildrenwhether the extra logic regarding exception data should be run