ncdengine/provider/server/inc/ncdserverupgrade.h
author Sebastian Brannstrom <sebastianb@symbian.org>
Tue, 15 Jun 2010 13:36:10 +0100
branchGCC_SURGE
changeset 41 0410b3201a77
parent 0 ba25891c3a9e
permissions -rw-r--r--
Bug 2944 - GCC compilation issue fixes

/*
* 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_SERVER_UPGRADE
#define C_NCD_SERVER_UPGRADE

#include <e32base.h>



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

public:

    static CNcdServerUpgrade* NewL();

    static CNcdServerUpgrade* NewLC();

    virtual ~CNcdServerUpgrade();


    /*
     * 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:

    CNcdServerUpgrade();

    void ConstructL();

private:




private: // data


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

    };



#endif // C_NCD_SERVER_UPGRADE