epoc32/include/app/caleninterimutils2.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@2
     5
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2
     6
* which accompanies this distribution, and is available
williamr@2
     7
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:  
williamr@2
    15
*             This class contains utility methods related to usage of 
williamr@2
    16
*             Calendar Interim API.
williamr@2
    17
*
williamr@2
    18
*/
williamr@2
    19
williamr@2
    20
williamr@2
    21
williamr@2
    22
#ifndef __CALENINTERIMUTILS2_H__
williamr@2
    23
#define __CALENINTERIMUTILS2_H__
williamr@2
    24
williamr@2
    25
//  INCLUDES
williamr@2
    26
#include <e32base.h>
williamr@2
    27
#include <calcommon.h>
williamr@2
    28
williamr@2
    29
// FORWARD DECLARATIONS
williamr@2
    30
class CCalEntry;
williamr@2
    31
class CCalEntryView;
williamr@2
    32
class CCalenInterimUtils2Impl;
williamr@2
    33
williamr@2
    34
// CLASS DECLARATION
williamr@2
    35
williamr@2
    36
/**
williamr@2
    37
* This class contains utility methods related to usage of
williamr@2
    38
* Calendar Interim API
williamr@2
    39
*/
williamr@2
    40
NONSHARABLE_CLASS(CCalenInterimUtils2) : public CBase
williamr@2
    41
    {
williamr@2
    42
    public: // Construction/destruction
williamr@2
    43
        /**
williamr@2
    44
         * Create a new instance of CalenInterimUtils2
williamr@2
    45
         */
williamr@2
    46
        IMPORT_C static CCalenInterimUtils2* NewL();
williamr@2
    47
williamr@2
    48
        /**
williamr@2
    49
         * Destructor
williamr@2
    50
         */
williamr@2
    51
        IMPORT_C ~CCalenInterimUtils2();
williamr@2
    52
williamr@2
    53
    public: // New functions
williamr@2
    54
        /**
williamr@2
    55
         * Allocates and returns a new global UID.
williamr@2
    56
         * @return UID, ownership is transferred to caller
williamr@2
    57
         */
williamr@2
    58
        IMPORT_C HBufC8* GlobalUidL();
williamr@2
    59
williamr@2
    60
        /**
williamr@2
    61
         * Populates empty fields of a child entry with data from
williamr@2
    62
         * the parent entry.
williamr@2
    63
         * @param aChild child (modifying) entry to be populated
williamr@2
    64
         * @param aParent parent (originating) entry
williamr@2
    65
         */
williamr@2
    66
        IMPORT_C static void PopulateChildFromParentL( CCalEntry& aChild,
williamr@2
    67
                                                const CCalEntry& aParent );
williamr@2
    68
williamr@2
    69
        /**
williamr@2
    70
         * Checks to see if Meeting Request Viewer functionality
williamr@2
    71
         * is enabled and is available to use
williamr@2
    72
         * @return current state of MR Viewers implementation
williamr@2
    73
         */
williamr@2
    74
        IMPORT_C TBool MRViewersEnabledL(TBool aForceCheck = EFalse);
williamr@2
    75
williamr@2
    76
        /**
williamr@2
    77
         * This function is a wrapper around CCalEntryView::StoreL() and CCalEntryView::UpdateL().
williamr@2
    78
         * The function makes the appropriate call to either of those functions, depending on several
williamr@2
    79
         * factors, such as whether the entry is a child or parent, and whether it has exceptions or not.
williamr@2
    80
         * If aCopyToChildren is set to ETrue, extra logic is applied as follows:
williamr@2
    81
         * For each exception, for each field, if the field is NOT the reason for the
williamr@2
    82
         * entry being an exception, copy the new parent's field across to the exception.
williamr@2
    83
         * @param aEntryView view of the entries
williamr@2
    84
         * @param aEntry entry to be stored
williamr@2
    85
         * @param aCopyToChildren whether the extra logic regarding exception data should be run
williamr@2
    86
         */
williamr@2
    87
        IMPORT_C static void StoreL( CCalEntryView& aEntryView,
williamr@2
    88
                                     CCalEntry& aEntry,
williamr@2
    89
                                     TBool aCopyToChildren = EFalse );
williamr@2
    90
williamr@2
    91
        /**
williamr@2
    92
         * Checks to see if the given entry has properties consistent with a meeting request.
williamr@2
    93
         * @param aEntry Entry to test
williamr@2
    94
         * @return ETrue if the entry is a meeting request, EFalse otherwise
williamr@2
    95
         */
williamr@2
    96
        IMPORT_C static TBool IsMeetingRequestL( CCalEntry& aEntry );
williamr@2
    97
williamr@2
    98
    private: // Construction/destruction
williamr@2
    99
        void ConstructL();
williamr@2
   100
        CCalenInterimUtils2();
williamr@2
   101
williamr@2
   102
    private: // Member data
williamr@2
   103
        CCalenInterimUtils2Impl* iImpl;
williamr@2
   104
    };
williamr@2
   105
williamr@2
   106
#endif // __CALENINTERIMUTILS2_H__
williamr@2
   107
williamr@2
   108
// End of File