ncdengine/provider/protocol/inc/ncdrequestinstallation.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:   CNcdRequestInstallation declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCDREQUESTINSTALLATION_H
       
    20 #define C_NCDREQUESTINSTALLATION_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include "ncdrequestbase.h"
       
    25 #include "ncdrequestconstants.h"
       
    26 
       
    27 
       
    28 class CNcdRequestInstallation : public CNcdRequestBase
       
    29     {
       
    30 public:
       
    31 
       
    32 
       
    33 struct TNcdRequestInstallation
       
    34     {
       
    35     TXmlEngString iId;
       
    36     // These are needed if the installation report functionality is added
       
    37     //TXmlEngString iTimestamp;
       
    38     //TXmlEngString iPurchaseOptionId;
       
    39     TXmlEngString iUri;
       
    40     
       
    41     TInt iStatusCode;
       
    42     TXmlEngString iElapsedTime;    
       
    43     };
       
    44 
       
    45 public:
       
    46 
       
    47     HBufC8* CreateRequestL();
       
    48     
       
    49     /**
       
    50      * Adds details for a download report
       
    51      */
       
    52     void AddDownloadDetailsL( 
       
    53         const TDesC& aId, 
       
    54         const TDesC& aUri,
       
    55         TInt aStatusCode,
       
    56         const TInt64& aElapsedTime );
       
    57 
       
    58     /**
       
    59      * Adds details for a install report
       
    60      */
       
    61     void AddInstallDetailsL( 
       
    62         const TDesC& aId, 
       
    63         TInt aStatusCode );        
       
    64     
       
    65 public:
       
    66     static CNcdRequestInstallation* NewL();
       
    67     static CNcdRequestInstallation* NewLC();
       
    68 
       
    69     void ConstructL();
       
    70     
       
    71     virtual ~CNcdRequestInstallation();
       
    72 
       
    73 private:
       
    74     CNcdRequestInstallation();
       
    75 
       
    76 
       
    77 private:
       
    78     TXmlEngString iName;
       
    79     TXmlEngString iNamespaceUri;
       
    80     TXmlEngString iPrefix;
       
    81     TXmlEngString iType;        
       
    82     
       
    83     RArray<TNcdRequestInstallation> iInstallationDetails;
       
    84         
       
    85     };
       
    86 
       
    87 #endif //C_NCD_REQUEST_INSTALLATION_HH
       
    88