ncdengine/provider/server/inc/ncdserverupgrade.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_UPGRADE
       
    20 #define C_NCD_SERVER_UPGRADE
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 
       
    25 
       
    26 /**
       
    27  *  Class to represent upgrade part of purchaseoption.
       
    28  *
       
    29  *  Server-side class to represent a upgrade part of 
       
    30  *  a purchaseoption.
       
    31  *
       
    32  *  @lib ?library
       
    33  *  @since S60 ?S60_version *** for example, S60 v3.0
       
    34  */
       
    35 class CNcdServerUpgrade : public CBase
       
    36     {
       
    37 
       
    38 public:
       
    39 
       
    40     static CNcdServerUpgrade* NewL();
       
    41 
       
    42     static CNcdServerUpgrade* NewLC();
       
    43 
       
    44     virtual ~CNcdServerUpgrade();
       
    45 
       
    46 
       
    47     /*
       
    48      * Setters for upgrade data.
       
    49      */
       
    50     void SetDependencyId( HBufC* aDependencyId );
       
    51     void SetValidityDelta( TInt aValidityDelta );
       
    52     void SetAmountOfCredits( TReal32 aAmountOfCredits );
       
    53     void SetNumberOfDownloads( TInt aNumberOfDownloads );
       
    54 
       
    55     /*
       
    56      * Getters for upgrade data.
       
    57      */
       
    58     const TDesC& DependencyId() const;
       
    59     TInt ValidityDelta() const;
       
    60     TReal32 AmountOfCredits() const;
       
    61     TInt NumberOfDownloads() const;
       
    62 
       
    63 protected:
       
    64 
       
    65     CNcdServerUpgrade();
       
    66 
       
    67     void ConstructL();
       
    68 
       
    69 private:
       
    70 
       
    71 
       
    72 
       
    73 
       
    74 private: // data
       
    75 
       
    76 
       
    77     /*
       
    78      * Upgrade data.
       
    79      * Own.
       
    80      */
       
    81     HBufC* iDependencyId;
       
    82     TInt iValidityDelta;
       
    83     TReal32 iAmountOfCredits;
       
    84     TInt iNumberOfDownloads;
       
    85 
       
    86     };
       
    87 
       
    88 
       
    89 
       
    90 #endif // C_NCD_SERVER_UPGRADE