meetingrequest/mrgui/inc/cesmrresponsedialog.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
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 viewer dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRRESPONSEDIALOG_H
       
    20 #define CESMRRESPONSEDIALOG_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <AknDialog.h>
       
    24 #include <akntoolbarobserver.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CAknsBasicBackgroundControlContext;
       
    28 class CESMRResponseDialogView;
       
    29 class TLogicalFont;
       
    30 
       
    31 /**
       
    32  *  CESMRResponseDialog implements the response dialog for meeting requests.
       
    33  *
       
    34  *  @lib esmrgui.lib
       
    35  */
       
    36 NONSHARABLE_CLASS( CESMRResponseDialog ) : public CAknDialog,
       
    37                                            public MAknToolbarObserver
       
    38     {
       
    39 public:
       
    40     /**
       
    41      * Two-phased constructor.
       
    42      * @param aText reference pointer to the text that user writes as a response
       
    43      */
       
    44     IMPORT_C static CESMRResponseDialog* NewL( HBufC*& aText );
       
    45 
       
    46     /*
       
    47      * Destructor.
       
    48      */
       
    49     ~CESMRResponseDialog();
       
    50 
       
    51 public:// From CAknDialog
       
    52     SEikControlInfo CreateCustomControlL( TInt aType );
       
    53     TBool OkToExitL (TInt aButtonId);
       
    54     void ProcessCommandL( TInt aCommand );
       
    55     void DynInitMenuPaneL( /*TInt aResourceId,*/ 
       
    56     		CEikMenuPane* aMenuPane );
       
    57 
       
    58 public: // From MAknToolbarObserver
       
    59         virtual void OfferToolbarEventL( TInt aCommand );
       
    60 
       
    61 public:// From CCoeControl
       
    62     TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType);
       
    63     IMPORT_C TInt ExecuteDlgLD();
       
    64 
       
    65 private://Implementation
       
    66     CESMRResponseDialog( HBufC*& aText );
       
    67     void ConstructL();
       
    68     void MakeResponseToolbarL();
       
    69     void RestoreMrGuiToolbarL();
       
    70 
       
    71 private: // data
       
    72     /**
       
    73     * Ref: View for dialog, deletion handed by framework
       
    74     */
       
    75     CESMRResponseDialogView* iView;
       
    76 
       
    77     /**
       
    78     * Ref: Pointer to buffer where the text is written
       
    79     */
       
    80     HBufC*& iText;
       
    81 
       
    82     /**
       
    83     * Pointer to previous toolbar observer. Not owned
       
    84     */
       
    85     MAknToolbarObserver* iOldObserver;
       
    86     };
       
    87 
       
    88 #endif // CESMRRESPONSEDIALOG_H