ncdengine/provider/server/inc/ncddownloadreportobserver.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCDDOWNLOADREPORTOBSERVER_H
       
    20 #define C_NCDDOWNLOADREPORTOBSERVER_H
       
    21 
       
    22 #include "ncdreportstatusinfo.h"
       
    23 #include "catalogshttptypes.h"
       
    24 #include <e32base.h>
       
    25 
       
    26 class CNcdNodeIdentifier;
       
    27 class TCatalogsConnectionMethod;
       
    28 
       
    29 /**
       
    30  * Observer interface for reporting download events
       
    31  */
       
    32 class MNcdDownloadReportObserver
       
    33     {
       
    34 public:
       
    35 
       
    36     virtual TNcdReportId RegisterDownloadL(
       
    37         const TDesC& aUri,
       
    38         const CNcdNodeIdentifier& aMetadataId,
       
    39     	const TNcdReportStatusInfo& aStatus, 
       
    40     	const TDesC& aReportUri,
       
    41     	const TDesC& aReportNamespace ) = 0;
       
    42         
       
    43 
       
    44     virtual TNcdReportId RegisterOmaDownloadL(
       
    45         const TDesC& aUri,
       
    46         const CNcdNodeIdentifier& aMetadataId,
       
    47         const TNcdReportStatusInfo& aStatus,
       
    48         const TDesC& aReportUri ) = 0;    
       
    49 
       
    50     virtual TInt SetDownloadReportAccessPoint( 
       
    51         const TNcdReportId& aReportId,
       
    52         const TCatalogsConnectionMethod& aAccessPoint ) = 0;
       
    53 
       
    54     virtual void ReportDownloadStatusL( 
       
    55         const TNcdReportId& aReportId,
       
    56         const TNcdReportStatusInfo& aStatus,
       
    57         TBool aSendable ) = 0;
       
    58 
       
    59 protected:
       
    60 
       
    61     virtual ~MNcdDownloadReportObserver()
       
    62         {
       
    63         }
       
    64     };
       
    65 
       
    66 #endif // C_NCDDOWNLOADREPORTOBSERVER_H