email/mail/EditorSrc/mmsgmailappuiopdelegate.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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:  
       
    15 * 			Interface class for delegating tasks from CMsgMailBaseOp subclasses.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MMSGMAILOPDELEGATE_H
       
    22 #define MMSGMAILOPDELEGATE_H
       
    23 
       
    24 #include <msvapi.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CMsgBodyControl;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * Interface class for delegating tasks from CMsgMailBaseOp subclasses.
       
    33 * This class is mainly needed since there exists tight coupling between
       
    34 * operations and UI classes that cannot be completely loosen at the moment,
       
    35 * this class allows us to delegate the difficult operation steps to another
       
    36 * class (in practice to CMsgMailAppEditorUi). Due to simplicity delegation of
       
    37 * all subclasses is concentrated to this one interface.
       
    38 *  
       
    39 */
       
    40 NONSHARABLE_CLASS( MMsgMailAppUiOpDelegate )
       
    41     {
       
    42     public:  // destructor        
       
    43     
       
    44     // send message -related:
       
    45     
       
    46         /**
       
    47         * Method for saving a message.
       
    48         */
       
    49         virtual void DelegateSaveMsgL() = 0;
       
    50         
       
    51         /**
       
    52         * Method for moving message to outbox.
       
    53         * @return new message id of the entry
       
    54         */
       
    55         virtual TMsvId DelegateMoveMsgToOutboxL() = 0;
       
    56                 
       
    57     // launch view -related:
       
    58 
       
    59         /**
       
    60         * Method for initiating view launch.
       
    61         */
       
    62         virtual CMsgBodyControl& DelegateInitLaunchL() = 0;
       
    63 
       
    64         /**
       
    65         * Method for executing view.
       
    66         */
       
    67         virtual void DelegateExecuteViewL() = 0;
       
    68         
       
    69         /**
       
    70         * Method for finalizing view after it has been launched.
       
    71         */
       
    72         virtual void DelegateFinalizeLaunchL() = 0;
       
    73     };
       
    74 
       
    75 #endif      // MMSGMAILOPDELEGATE_H
       
    76 
       
    77 // End of File