mmappcomponents/harvester/server/inc/mpxharvesterengineobserver.h
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Engine observer used by each session to complete events
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_MPXHARVESTERENGINEOBSERVER_H
       
    20 #define M_MPXHARVESTERENGINEOBSERVER_H
       
    21 
       
    22 #include "mpxhvsmsg.h"
       
    23 
       
    24 class CMPXMedia;
       
    25 
       
    26 /**
       
    27  *  Harvester Engine observer
       
    28  *
       
    29  *  Each session could have async requests, 
       
    30  *  this class allows the engine to callback to a particular session
       
    31  *
       
    32  *  @lib mpxharvesterserver.exe
       
    33  */
       
    34 class MMPXHarvesterEngineObserver 
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     /**
       
    40     * Handles the completion of an import event
       
    41     * @param aMedia media object to return to the client
       
    42     * @param aErr 
       
    43     * @param aMsg message to complete
       
    44     */
       
    45     virtual void HandleImportCompleteL( CMPXMedia* aMedia, 
       
    46                                         TInt aErr,
       
    47                                         RHvsMsg* aMsg ) = 0;
       
    48     
       
    49     /**
       
    50     * Handles the completion of an export event
       
    51     * @param aMedia media object to return to the client
       
    52     * @param aErr error code for the operation
       
    53     * @param aMsg message to complete
       
    54     */
       
    55     virtual void HandleExportCompleteL( CMPXMedia* aMedia, 
       
    56                                         TInt aErr,
       
    57                                         RHvsMsg* aMsg ) = 0;
       
    58         
       
    59     /**
       
    60     * Complete the async request, no need for packaging any returns
       
    61     * @param aMsg message to complete
       
    62     * @param aErr error code to complete the operation
       
    63     */
       
    64     virtual void CompleteTask( RHvsMsg* aMsg, TInt aErr ) = 0;
       
    65     };
       
    66 
       
    67 
       
    68 #endif // M_MPXHARVESTERENGINEOBSERVER_H