calendarui/multicaluidialog/inc/multicaluidialog.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2  * Copyright (c) 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 : Multiple calendar's list dialog listing all the available calendars.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CMultiCalUiDialog_H_
       
    19 #define CMultiCalUiDialog_H_
       
    20 
       
    21 //System include
       
    22 #include <e32base.h>
       
    23 
       
    24 //Forword declare
       
    25 class CMultiCalUiDialogImpl;
       
    26 class CCalEntry;
       
    27 class CCalUiDialogImpl;
       
    28 
       
    29 NONSHARABLE_CLASS(CMultiCalUiDialog) : public CBase
       
    30     {
       
    31     public:
       
    32         /**
       
    33          * 1st phase constructor pushes pointer on the cleanup stack
       
    34          * @return CCalenMultiDbUtility* A pointer to CCalenMultiDbUtility
       
    35          * * @param aLaunchedFromCal indicated if the dialog is 
       
    36          * launched from cal application 
       
    37          */
       
    38         IMPORT_C static CMultiCalUiDialog* NewL(const RPointerArray<CCalEntry>& aCalEntries,
       
    39                 TBool aLaunchedFromCal = EFalse );
       
    40 
       
    41         /**
       
    42          * 1st phase constructor pushes pointer on the cleanup stack
       
    43          * @return CCalenMultiDbUtility* A pointer to CCalenMultiDbUtility
       
    44          * @param aLaunchedFromCal indicated if the dialog is 
       
    45          * launched from cal application
       
    46          */
       
    47         IMPORT_C static CMultiCalUiDialog* NewLC(const RPointerArray<CCalEntry>& aCalEntries,
       
    48                 TBool aLaunchedFromCal = EFalse );
       
    49 
       
    50          /**
       
    51          * Destructor.
       
    52          */
       
    53         ~CMultiCalUiDialog();
       
    54 		
       
    55         /**
       
    56          * @brief Calls the dialog's ExecuteLD to launch the list of all available calendars         
       
    57          * @return TInt
       
    58          *  
       
    59          */        
       
    60         IMPORT_C TInt LaunchL();        
       
    61         
       
    62         
       
    63 
       
    64     private:
       
    65 
       
    66         /*
       
    67          * Class constructor
       
    68          */
       
    69         CMultiCalUiDialog( TBool aLaunchedFromCal );
       
    70 
       
    71         /*
       
    72          * Second phase constructor
       
    73          */
       
    74         void ConstructL(const RPointerArray<CCalEntry>& aCalEntries );
       
    75 
       
    76     private: // data
       
    77 
       
    78         /**
       
    79          * actaul implementation object pointer of CMultiCalUiDialogImpl.
       
    80          */
       
    81         CMultiCalUiDialogImpl* iMultiCalDialogImpl;
       
    82         CCalUiDialogImpl* iCalDialogImpl;
       
    83         TBool iLaunchedFromCal;
       
    84     };
       
    85 
       
    86 #endif  //CMultiCalUiDialog_H_