meetingui/meetingrequestviewers/inc/CMRDialogBase.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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: Implementation for meeting request dialog base
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CMRDIALOGBASE_H
       
    22 #define CMRDIALOGBASE_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 #include <aknform.h>            // for CAknDialog
       
    27 #include <e32std.h>
       
    28 #include <MAgnEntryUI.h>
       
    29 #include <meetingrequestviewersuires.rsg>
       
    30 #include <avkon.hrh>
       
    31 #include "MMRModelInterface.h" //MR model interface
       
    32 
       
    33 //FORWARD DECLARATIONS
       
    34 
       
    35 class MAgnEntryUiCallback;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *  Base dialog for all meeting request views
       
    41 *
       
    42 *  @since Series S60 3.0
       
    43 */
       
    44 class CMRDialogBase : 	public CAknDialog	
       
    45     {
       
    46     protected: // Constructors and destructor
       
    47     
       
    48         CMRDialogBase( MAgnEntryUiCallback& aHandlerCallback );
       
    49 
       
    50         virtual ~CMRDialogBase();
       
    51 
       
    52     public: //  new functions
       
    53     
       
    54     	/**
       
    55     	* Specific dialogs implement their own ExecuteLD
       
    56     	*/
       
    57     	virtual	TInt ExecuteLD();
       
    58     	
       
    59     	void SetModel( MMRModelInterface& aMRModel );
       
    60     	
       
    61     	virtual void RefreshData() = 0;
       
    62     	    	
       
    63     protected: // internal API
       
    64     
       
    65         /**
       
    66         * Template method for subclass-specific handling of
       
    67         * setting model.
       
    68         */
       
    69         virtual void HandleSetModelL();    
       
    70         
       
    71         /**
       
    72         * Specifies whether given command causes dialog exiting.
       
    73         * @param aCommandId command to evaluate
       
    74         */
       
    75         TBool IsDlgExitingCmd( TInt aCommandId );       
       
    76 
       
    77         /**
       
    78         * Template method which allows subclasses to handle
       
    79         * dialog exiting and instruct whether an exiting action
       
    80         * is needed. Note that EEikCmdCanceled (== 0) is used when
       
    81         * no exiting action is needed.
       
    82         * @param aCommandId command which causes dialog exiting
       
    83         * @return exiting action
       
    84         */
       
    85         virtual TInt HandleDlgExitingL( TInt aCommandId ) = 0;
       
    86         
       
    87     protected: // from CAknDialog
       
    88     
       
    89         void ProcessCommandL( TInt aCommandId );    	
       
    90         
       
    91         TBool OkToExitL( TInt aButtonId );
       
    92 
       
    93     protected: //data
       
    94 
       
    95         // not own
       
    96 		MMRModelInterface* iMRModel;
       
    97 		
       
    98 		MAgnEntryUiCallback& iHandlerCallback;
       
    99     };
       
   100 
       
   101 #endif      // CMRDIALOGBASE_H
       
   102 
       
   103 // End of File