camerauis/cameraapp/generic/GsCamcorderPlugin/inc/GSCamVideoSettingsView.h
branchRCL_3
changeset 24 bac7acad7cb3
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Video settings view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef GSCAMVIDEOSETTINGSVIEW_H
       
    21 #define GSCAMVIDEOSETTINGSVIEW_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknview.h>
       
    25 #include <eiklbo.h>
       
    26 #include <gstabbedview.h>
       
    27 #include "GSCamcorderSettingsBaseView.h"
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CGSTabHelper;
       
    33 class MGSTabbedView;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 * Image settings page view class.
       
    39 * @since 2.1
       
    40 */
       
    41 class CGSCamVideoSettingsView : public CGSCamcorderSettingsBaseView,
       
    42                                 public MGSTabbedView
       
    43 
       
    44     {
       
    45     public: // Constructors and destructor
       
    46         /**
       
    47         * Symbian two-phased constructor.
       
    48         * @since 3.1
       
    49         * @param aTabViewArray reference to tab viewarray
       
    50         */
       
    51         static CGSCamVideoSettingsView* NewLC( 
       
    52             CCamStaticSettingsModel& aModel,
       
    53             CArrayPtrFlat<MGSTabbedView>* aTabViewArray );
       
    54 
       
    55         /**
       
    56         * Destructor.
       
    57         */
       
    58         virtual ~CGSCamVideoSettingsView();
       
    59 
       
    60         /**
       
    61         * Creates new icon for tab. Ownership is transferred to client.
       
    62         * @since 3.1
       
    63         */       
       
    64         CGulIcon* CreateTabIconL();
       
    65         
       
    66     private: // Functions from base classes
       
    67         
       
    68         /**
       
    69         * From CAknView returns Uid of View
       
    70         * @return TUid uid of the view
       
    71         */
       
    72         TUid Id() const;
       
    73 
       
    74         
       
    75         /**
       
    76         * From CAknView, handle commands
       
    77         * @param aCommand command to be handled
       
    78         */
       
    79         void HandleCommandL( TInt aCommand );
       
    80 
       
    81         /**
       
    82         * From CAknView Activate this view
       
    83         * @param aPrevViewId 
       
    84         * @param aCustomMessageId 
       
    85         * @param aCustomMessage 
       
    86         */
       
    87         void DoActivateL( const TVwsViewId& aPrevViewId,
       
    88                           TUid aCustomMessageId,
       
    89                           const TDesC8& aCustomMessage );                          
       
    90 
       
    91         /**
       
    92         * From CAknView Deactivate this view
       
    93         */
       
    94         void DoDeactivate();       
       
    95        
       
    96     private:
       
    97         /**
       
    98         * C++ constructor.
       
    99         * @since 3.1
       
   100         */
       
   101         CGSCamVideoSettingsView( CCamStaticSettingsModel& aModel );
       
   102 
       
   103         /**
       
   104         * Symbian 2nd phase constructor.
       
   105         * @since 3.1
       
   106         * @param aTabViewArray reference to tab viewarray
       
   107         */
       
   108         void ConstructL(CArrayPtrFlat<MGSTabbedView>* aTabViewArray);
       
   109 
       
   110     private: // Data
       
   111         CGSTabHelper* iTabHelper;
       
   112     };
       
   113 
       
   114 #endif
       
   115 
       
   116 // End of File