meetingui/meetingrequestutils/inc/CMREditBeforeSendingViewForm.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:   Form to edit meeting request description field
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CMREDITBEFORESENDINGVIEWFORM_H
       
    22 #define CMREDITBEFORESENDINGVIEWFORM_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <aknform.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CCalEntry;
       
    30 
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  Form to edit description of meeting request for response/cancel.
       
    36 *
       
    37 */
       
    38 class CEditBeforeSendingViewForm: public CAknForm
       
    39     {
       
    40     public: // Data types
       
    41     
       
    42         enum TMode
       
    43         	{
       
    44         	EEditResponse,
       
    45         	EEditCancellation
       
    46         	};
       
    47 	    
       
    48     public:     // Construct / destruct.
       
    49     
       
    50     	static CEditBeforeSendingViewForm* NewL( TMode aMode,
       
    51     	                                         const CCalEntry& aEntry,
       
    52     	                                         TDes& aText );
       
    53 
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         virtual ~CEditBeforeSendingViewForm();
       
    58     
       
    59     protected: // construction
       
    60     
       
    61     	/**
       
    62         * Constructor.
       
    63         */
       
    64         CEditBeforeSendingViewForm( TMode aMode,
       
    65                                     const CCalEntry& aEntry,
       
    66                                     TDes& aText );
       
    67     
       
    68     	/**
       
    69         * Second phase constructor. Leaves on failure.
       
    70         */
       
    71         void ConstructL();
       
    72 
       
    73     protected:  // From CAknForm
       
    74 
       
    75         /* From CEikDialog Handles button events and looks if the dialog
       
    76         *   can be closed.
       
    77         * @param aButtonId Id of the 'pressed' button
       
    78         *
       
    79         * @return   ETrue if it's OK to exit
       
    80         *           EFalse otherwise
       
    81         */
       
    82 		TBool OkToExitL( TInt aButtonId );
       
    83 
       
    84         /**
       
    85         * Pre-layout initialization.
       
    86         */
       
    87         void PreLayoutDynInitL();
       
    88 
       
    89         /**
       
    90         * Post-layout initialization.
       
    91         */
       
    92         void PostLayoutDynInitL();
       
    93 
       
    94         /**
       
    95         * Save data from the controls to the config.
       
    96         * @return ETrue on success.
       
    97         */
       
    98         TBool SaveFormDataL();
       
    99 
       
   100         /**
       
   101         * Fill the dialog controls with data from the config.
       
   102         */
       
   103         void LoadFormDataL();
       
   104 
       
   105         /**
       
   106         * From MEikMenuObserver Initializes items on the menu
       
   107         *
       
   108         * @param aMenuId    Current menu's resource Id
       
   109         * @param aMenuPane  Pointer to menupane
       
   110         */
       
   111         void DynInitMenuPaneL( TInt aMenuId, CEikMenuPane* aMenuPane );
       
   112 
       
   113 
       
   114         /**
       
   115         * DynInitMainMenuL Initializes items on the menu
       
   116         *
       
   117         * @param aMenuPane  Pointer to menupane
       
   118         */
       
   119         void DynInitMainMenuL( CEikMenuPane* aMenuPane );
       
   120         
       
   121         /**
       
   122         * ProcessCommandL User command handling
       
   123         *
       
   124         * @param aCommandId  Enum for handled command
       
   125         */
       
   126         void ProcessCommandL( TInt aCommandId );
       
   127         
       
   128     private:	// functions from base classes
       
   129     
       
   130     	/**
       
   131      	* From CCoeControl Gets help context
       
   132      	* @param aContext Help context
       
   133      	*/
       
   134     	void GetHelpContext( TCoeHelpContext& aContext ) const;	
       
   135 
       
   136     private:    // data
       
   137 
       
   138         TMode iMode;
       
   139 
       
   140         const CCalEntry& iEntry;
       
   141         
       
   142         TDes& iText;
       
   143         
       
   144         // own
       
   145         HBufC* iInvitedAttendees;
       
   146     };
       
   147 
       
   148 #endif //CMREDITBEFORESENDINGVIEWFORM_H
       
   149 
       
   150 // End of File