meetingui/meetingrequestviewers/inc/CMRRequestModel.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:   Model for method REQUEST
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CMRREQUESTMODEL_H
       
    22 #define CMRREQUESTMODEL_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 // base functionality for models
       
    27 #include "CMRModelBase.h"
       
    28 
       
    29 
       
    30 //FORWARD DECLARATIONS
       
    31 class CCalEntry;
       
    32 class CMRMailboxUtils;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  Implementation for REQUEST model
       
    38 *
       
    39 *  @since Series S60 3.0
       
    40 */
       
    41 class CMRRequestModel : public CMRModelBase
       
    42     {    
       
    43     public:  // Constructors and destructor
       
    44 
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         */
       
    48         static CMRRequestModel* NewL(
       
    49             RPointerArray<CCalEntry>& aEntries,
       
    50             CMRMailboxUtils& aMRMailboxUtils,
       
    51             CMRUtilsInternal& aMRUtils,
       
    52             const MAgnEntryUi::TAgnEntryUiInParams& aInParams );
       
    53 
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         virtual ~CMRRequestModel();
       
    58 
       
    59 	private:
       
    60         /**
       
    61 		* C++ default constructor.
       
    62 		*/
       
    63         CMRRequestModel( CMRMailboxUtils& aMRMailboxUtils,
       
    64                          CMRUtilsInternal& aMRUtils,
       
    65                          const MAgnEntryUi::TAgnEntryUiInParams& aInParams );
       
    66 
       
    67     protected: //  Methods from base classes
       
    68 
       
    69 		TClosingStatus ClosingStatusL();
       
    70 
       
    71     	MMRDataFillerInterface* DataFillerL( CRichBio* aRichBio );
       
    72     	
       
    73     	TBool IsCmdAvailableL( TInt aCommandId );
       
    74     			
       
    75     protected: // New functions
       
    76 
       
    77         TBool CanSendL();  
       
    78         
       
    79         TBool CanSendUpdateL();
       
    80         
       
    81         TBool CanCancelMRL();
       
    82         
       
    83         TBool CanDeleteMRL();
       
    84 		
       
    85 		TBool CanRespondL( TInt aCommandId );
       
    86         
       
    87         TBool CanReplyToOrganiserL();
       
    88         
       
    89         TBool CanReplyToSenderL();
       
    90         
       
    91         TBool CanReplyToAllL();
       
    92 		
       
    93 		TBool CanForwardL();
       
    94             	
       
    95     protected:
       
    96 
       
    97         /**
       
    98         * By default Symbian 2nd phase constructor is private.
       
    99         */
       
   100         void ConstructL( RPointerArray<CCalEntry>& aEntries );
       
   101 	
       
   102     };
       
   103 
       
   104 #endif      // CMRREQUESTMODEL_H
       
   105 
       
   106 // End of File