DirectPrint/DirectPrintApp/engine/inc/directprintfloatcapability.h
branchRCL_3
changeset 12 613a5ff70823
child 15 2275db202402
equal deleted inserted replaced
8:3f1fec088555 12:613a5ff70823
       
     1 /*
       
     2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * {Description of the file}
       
    16 *
       
    17 */
       
    18 
       
    19 // Protection against nested includes
       
    20 #ifndef DIRECTPRINTFLOATCAPABILITY_H
       
    21 #define DIRECTPRINTFLOATCAPABILITY_H
       
    22 
       
    23 // User includes
       
    24 #include "directprintbasecapability.h"
       
    25 
       
    26 /**
       
    27  *
       
    28  *  Capability type for float type of settings
       
    29  *
       
    30  */
       
    31 class CDirectPrintFloatCapability : public CDirectPrintBaseCapability
       
    32     {
       
    33     public:     //  Constructors and destructors
       
    34 
       
    35         /**
       
    36          *  Destructor
       
    37          */
       
    38         virtual ~CDirectPrintFloatCapability();
       
    39 
       
    40     public:     //  Methods derived from CBaseCapability
       
    41 
       
    42         virtual HBufC* ListBoxTextL();
       
    43         virtual CDirectPrintBaseCapability* CloneL();
       
    44         virtual CAknSettingItem* SettingItemLC(TInt aIndex);
       
    45 
       
    46     public:     //  New methods
       
    47 
       
    48         /**
       
    49          *  Sets the values for denominator, numerator and
       
    50          *  maximum numerator. Initializes iRealValue at the same time
       
    51          *
       
    52          *  @param aDenom       Denominator
       
    53          *  @param aNumerator   Current numerator
       
    54          *  @param aMaxNumerator Maximum numerator
       
    55          *  @return Error code
       
    56          */
       
    57         TInt SetValues( TInt aDenom, TInt aNumerator, TInt aMaxNumerator );
       
    58 
       
    59         /**
       
    60          *  Returns numerator
       
    61          *  @return numerator
       
    62          */
       
    63         TInt Numerator() const;
       
    64 
       
    65         /**
       
    66          *  Returns denominator
       
    67          *  @return denominator
       
    68          */
       
    69         TInt Denominator() const;
       
    70 
       
    71     private:     // Data
       
    72 
       
    73         // Denominator / Numerator pair 
       
    74         TInt iDenominator;
       
    75         TInt iMaxNumerator;
       
    76 
       
    77         TReal iRealValue;
       
    78     };
       
    79 
       
    80 #endif  //  DIRECTPRINTFLOATCAPABILITY_H
       
    81 
       
    82 //  End of File