diff -r 000000000000 -r 32704c33136d ncdengine/provider/client/inc/ncdclientupgrade.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ncdengine/provider/client/inc/ncdclientupgrade.h Tue Jan 26 12:06:03 2010 +0200 @@ -0,0 +1,91 @@ +/* +* 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 + + + +/** + * 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