omadrm/drmengine/roap/src/MeteringReportResp.cpp
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     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:  class representing metering report response
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <e32base.h>
       
    22 #include "MeteringReportResp.h"
       
    23 
       
    24 using namespace Roap;
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CRegistrationResp::CRegistrationResp
       
    30 // C++ default constructor can NOT contain any code, that
       
    31 // might leave.
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 CMeteringResp::CMeteringResp()
       
    35     {
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CRegistrationResp::ConstructL
       
    40 // Symbian 2nd phase constructor can leave.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 void CMeteringResp::ConstructL()
       
    44     {
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // CRegistrationResp::NewL
       
    49 // Two-phased constructor.
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 CMeteringResp* CMeteringResp::NewL()
       
    53     {
       
    54     CMeteringResp* self = new( ELeave ) CMeteringResp;
       
    55 
       
    56     CleanupStack::PushL( self );
       
    57     self->ConstructL();
       
    58     CleanupStack::Pop( self );
       
    59 
       
    60     return self;
       
    61     }
       
    62 
       
    63 
       
    64 // Destructor
       
    65 CMeteringResp::~CMeteringResp()
       
    66     {
       
    67     iCertificateChain.ResetAndDestroy();
       
    68     iOcspResponse.ResetAndDestroy();
       
    69     delete iDeviceNonce;
       
    70     delete iErrorUrl;
       
    71     delete iSignature;
       
    72     delete iPrUrl;
       
    73     }
       
    74 
       
    75 //  End of File