photosgallery/slideshow/settingsdialog/src/shwslideshowsettingsdialog.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2007-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:    The slideshow settings dialog header file
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef SHWSLIDESHOWSETTINGSDLG_H
       
    23 #define SHWSLIDESHOWSETTINGSDLG_H
       
    24 
       
    25 //  EXTERNAL INCLUDES
       
    26 #include <AknDialog.h>  		// for CAknDialog
       
    27 
       
    28 //  INTERNAL INCLUDES
       
    29 
       
    30 
       
    31 //  FORWARD DECLARATIONS
       
    32 class CShwSlideShowSettingsList;
       
    33 class CShwSettingsModel;
       
    34 class CAknSettingItemArray;
       
    35 class CEikStatusPane;
       
    36 class CAknTitlePane;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41  * Slideshow Setting Dialog allows the user adjust basic slide
       
    42  * runtime settings
       
    43  * class CShwSlideshowSettingsDialog
       
    44  * @author Loughlin Spollen 
       
    45  * @internal reviewed 08/06/2007 by Kimmo Hoikka
       
    46  */
       
    47 
       
    48 NONSHARABLE_CLASS (CShwSlideshowSettingsDialog) : public CAknDialog
       
    49 	{
       
    50 	 public:  // Constructors and destructor
       
    51 		/**
       
    52 		* Two-phased constructor.
       
    53 		*/
       
    54         static CShwSlideshowSettingsDialog* NewL();
       
    55 
       
    56         /**
       
    57         * Destructor.
       
    58         */
       
    59         ~CShwSlideshowSettingsDialog();
       
    60 
       
    61 	private:
       
    62 		/**
       
    63         * Symbian 2nd phase constructor
       
    64 		*/
       
    65         void ConstructL();
       
    66 
       
    67         /**
       
    68         * C++ default constructor.
       
    69         */
       
    70         CShwSlideshowSettingsDialog();
       
    71 
       
    72         void SetTitleL();
       
    73         /**
       
    74          * To Set the previous Title in the status pane , used in slideshow settings only
       
    75          */
       
    76         void SetPreviousTitleL();
       
    77         void SetSlShwToolbarVisibility(TBool aVisible);
       
    78 
       
    79 	public: // from MEikDialogPageObserver
       
    80 		/**
       
    81 		* @ref MEikDialogPageObserver::CreateCustomControlL
       
    82 		*/
       
    83 		SEikControlInfo CreateCustomControlL(TInt aControlType);
       
    84 		
       
    85 	public: // from CCoeControl
       
    86 		/**
       
    87 		* @ref CCoeControl::SizeChanged
       
    88 		*/
       
    89 		void SizeChanged();
       
    90 		
       
    91 		/**
       
    92 		* @ref CCoeControl::OfferKeyEventL
       
    93 		*/
       
    94         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
       
    95                                     TEventCode aType);
       
    96 		/**
       
    97 		* @ref CCoeControl::FocusChanged
       
    98 		*/                
       
    99         void FocusChanged(TDrawNow aDrawNow);  
       
   100 
       
   101 	public: // from MEikCommandObserver
       
   102 		/**
       
   103 		* @ref MEikCommandObserver
       
   104 		*/
       
   105 		void ProcessCommandL(TInt aCommandId);
       
   106 		
       
   107 	protected: // Functions CEikDialog
       
   108         /**
       
   109 		* @ref CEikDialog
       
   110 		*/
       
   111         TBool OkToExitL(TInt aKeycode);
       
   112 
       
   113 
       
   114 	private: // Data
       
   115 		TInt iResourceOffset;
       
   116 		
       
   117 		// Not Owned: Akn control item list 
       
   118 		CShwSlideShowSettingsList* iItemList; 
       
   119 
       
   120 		// Owned: Settings model
       
   121 		CShwSettingsModel* iShwSettings;
       
   122 		
       
   123 		// Status Pane instance
       
   124 		CEikStatusPane* iStatusPane;
       
   125 		// Title Pane instance
       
   126 		CAknTitlePane* iTitlePane;
       
   127 		
       
   128 		// Flag to be used at status pane enabling and disabling for FS view
       
   129 		TBool iStatusPaneChanged;
       
   130 		
       
   131 		// To Store the Previous Status Pane Title
       
   132 	    HBufC* iPreviousTitle;
       
   133 		    
       
   134 	};
       
   135 
       
   136 #endif //SHWSLIDESHOWSETTINGSDLG_H