meetingrequest/mricalviewer/inc/mesmricalviewercallback.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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 callback
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MESMRICALVIEWERCALLBACK_H
       
    20 #define MESMRICALVIEWERCALLBACK_H
       
    21 
       
    22 // INCLUDES
       
    23 //<cmail>
       
    24 #include "esmricalvieweropcodes.hrh"   // tesmricalvieweroperationtype
       
    25 //</cmail>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CFSMailMessage;
       
    29 class MESMRIcalViewerObserver;
       
    30 
       
    31 // CLASS DECLARATIONS
       
    32 /**
       
    33  * MESMRIcalViewerCallback implements callback interface
       
    34  * for esmricalviewer.
       
    35  */
       
    36 class MESMRIcalViewerCallback
       
    37     {
       
    38     public:
       
    39         /**
       
    40          * Virtual destructor
       
    41          */
       
    42         virtual ~MESMRIcalViewerCallback() { }
       
    43 
       
    44     public: // Interface
       
    45         /**
       
    46          * Processes given command asynchronously.
       
    47          * @param aCommandId Command to be processed.
       
    48          * @param aMessage Reference to mail message.
       
    49          * @param aObserver Observer for asynchronous operations
       
    50          * @exception KErrNotSupported if the command is not supported
       
    51          */
       
    52         virtual void ProcessAsyncCommandL(
       
    53                 TESMRIcalViewerOperationType aCommandId,
       
    54                 const CFSMailMessage& aMessage,
       
    55                 MESMRIcalViewerObserver* aObserver = NULL ) = 0;
       
    56 
       
    57         /**
       
    58          * Processes given command synchronously.
       
    59          * @param aCommandId Command to be processed.
       
    60          * @param aMessage Reference to mail message.
       
    61          * @exception KErrNotSupported if the command is not supported
       
    62          */
       
    63         virtual void ProcessSyncCommandL(
       
    64                 TESMRIcalViewerOperationType aCommandId,
       
    65                 const CFSMailMessage& aMessage ) = 0;
       
    66 
       
    67         /**
       
    68          * Tests if callback can process command.
       
    69          * @param aCommandId Command to be processed.
       
    70          * @return ETrue if callback can process command.
       
    71          */
       
    72         virtual TBool CanProcessCommand(
       
    73                 TESMRIcalViewerOperationType aCommandId ) const = 0;
       
    74 
       
    75         /**
       
    76         * Returns an extension point for this interface or NULL.
       
    77         * @param aExtensionUid Uid of extension.
       
    78         * @return Extension point or NULL.
       
    79         */
       
    80         virtual TAny* MRIcalViewerCallbackExtension(
       
    81               TUid /*aExtensionUid*/) { return NULL; }
       
    82     };
       
    83 
       
    84 #endif // MESMRICALVIEWERCALLBACK_H
       
    85 
       
    86 // EOF