mediasettings/gsvideoplugin/inc/GSMediaPlayerVideoView.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     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 the License "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:   Declares view for GSVideoPlugin application.*
       
    15 */
       
    16 
       
    17 
       
    18 // Version : %version: 3 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef GSMEDIAPLAYERSVIDEOVIEW_H
       
    23 #define GSMEDIAPLAYERSVIDEOVIEW_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <aknview.h>
       
    27 #include <eiklbo.h>
       
    28 #include <gstabbedview.h>
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CMPSettingsModelForROP;
       
    32 class CMPSettingsBaseContainer;
       
    33 class MGSTabbedView;
       
    34 class CGSTabHelper;
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  CGSMediaPlayerVideoView class.
       
    40 * 
       
    41 *  @since 3.1
       
    42 */
       
    43 class CGSMediaPlayerVideoView : public CAknView,
       
    44                                 public MGSTabbedView
       
    45     {
       
    46     public: // Constructors and destructor
       
    47 
       
    48         enum KGSViewPanicCodes
       
    49             {
       
    50             EGSViewPanicNullPtr = 1
       
    51             };
       
    52             
       
    53         /**
       
    54         * Two-phased constructor.
       
    55         */
       
    56         static CGSMediaPlayerVideoView* NewLC(CMPSettingsModelForROP* aModel, CArrayPtrFlat<MGSTabbedView>* aTabViewArray );
       
    57 
       
    58         /**
       
    59         * Destructor.
       
    60         */
       
    61         virtual ~CGSMediaPlayerVideoView();
       
    62 
       
    63         /**
       
    64         * From CEikAppUi
       
    65         * Handle skin change event.
       
    66         * @since 3.1
       
    67         */
       
    68         void HandleClientRectChange();
       
    69         
       
    70         /**
       
    71         * Creates new icon for tab. Ownership is transferred to client.
       
    72         * @since 3.1
       
    73         */       
       
    74         CGulIcon* CreateTabIconL();
       
    75         
       
    76         /**
       
    77         * From CCoeControl
       
    78         * Handle skin change event.
       
    79         */
       
    80         void HandleResourceChange( TInt aType );
       
    81         
       
    82         /**
       
    83         * This function is used to set the current item in the listbox.
       
    84         * @since 2.0
       
    85         * @param aIndex Current item.
       
    86         */
       
    87         void SetCurrentItem(TInt aIndex);
       
    88         
       
    89     private: // Functions from base classes
       
    90         
       
    91         /**
       
    92         * From CAknView
       
    93         */
       
    94         TUid Id() const;
       
    95 
       
    96         /**
       
    97         * From MEikMenuObserver
       
    98         */
       
    99         void HandleCommandL(TInt aCommand);
       
   100 
       
   101         /**
       
   102         * From CAknView Activate this view
       
   103         * @param aPrevViewId 
       
   104         * @param aCustomMessageId 
       
   105         * @param aCustomMessage 
       
   106         */
       
   107         void DoActivateL( const TVwsViewId& aPrevViewId,
       
   108                           TUid aCustomMessageId,
       
   109                           const TDesC8& aCustomMessage );                          
       
   110 
       
   111         /**
       
   112         * From MEikMenuObserver Dynamically customize menu items
       
   113         * @param aResourceId Menu pane resource ID
       
   114         * @param aMenuPane Menu pane pointer
       
   115         */
       
   116         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
   117 
       
   118         /**
       
   119         * From CAknView Deactivate this view
       
   120         */
       
   121         void DoDeactivate();       
       
   122         /**
       
   123         * Creates new container.
       
   124         * @since 3.1
       
   125         */
       
   126         void NewContainerL();
       
   127         
       
   128         /**
       
   129         * Get CMPSettingsBaseContainer's container.
       
   130         * @since 3.1
       
   131         */       
       
   132         CMPSettingsBaseContainer* Container();
       
   133                 
       
   134         /**
       
   135         * Creates new container.
       
   136         * @since 3.1
       
   137         */   
       
   138         void CreateContainerL();     
       
   139 
       
   140     private:
       
   141 
       
   142         /**
       
   143         * C++ default constructor.
       
   144         */
       
   145         CGSMediaPlayerVideoView(CMPSettingsModelForROP* aModel, CArrayPtrFlat<MGSTabbedView>* aTabViewArray);
       
   146 
       
   147         /**
       
   148         * Symbian 2nd phase constructor.
       
   149         */
       
   150         void ConstructL(CArrayPtrFlat<MGSTabbedView>* aTabViewArray);
       
   151 
       
   152         /**
       
   153         * Called at the end of DoActivateL.
       
   154         * @since 3.1
       
   155         */
       
   156         void DynInitContainerL();
       
   157                 
       
   158     private: //data
       
   159 
       
   160         CMPSettingsModelForROP* iModel;
       
   161         CMPSettingsBaseContainer* iContainer;
       
   162         CGSTabHelper* iTabHelper;
       
   163 
       
   164         TInt iCurrentItem;
       
   165         TInt iTopItemIndex;
       
   166     };
       
   167 
       
   168 #endif      // GSMEDIAPLAYERSVIDEOVIEW_H
       
   169 
       
   170 // End of File