homesync/contentmanager/mediaservant/inc/msrulefilesizesetting.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 2008 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:  CMSRuleFileSizeSetting class definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_MSRULEFILESIZESETTING_H
       
    20 #define C_MSRULEFILESIZESETTING_H
       
    21 
       
    22 // INCLUDES
       
    23 #include "mssettingitems.h"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28  * CMSRuleFileSizeSetting class. This class is used when
       
    29  * transfer time is modified
       
    30  *
       
    31  * @since S60 5.1
       
    32 */
       
    33 NONSHARABLE_CLASS( CMSRuleFileSizeSetting ):
       
    34                     public CMSEnumeratedTextPopupSettingItem
       
    35     {
       
    36     public:
       
    37 
       
    38         /**
       
    39          * Constructor.
       
    40          *
       
    41          * @since S60 5.1
       
    42          * @param aIdentifier, resource identifier
       
    43          * @param aType, setting type ( min / max size )
       
    44          * @param aSelection, selection index
       
    45          * @param aValue, size value
       
    46          * @return None
       
    47          */
       
    48         CMSRuleFileSizeSetting(
       
    49             TInt aIdentifier,
       
    50             TInt aType,
       
    51             TInt &aSelection,
       
    52             TInt &aValue
       
    53             );
       
    54 
       
    55         /**
       
    56          * Destructor.
       
    57          */
       
    58         virtual ~CMSRuleFileSizeSetting();
       
    59 
       
    60 
       
    61     protected: 
       
    62    
       
    63 // From base class CAknSettingItem
       
    64 
       
    65         /**
       
    66          * From CAknSettingItem
       
    67          * See base class definition
       
    68          */
       
    69         void EditItemL( TBool aCalledFromMenu );
       
    70         
       
    71         /**
       
    72          * From CAknSettingItem
       
    73          * See base class definition
       
    74          */
       
    75         void CompleteConstructionL();
       
    76 
       
    77     private:
       
    78         
       
    79         /**
       
    80          * Setting type Min/Max
       
    81          */
       
    82         TInt                                    iType;
       
    83         
       
    84         /**
       
    85          * File size in MBs
       
    86          */
       
    87         TInt&                                   iValue;
       
    88     };
       
    89 
       
    90 #endif // C_MSRULEFILESIZESETTING_H
       
    91 
       
    92 // End of File