meetingrequest/mricalviewer/inc/mesmricalviewercommand.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c)  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 definition for esmricalviewer command
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MESMRICALVIEWERCOMMAND_H
       
    19 #define MESMRICALVIEWERCOMMAND_H
       
    20 
       
    21 //<cmail>
       
    22 #include "esmricalvieweropcodes.hrh"
       
    23 //</cmail>
       
    24 
       
    25 class CFSMailMessage;
       
    26 class MESMRIcalViewerObserver;
       
    27 
       
    28 /**
       
    29  *  MESMRIcalViewerCommand defines the interface for smricalviewer commands.
       
    30  */
       
    31 class MESMRIcalViewerCommand
       
    32     {
       
    33 public: // Destruction
       
    34     /**
       
    35      * Virtual destructor
       
    36      */
       
    37     virtual ~MESMRIcalViewerCommand() {}
       
    38 
       
    39 public: // Interface
       
    40 
       
    41     /**
       
    42      * Returns command operation type
       
    43      */
       
    44     virtual TESMRIcalViewerOperationType OperationType() const = 0;
       
    45 
       
    46     /**
       
    47      *  Executes the command. Leaves with system wide error code on error.
       
    48      */
       
    49     virtual void ExecuteCommandL(
       
    50             CFSMailMessage& aMessage,
       
    51             MESMRIcalViewerObserver& aObserver ) = 0;
       
    52 
       
    53     /**
       
    54      * Cancel command execution.
       
    55      */
       
    56     virtual void CancelCommand() = 0;
       
    57     };
       
    58 
       
    59 #endif // MESMRICALVIEWERCOMMAND_H
       
    60 
       
    61 // EOF
       
    62