ncdengine/provider/client/inc/ncdclientupgrade.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:22:02 +0100
branchRCL_3
changeset 26 8b7f4e561641
parent 0 ba25891c3a9e
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  
*
*/


#ifndef C_NCD_CLIENT_UPGRADE
#define C_NCD_CLIENT_UPGRADE

#include <e32base.h>



/**
 *  Class to represent upgrade part of purchaseoption.
 *
 *  Client-side class to represent a upgrade part of 
 *  a purchaseoption.
 *
 *  @lib ?library
 *  @since S60 ?S60_version *** for example, S60 v3.0
 */
class CNcdClientUpgrade : public CBase
    {

public:

    static CNcdClientUpgrade* NewL();

    static CNcdClientUpgrade* NewLC();

    virtual ~CNcdClientUpgrade();


    /*
     * Setters for upgrade data.
     */
    void SetDependencyId( HBufC* aDependencyId );
    void SetValidityDelta( TInt aValidityDelta );
    void SetAmountOfCredits( TReal32 aAmountOfCredits );
    void SetNumberOfDownloads( TInt aNumberOfDownloads );

    /*
     * Getters for upgrade data.
     */
    const TDesC& DependencyId() const;
    TInt ValidityDelta() const;
    TReal32 AmountOfCredits() const;
    TInt NumberOfDownloads() const;


protected:

    CNcdClientUpgrade();

    void ConstructL();

private:




private: // data


    /*
     * Upgrade data.
     * Own.
     */
    HBufC* iDependencyId;
    TInt iValidityDelta;
    TReal32 iAmountOfCredits;
    TInt iNumberOfDownloads;

    };



#endif // C_NCD_CLIENT_UPGRADE