memana/analyzetoolclient/configurationappgui/inc/atconfigurationappguisettingitemlistsettings.h
changeset 0 f0f2b8682603
equal deleted inserted replaced
-1:000000000000 0:f0f2b8682603
       
     1 /*
       
     2 * Copyright (c) 2009 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 #ifndef ATCONFIGURATIONAPPGUISETTINGITEMLISTSETTINGS_H
       
    19 #define ATCONFIGURATIONAPPGUISETTINGITEMLISTSETTINGS_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 
       
    25 /**
       
    26  * @class	CATConfigurationAppGuiSettingItemListSettings
       
    27  */
       
    28 class CATConfigurationAppGuiSettingItemListSettings: public CBase
       
    29 	{
       
    30 public:
       
    31 
       
    32     /**
       
    33     * Two-phased constructor that can leave.
       
    34     * @return A new instance of this class
       
    35     */
       
    36 	static CATConfigurationAppGuiSettingItemListSettings* NewL();
       
    37 	
       
    38     /**
       
    39     *  Symbian 2nd phase constructor.
       
    40     */
       
    41 	void ConstructL();
       
    42 		
       
    43 private:
       
    44     
       
    45     /**
       
    46     * C++ default constructor.
       
    47     */
       
    48 	CATConfigurationAppGuiSettingItemListSettings();
       
    49 public:
       
    50     
       
    51     /**
       
    52     * Returns value of binary setting 1.
       
    53     * @return TBool& reference to selected binary setting
       
    54     */
       
    55 	TBool& BinarySetting1();
       
    56 	
       
    57     /**
       
    58     * Sets binary 1 setting value
       
    59     * @param aValue binary value to be set
       
    60     */
       
    61 	void SetBinarySetting1( const TBool& aValue );
       
    62 	
       
    63     /**
       
    64     * Returns enumerated text value from first popup setting.
       
    65     * @return TDes& reference to selected text
       
    66     */
       
    67 	TDes& EnumeratedTextPopup1();
       
    68 	
       
    69     /**
       
    70     * Returns the value of application's update interval.
       
    71     * @return TInt update interval
       
    72     */
       
    73 	TInt UpdateInterval();
       
    74 	
       
    75     /**
       
    76     * Sets value of the update interval
       
    77     * @param aUpdate update interval value to be set
       
    78     */
       
    79 	void SetUpdateIntervalL( TInt aUpdate );
       
    80 	
       
    81     /**
       
    82     * Sets value of the enumerated text value for
       
    83     * first popup settting.
       
    84     * @param aValue text value to be set
       
    85     */
       
    86 	void SetEnumeratedTextPopup1L( const TDesC& aValue );
       
    87 	
       
    88 protected:
       
    89     // First binary setting value
       
    90 	TBool iBinarySetting1;
       
    91 	// Value of the update interval
       
    92 	TInt iUpdateInterval;
       
    93 	// Temporary buffer holding setting text shown
       
    94 	// to the user
       
    95 	TBuf<50> iTemp;
       
    96 	
       
    97 	};
       
    98 #endif // ATCONFIGURATIONAPPGUISETTINGITEMLISTSETTINGS_H