ncdengine/provider/server/inc/ncdserverpartofsubscription.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCD_SERVER_PART_OF_SUBSCRIPTION
       
    20 #define C_NCD_SERVER_PART_OF_SUBSCRIPTION
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 
       
    25 
       
    26 /**
       
    27  *  Class to represent partofsubscription part of purchaseoption.
       
    28  *
       
    29  *  Server-side class to represent a partofsubscription part of 
       
    30  *  a purchaseoption.
       
    31  *
       
    32  *  @lib ?library
       
    33  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    34  */
       
    35 class CNcdServerPartOfSubscription : public CBase
       
    36     {
       
    37 
       
    38 public:
       
    39 
       
    40     static CNcdServerPartOfSubscription* NewL();
       
    41 
       
    42     static CNcdServerPartOfSubscription* NewLC();
       
    43 
       
    44     virtual ~CNcdServerPartOfSubscription();
       
    45     
       
    46     /*
       
    47      * Setters for part of subscription data.
       
    48      */
       
    49     void SetParentEntityId( HBufC* aParentEntityId );
       
    50     void SetParentPurchaseOptionId( HBufC* aParentPurchaseOptionId );
       
    51     void SetCreditPrice( TReal32 aCreditPrice );
       
    52 
       
    53     /*
       
    54      * Getters for part of subscription data.
       
    55      */
       
    56     const TDesC& ParentEntityId() const;
       
    57     const TDesC& ParentPurchaseOptionId() const;
       
    58     TReal32 CreditPrice() const;
       
    59 
       
    60 
       
    61 protected:
       
    62 
       
    63     CNcdServerPartOfSubscription();
       
    64 
       
    65     void ConstructL();
       
    66 
       
    67 private:
       
    68 
       
    69 
       
    70 
       
    71 
       
    72 private: // data
       
    73 
       
    74     /*
       
    75      * Part of subscription data.
       
    76      * Own.
       
    77      */
       
    78     HBufC* iParentEntityId;
       
    79     HBufC* iParentPurchaseOptionId;
       
    80     TReal32 iCreditPrice;
       
    81 
       
    82     };
       
    83 
       
    84 
       
    85 
       
    86 #endif // C_NCD_SERVER_PART_OF_SUBSCRIPTION