camerauis/cameraapp/generic/GsCamcorderPlugin/inc/GSCamcorderSettingsBaseView.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 0 1ddebce53859
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
       
     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:  Base class for Photo/Video settings view
       
    15 *
       
    16 *  Copyright (c) 2008 Nokia Corporation.
       
    17 *  This material, including documentation and any related 
       
    18 *  computer programs, is protected by copyright controlled by 
       
    19 *  Nokia Corporation. All rights are reserved. Copying, 
       
    20 *  including reproducing, storing, adapting or translating, any 
       
    21 *  or all of this material requires the prior written consent of 
       
    22 *  Nokia Corporation. This material also contains confidential 
       
    23 *  information which may not be disclosed to others without the 
       
    24 *  prior written consent of Nokia Corporation.
       
    25 *
       
    26 *
       
    27 */
       
    28 
       
    29 
       
    30 
       
    31 #ifndef GSCAMCORDERSETTINGSBASEVIEW_H
       
    32 #define GSCAMCORDERSETTINGSBASEVIEW_H
       
    33 
       
    34 // INCLUDES
       
    35 #include <aknview.h>
       
    36 #include <eiklbo.h>
       
    37 
       
    38 
       
    39 // CLASS DECLARATION
       
    40 class CGSCamcorderSettingsContainer;
       
    41 
       
    42 
       
    43 /**
       
    44 * Image settings page view class.
       
    45 * @since
       
    46 */
       
    47 class CGSCamcorderSettingsBaseView : public CAknView,
       
    48                                   public MEikListBoxObserver
       
    49 
       
    50     {
       
    51     public: // Constructors and destructor
       
    52 
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         virtual ~CGSCamcorderSettingsBaseView();
       
    57 
       
    58         /**
       
    59         * From CEikAppUi
       
    60         * Handle skin change event.
       
    61         * @since 3.1
       
    62         */
       
    63         void HandleClientRectChange();
       
    64         
       
    65         /**
       
    66         * From CCoeControl
       
    67         * Handle skin change event.
       
    68         */
       
    69         void HandleResourceChange( TInt aType );
       
    70 
       
    71     public: // New functions
       
    72         /*
       
    73         * Check whether this view been lauched from General Settings.
       
    74         */
       
    75         TBool LaunchedFromGS() const;
       
    76 
       
    77     public: // Functions from base classes
       
    78         
       
    79         /**
       
    80         * From CAknView, handle commands
       
    81         * @param aCommand command to be handled
       
    82         */
       
    83         void HandleCommandL( TInt aCommand );
       
    84 
       
    85         /**
       
    86         * From CAknView Activate this view
       
    87         * @param aPrevViewId 
       
    88         * @param aCustomMessageId 
       
    89         * @param aCustomMessage 
       
    90         */
       
    91         void DoActivateL( const TVwsViewId& aPrevViewId,
       
    92                           TUid aCustomMessageId,
       
    93                           const TDesC8& aCustomMessage );                          
       
    94 
       
    95         /**
       
    96         * From MEikMenuObserver Dynamically customize menu items
       
    97         * @param aResourceId Menu pane resource ID
       
    98         * @param aMenuPane Menu pane pointer
       
    99         */
       
   100         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
   101 
       
   102         /**
       
   103         * From CAknView Deactivate this view
       
   104         */
       
   105         void DoDeactivate();       
       
   106        
       
   107         /**
       
   108         * Creates new container.
       
   109         * @since 3.1
       
   110         */
       
   111         void NewContainerL();
       
   112         
       
   113         /**
       
   114         * Get CameraGSPlugin's ccontainer.
       
   115         * @since 3.1
       
   116         */       
       
   117         CGSCamcorderSettingsContainer* Container();
       
   118         
       
   119         /**
       
   120         * Sets Navipane text
       
   121         * @since 3.1
       
   122         */
       
   123         void SetNaviPaneL();
       
   124         
       
   125         /**
       
   126         * Creates new container.
       
   127         * @since 3.1
       
   128         */   
       
   129         void CreateContainerL();
       
   130          
       
   131     public: // from MEikListBoxObserver
       
   132 
       
   133         /**
       
   134         * Handles listbox events.
       
   135         * @param aListBox Listbox where the event occurred.
       
   136         * @param aEventType Event type.
       
   137         * 
       
   138         */
       
   139         void HandleListBoxEventL( CEikListBox* aListBox,
       
   140                                   TListBoxEvent aEventType );        
       
   141 
       
   142     protected:
       
   143         /**
       
   144         * C++ constructor.
       
   145         * @since 3.1
       
   146         */
       
   147         CGSCamcorderSettingsBaseView( CCamStaticSettingsModel& aModel,
       
   148                                       TBool aPhotoSettings );
       
   149 
       
   150     private: // Data
       
   151         CCamStaticSettingsModel& iModel;
       
   152         TBool iSecondaryCameraSettings;
       
   153         TBool iPhotoSettings;
       
   154         CGSCamcorderSettingsContainer* iContainer;
       
   155     };
       
   156 
       
   157 #endif
       
   158 
       
   159 // End of File