ncdengine/provider/client/inc/ncdclientsubscription.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_CLIENT_SUBSCRIPTION
       
    20 #define C_NCD_CLIENT_SUBSCRIPTION
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 
       
    27 /**
       
    28  *  Class to represent subscription part of purchaseoption.
       
    29  *
       
    30  *  Client-side class to represent a subscription part of 
       
    31  *  a purchaseoption.
       
    32  *
       
    33  *  @lib ?library
       
    34  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    35  */
       
    36 class CNcdClientSubscription : public CBase
       
    37     {
       
    38 
       
    39 public:
       
    40 
       
    41     static CNcdClientSubscription* NewL();
       
    42 
       
    43     static CNcdClientSubscription* NewLC();
       
    44 
       
    45     virtual ~CNcdClientSubscription();
       
    46 
       
    47 
       
    48     /*
       
    49      * Setters for subscription data.
       
    50      */
       
    51     void SetValidityDelta( TInt aValidityDelta );
       
    52     void SetValidityAutoUpdate( TBool aValidityAutoUpdate );
       
    53     void SetAmountOfCredits( TReal32 aAmountOfCredits );
       
    54     void SetAmountOfCreditsCurrency( HBufC* aAmountOfCreditsCurrency );
       
    55     void SetNumberOfDownloads( TInt aNumberOfDownloads );
       
    56 
       
    57     
       
    58 
       
    59 
       
    60 
       
    61 
       
    62 protected:
       
    63 
       
    64     CNcdClientSubscription();
       
    65 
       
    66     void ConstructL();
       
    67 
       
    68 private:
       
    69 
       
    70 
       
    71 
       
    72 
       
    73 private: // data
       
    74 
       
    75 
       
    76     /*
       
    77      * Subscription data.
       
    78      * Own.
       
    79      */
       
    80     TInt iValidityDelta;
       
    81     TBool iValidityAutoUpdate;
       
    82     TReal32 iAmountOfCredits;
       
    83     HBufC* iAmountOfCreditsCurrency;
       
    84     TInt iNumberOfDownloads;
       
    85 
       
    86 
       
    87     // Also subscribableiteminfo here?
       
    88 
       
    89     };
       
    90 
       
    91 
       
    92 
       
    93 #endif // C_NCD_CLIENT_SUBSCRIPTION