ncdengine/inc/ncdserverreportoperationobserver.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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:   Observer interface definition for download operations
       
    15 *
       
    16 */
       
    17 	
       
    18 
       
    19 #ifndef M_NCD_SERVER_REPORT_OPERATION_OBSERVER_H
       
    20 #define M_NCD_SERVER_REPORT_OPERATION_OBSERVER_H
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 class TNcdProgress;
       
    25 class MNcdServerReportOperation;
       
    26 class MNcdQuery;
       
    27 
       
    28 /**
       
    29  *  Observer interface for server report operations.
       
    30  *
       
    31  * 
       
    32  */
       
    33 class MNcdServerReportOperationObserver
       
    34     {
       
    35     
       
    36 public:
       
    37 
       
    38     /**
       
    39      * Called when the operation has progressed.
       
    40      *
       
    41      * 
       
    42      * @param aOperation The operation that sent the event.
       
    43      * @param aProgress Progress of the operation.
       
    44      */
       
    45     virtual void ReportProgress( MNcdServerReportOperation& aOperation,
       
    46                                  TNcdProgress aProgress ) = 0;
       
    47         
       
    48     /**
       
    49      * Called when a query has been received for an operation.
       
    50      *
       
    51      * @note Querys need to be completed with MNcdOperation::CompleteQueryL()
       
    52      *       to continue the operation! Alternatively, the operation must be
       
    53      *       cancelled.
       
    54      * 
       
    55      * 
       
    56      * @see MNcdOperation
       
    57      * @see MNcdQuery
       
    58      * @param aOperation The operation that sent the event.
       
    59      * @param aQuery Pointer to the query object that needs to be
       
    60      *        completed. Counted, Release() must be called after use.
       
    61      * @see MNcdOperation::CompleteQueryL()
       
    62      */
       
    63     virtual void QueryReceived( MNcdServerReportOperation& aOperation,
       
    64                                 MNcdQuery* aQuery ) = 0;
       
    65 
       
    66     /**
       
    67      * Called when an operation has been completed.
       
    68      *
       
    69      * 
       
    70      * @param aOperation The operation that sent the event.
       
    71      * @param aError Error code for operation completion.
       
    72      *               KErrNone for successful completion, otherwise a system
       
    73      *               wide error code.
       
    74      */
       
    75     virtual void OperationComplete( MNcdServerReportOperation& aOperation,
       
    76                                     TInt aError ) = 0;
       
    77     
       
    78     };
       
    79     
       
    80 #endif //  M_NCD_SERVER_REPORT_OPERATION_OBSERVER_H