meetingui/meetingrequestviewers/inc/MMRModelInterface.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:   Interface for meeting request models
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MMRMODELINTERFACE_H
       
    22 #define MMRMODELINTERFACE_H
       
    23 
       
    24 //INCLUDES
       
    25 #include<e32std.h>
       
    26 #include <calentry.h>
       
    27 
       
    28 //FORWARD DECLARATIONS
       
    29 
       
    30 class MMRDataFillerInterface;
       
    31 class CRichBio;
       
    32 class MMRInfoPopup;
       
    33 
       
    34 /**
       
    35 *  Mixin interface for OMR models
       
    36 *
       
    37 *  @since Series S60 3.0
       
    38 */
       
    39 class MMRModelInterface
       
    40     {
       
    41     public: // Data types
       
    42     
       
    43         enum TClosingStatus
       
    44             {
       
    45             ENone,
       
    46             ENotResponded,
       
    47             ENotSaved,
       
    48             ENotSentNew,
       
    49             ENotSentUpdate
       
    50             };
       
    51             
       
    52         /**
       
    53         * Editing mode, mainly needed to separate between edit instance
       
    54         * or edit series. Editing mode is set only once, implicitely by
       
    55         * MR Viewer logic or explicitely by the user, depending on entry data.
       
    56         */
       
    57         enum TEditingMode
       
    58             {
       
    59             EModeNotSet,
       
    60             EEditInstance,
       
    61             EEditMeeting,
       
    62             EViewOnly
       
    63             };            
       
    64     
       
    65     public: // Constructors and destructors
       
    66 
       
    67 		/**
       
    68 		* Public virtual destructor for allowing deletion through the interface.
       
    69 		*/
       
    70         virtual ~MMRModelInterface() {};
       
    71 
       
    72     public: // New functions
       
    73 
       
    74         virtual CCalEntry* CombinedEntry() = 0;
       
    75         
       
    76     	/**
       
    77     	* Refresh combined entry to reflect latest database changes.
       
    78     	*/        
       
    79         virtual void RefreshViewableEntryL() = 0;
       
    80 
       
    81 		virtual CCalEntry::TMethod MethodL() = 0;
       
    82 
       
    83 		virtual TClosingStatus ClosingStatusL() = 0;
       
    84 
       
    85 		virtual MMRDataFillerInterface* DataFillerL( CRichBio* aRichBio ) = 0;
       
    86 		
       
    87 		virtual MMRInfoPopup* CreateInfoPopupL() = 0;
       
    88 
       
    89         virtual TBool IsCmdAvailable( TInt aCommandId ) = 0;        
       
    90 
       
    91 		virtual HBufC* MailboxOpeningNoteL() = 0;
       
    92 		
       
    93     	/**
       
    94     	* Get edit mode.
       
    95     	* @return edit mode
       
    96     	*/	    	
       
    97     	virtual TEditingMode EditingMode() const = 0;
       
    98     	
       
    99     	/**
       
   100     	* Setting of editing mode is allowed only once.
       
   101     	* @param aEditMode
       
   102     	*/
       
   103     	virtual void SetEditingModeL( TEditingMode aEditMode ) = 0;
       
   104 		
       
   105 		virtual void SetEntryEdited() = 0;
       
   106 		
       
   107 		virtual TBool IsEntryEdited() = 0;
       
   108 		
       
   109 		virtual TBool MailHeadersAvailable() = 0;
       
   110 		
       
   111 		virtual HBufC* MailHeaderFromFieldLC() = 0;
       
   112 		
       
   113 		virtual	HBufC* MailHeaderSubjectFieldLC() = 0;
       
   114     };
       
   115 
       
   116 #endif      // MMRMODELINTERFACE_H
       
   117 
       
   118 // End of File