ncdengine/provider/client/inc/ncdclientpartofsubscription.h
author Santosh V Patil <santosh.v.patil@nokia.com>
Wed, 30 Jun 2010 11:01:26 +0530
branchADM
changeset 48 364021cecc90
parent 0 ba25891c3a9e
permissions -rw-r--r--
SmartInstaller contribution based on the Nokia Qt SDK 1.0 release

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


#ifndef C_NCD_CLIENT_PART_OF_SUBSCRIPTION
#define C_NCD_CLIENT_PART_OF_SUBSCRIPTION

#include <e32base.h>



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

public:

    static CNcdClientPartOfSubscription* NewL();

    static CNcdClientPartOfSubscription* NewLC();

    virtual ~CNcdClientPartOfSubscription();

    /*
     * Setters for part of subscription data.
     */
    void SetParentEntityId( HBufC* aParentEntityId );
    void SetParentPurchaseOptionId( HBufC* aParentPurchaseOptionId );
    void SetCreditPrice( TReal32 aCreditPrice );

    /*
     * Getters for part of subscription data.
     */
    const TDesC& ParentEntityId() const;
    const TDesC& ParentPurchaseOptionId() const;
    TReal32 CreditPrice() const;

protected:

    CNcdClientPartOfSubscription();

    void ConstructL();

private:




private: // data

    /*
     * Part of subscription data.
     * Own.
     */
    HBufC* iParentEntityId;
    HBufC* iParentPurchaseOptionId;
    TReal32 iCreditPrice;


    };



#endif // C_NCD_CLIENT_PART_OF_SUBSCRIPTION