profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfile3dSettingPage.h
branchRCL_3
changeset 18 b7fa36b488f8
parent 17 861562a14a53
child 19 cd54903d48da
equal deleted inserted replaced
17:861562a14a53 18:b7fa36b488f8
     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:  Setting page class for 3D settings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPROFILE3DSETTINGPAGE_H
       
    21 #define CPROFILE3DSETTINGPAGE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknpopupsettingpage.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CFLDController;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31 *  Setting page class for 3D settings.
       
    32 *  CProfile3dSettingPage extends CAknPopupSettingPage.
       
    33 *
       
    34 *  @lib ProfileSettingsView.lib
       
    35 *  @since 5.0
       
    36 */
       
    37 NONSHARABLE_CLASS( CProfile3dSettingPage ) : public CAknPopupSettingPage
       
    38 	{
       
    39 	public:		// Constructors and destructor
       
    40 
       
    41         /**
       
    42         * C++ constructor.
       
    43         * @param aResourceID Setting page resource ID.
       
    44         * @param aQueryValue
       
    45         * @param aRingingTone Ringing tone.
       
    46         * @param aRingingType Ringing type.
       
    47         * @param aVibratingAlert Vibrating alert.
       
    48         * @param aVolume Volume.
       
    49         * @param a3DEffectOrEcho 3D effect or echo.
       
    50         * @param aIdentifier Setting item identifier.
       
    51         */
       
    52 		CProfile3dSettingPage(
       
    53 			TInt aResourceID,
       
    54 			MAknQueryValue& aQueryValue,
       
    55 			const TDesC& aRingingTone,
       
    56 			const TInt& aRingingType,
       
    57 			const TBool& aVibratingAlert,
       
    58 			const TInt& aVolume,
       
    59 			const TInt& a3DEffectOrEcho,
       
    60 			TInt aIdentifier );
       
    61 
       
    62         /**
       
    63         * Symbian 2nd phase constructor.
       
    64         */
       
    65 		void ConstructL();
       
    66 
       
    67 		/**
       
    68 		* Destructor.
       
    69 		*/
       
    70 		~CProfile3dSettingPage();
       
    71 
       
    72 	private:	// Functions from base classes
       
    73 
       
    74         /**
       
    75         * From CCoeControl
       
    76         */
       
    77 		TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    78 		void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    79 
       
    80 	private:	// New functions
       
    81 	
       
    82 		/**
       
    83 		* Checks if ringing tone is video and if so, sets default tone
       
    84 		*/
       
    85 		void CheckRingingToneTypeL();
       
    86 
       
    87 	private:	// Data
       
    88 
       
    89 		// Ringing tone.
       
    90 		const TDesC& iRingingTone;
       
    91 
       
    92 		// Ringing type.
       
    93 		const TInt& iRingingType;
       
    94 
       
    95 		// Vibrating alert.
       
    96 		const TBool& iVibratingAlert;
       
    97 
       
    98 		// Volume.
       
    99 		const TInt& iVolume;
       
   100 
       
   101         // 3D effect or echo
       
   102         const TInt& i3DEffectOrEcho;
       
   103 
       
   104         // Setting item identifier
       
   105         TInt iIdentifier;
       
   106 
       
   107         // Temporary setting value
       
   108         TInt iTempValue;
       
   109 
       
   110 		// Own: File List Dialog
       
   111 		CFLDController* iController;
       
   112 		
       
   113 		// Preview tone: either ringing tone or default tone
       
   114 		HBufC* iPreviewTone;
       
   115 
       
   116         // Fileserver session
       
   117         RFs* iFs;
       
   118         
       
   119 	};
       
   120 
       
   121 #endif // CPROFILE3DSETTINGPAGE_H
       
   122 
       
   123 // End of File