voicerecorder/AppSrc/CVRSettingItem.h
branchRCL_3
changeset 21 c6bafb5162d8
parent 0 845549f293a7
equal deleted inserted replaced
20:072a5fa0c63b 21:c6bafb5162d8
       
     1 /*
       
     2 * Copyright (c) 2003, 2004 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:  Setting item for memory settings
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCVRSETTINGITEM_H
       
    20 #define CCVRSETTINGITEM_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <akntextsettingpage.h>
       
    24 #include <aknsettingitemlist.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 * Setting item for name base setting
       
    30 */
       
    31 class CCVRSettingItem : public CAknTextSettingItem
       
    32     {
       
    33     public: // Constructors and destructor
       
    34         /**
       
    35         * C++ constructor
       
    36         * @param aIdentifier identifier ID
       
    37         * @param aText text related to identifier
       
    38         * @since 3.1
       
    39         */
       
    40         CCVRSettingItem( TInt aIdentifier, TDes& aText );
       
    41         
       
    42 	/**
       
    43 	*  Access for re-implementors to the internal text 
       
    44 	*
       
    45 	* @return	reference to a TPtr holding the internal text
       
    46 	*/
       
    47 	TPtr& InternalTextPtr();
       
    48 
       
    49 	/**
       
    50 	*  Access for re-implementors to the external text
       
    51 	*
       
    52 	* @return	TPtrC pointing to the external text
       
    53 	*/
       
    54 	TPtrC ExternalText();
       
    55 
       
    56 	/**
       
    57 	* Allows re-implementors to set the external text
       
    58 	* No change of ownership is implied.
       
    59 	*
       
    60 	* @param	 a reference to the external text
       
    61 	*
       
    62 	*/
       
    63 	void SetExternalText( TDesC& aNewExternalText );
       
    64         /**
       
    65         * Destructor
       
    66         */
       
    67         virtual ~CCVRSettingItem();
       
    68 
       
    69     private: // Functions from base classes
       
    70         /**
       
    71         * From CAknTextSettingItem.
       
    72         * This launches the setting page for text editing. Overridden here
       
    73         * to use CCVRSettingPage instead of CAknTextSettingPage.
       
    74         *
       
    75         * @param        aCalledFromMenu - ignored in this class
       
    76         */
       
    77         void EditItemL( TBool aCalledFromMenu );
       
    78 
       
    79     };
       
    80 
       
    81 
       
    82 #endif