profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfileFileListSettingItem.h
branchRCL_3
changeset 19 cd54903d48da
parent 0 ca436256272f
equal deleted inserted replaced
18:b7fa36b488f8 19:cd54903d48da
       
     1 /*
       
     2 * Copyright (c) 2002 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 class for tone selection.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPROFILEFILELISTSETTINGITEM_H
       
    21 #define CPROFILEFILELISTSETTINGITEM_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknsettingitemlist.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CCoeEnv;
       
    28 
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 *  Setting item class for tone selection.
       
    33 *  CProfileFileListSettingItem launches File List Dialog common component
       
    34 *  from which user can select a file for ringing tone.
       
    35 *
       
    36 *  @lib ProfileSettingsView.lib
       
    37 *  @since 1.2
       
    38 */
       
    39 NONSHARABLE_CLASS( CProfileFileListSettingItem ) : public CAknSettingItem
       
    40 	{
       
    41 
       
    42 	public:		// Constructors and destructor
       
    43 
       
    44 		/**
       
    45 		* C++ constructor.
       
    46 		* @param aIdentifier Resource identifier.
       
    47 		*        Tells which setting item is currently edited.
       
    48 		* @param aToneFileName File name of the selected tone is stored here.
       
    49 		* @param aRingingType Describes how the tone is played.
       
    50 		* @param aRingingVolume The volume how loud the tone is played.
       
    51 		* @param aVibratingAlert Setting of the vibrating alert.
       
    52 		* @param aCoeEnv Pointer to Control Environment.
       
    53 		*/
       
    54 		CProfileFileListSettingItem(
       
    55 			TInt aIdentifier,
       
    56 			TDes& aToneFileName,
       
    57 			const TInt& aRingingType,
       
    58 			const TInt& aRingingVolume,
       
    59 			const TBool& aVibratingAlert,
       
    60 			TInt& a3DEffect,
       
    61 			TInt& a3DEcho,
       
    62 			CCoeEnv* aCoeEnv );
       
    63 
       
    64         /**
       
    65         * Destructor.
       
    66         */
       
    67 		~CProfileFileListSettingItem();
       
    68 
       
    69 	private:	// Functions from base classes
       
    70 
       
    71         /**
       
    72         * From CAknSettingItem
       
    73         */
       
    74 		void CompleteConstructionL();
       
    75 
       
    76         /**
       
    77         * From CAknSettingItem
       
    78         */
       
    79 		void StoreL();
       
    80 
       
    81         /**
       
    82         * From CAknSettingItem
       
    83         */
       
    84 		void LoadL();
       
    85 
       
    86         /**
       
    87         * From CAknSettingItem
       
    88         */
       
    89 		void EditItemL( TBool aCalledFromMenu );
       
    90 
       
    91         /**
       
    92         * From CAknSettingItem
       
    93         */
       
    94 		const TDesC& SettingTextL();
       
    95 
       
    96 
       
    97 	private:	// Data
       
    98 
       
    99 		// Internal buffer for filename of selected tone
       
   100 		TFileName* iInternalToneFileName;
       
   101 
       
   102 		// External filename for selected tone
       
   103 		TDes& iExternalToneFileName;
       
   104 
       
   105 		// Ringing type for tone playback
       
   106 		const TInt& iRingingType;
       
   107 
       
   108 		// Ringing volume for tone playback
       
   109 		const TInt& iRingingVolume;
       
   110 
       
   111 		// Vibrating alert setting for tone playback
       
   112 		const TBool& iVibratingAlert;
       
   113 
       
   114 		// Own: Localised text qtn_tc_none
       
   115 		HBufC* iNoSoundText;
       
   116 
       
   117 		// Own: "No_Sound.wav" file name
       
   118 		HBufC* iNoSoundFileName;
       
   119 
       
   120 		// Own: Localised text for title for tone selection
       
   121 		HBufC* iTitle; /// Title for tone selection
       
   122 
       
   123 		// Text that is returned by SettingTextL
       
   124 		TPtrC iSettingText;
       
   125 
       
   126 		TInt& i3DEffect;
       
   127 		TInt& i3DEcho;
       
   128 		// Ref: Pointer to Control Environment
       
   129 		CCoeEnv* iCoeEnv;
       
   130 
       
   131 	};
       
   132 
       
   133 #endif // CPROFILEFILELISTSETTINGITEM_H
       
   134 
       
   135 // End of File