profilesapplication/Profiles/ProfileApp/SettingsViewSrc/CProfilePlayingVolumeSettingPage.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 page class for ringing volume setting.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPROFILEPLAYINGVOLUMESETTINGPAGE_H
       
    21 #define CPROFILEPLAYINGVOLUMESETTINGPAGE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknvolumesettingpage.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CFLDController;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31 *  Setting page class for ringing volume setting.
       
    32 *  CProfilePlayingVolumeSettingPage extends CAknVolumeSettingPage in order to
       
    33 *  play a ringing tone at selected volume and to show a confirmation query
       
    34 *  if user selects the highest volume level.
       
    35 *
       
    36 *  @lib ProfileSettingsView.lib
       
    37 *  @since 1.2
       
    38 */
       
    39 NONSHARABLE_CLASS( CProfilePlayingVolumeSettingPage ) : public CAknVolumeSettingPage
       
    40 	{
       
    41 	public:		// Constructors and destructor
       
    42 
       
    43         /**
       
    44         * C++ constructor.
       
    45         * @param aResourceID Setting page resource ID.
       
    46         * @param aVolume Selected ringing tone will be stored here.
       
    47         * @param aRingingTone Ringing tone.
       
    48         * @param aRingingType Ringing type.
       
    49         * @param aVibratingAlert Vibrating alert.
       
    50         * @param aDisplayQuery Info whether to show
       
    51         * maximum volume query if volume is set to max
       
    52         */
       
    53 		CProfilePlayingVolumeSettingPage(
       
    54 			TInt aResourceID,
       
    55 			TInt& aVolume,
       
    56 			const TDesC& aRingingTone,
       
    57 			const TInt& aRingingType,
       
    58 			const TBool& aVibratingAlert,
       
    59 			const TBool aDisplayQuery );
       
    60 
       
    61         /**
       
    62         * Symbian 2nd phase constructor.
       
    63         */
       
    64 		void ConstructL();
       
    65 
       
    66 		/**
       
    67 		* Destructor.
       
    68 		*/
       
    69 		~CProfilePlayingVolumeSettingPage();
       
    70 
       
    71 	private:	// Functions from base classes
       
    72 
       
    73         /**
       
    74         * From CCoeControl
       
    75         */
       
    76 		TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    77 		void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    78 
       
    79         /**
       
    80         * From CAknSettingPage
       
    81         */
       
    82 		TBool OkToExitL(TBool aAccept);
       
    83 
       
    84 	private:	// New functions
       
    85 	
       
    86 		/**
       
    87 		* Checks if ringing tone is video and if so, sets default tone
       
    88 		*/
       
    89 		void CheckRingingToneTypeL();
       
    90 
       
    91 	private:	// Data
       
    92 
       
    93 		// Ringing tone.
       
    94 		const TDesC& iRingingTone;
       
    95 
       
    96 		// Ringing type.
       
    97 		const TInt& iRingingType;
       
    98 
       
    99 		// Vibrating alert.
       
   100 		const TBool& iVibratingAlert;
       
   101 
       
   102 		// Own: File List Dialog
       
   103 		CFLDController* iController;
       
   104 		
       
   105 		// Information of whether to display
       
   106 		// maximum volume query dialog
       
   107 		const TBool iDisplayQuery;
       
   108 
       
   109 		// Preview tone: either ringing tone or default tone
       
   110 		HBufC* iPreviewTone;
       
   111 
       
   112         // Fileserver session
       
   113         RFs* iFs;
       
   114         
       
   115         // Temporary volume value
       
   116         TInt iTempVolume;
       
   117 
       
   118 	};
       
   119 
       
   120 #endif // CPROFILEPLAYINGVOLUMESETTINGPAGE_H
       
   121 
       
   122 // End of File