videofeeds/hgvodui/inc/vcxhgvodservicegrouplistimpl.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     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 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:    HG VOD service group view functionality implementation*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef VCXHGVODSERVICEGROUPLISTIMPL_H_
       
    21 #define VCXHGVODSERVICEGROUPLISTIMPL_H_
       
    22 
       
    23 #include "vcxhgvodlistimplbase.h"
       
    24 #include "vcxhgvodmainviewcontainer.h"
       
    25 
       
    26 class CHgScroller;
       
    27 class CVcxHgVodMainView;
       
    28 class CVcxHgVodMainViewContainer;
       
    29 class CVcxHgVodServiceGroupListModelHandler;
       
    30 class CVcxNsUiEngine;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34  *  Service group list implementation
       
    35  *  This class handles service group view list functionality.
       
    36  *
       
    37  *  @code
       
    38  *   
       
    39  *  @endcode
       
    40  *
       
    41  *  @lib vcxhgvodui.lib
       
    42  *  @since S60 v5.0
       
    43  */
       
    44 NONSHARABLE_CLASS( CVcxHgVodServiceGroupListImpl ): public CVcxHgVodListImplBase 
       
    45     {
       
    46 
       
    47 public:
       
    48 
       
    49     /**
       
    50      * Two-phased constructor.
       
    51      * @param aScroller UI component responsible of drawing the information
       
    52      * @param aDataProviderIf Reference to UI engine
       
    53      * @param aView Reference to main view
       
    54      * @return Pointer to newly created instance
       
    55      */
       
    56     static CVcxHgVodServiceGroupListImpl* NewL(
       
    57             CHgScroller& aScroller, 
       
    58             CVcxNsUiEngine& aDataProviderIf,
       
    59             CVcxHgVodMainView& aView );
       
    60     
       
    61     /**
       
    62      * Two-phased constructor.
       
    63      * @param aScroller UI component responsible of drawing the information
       
    64      * @param aDataProviderIf Reference to UI engine
       
    65      * @param aView Reference to main view
       
    66      * @return Pointer to newly created instance
       
    67      */
       
    68     static CVcxHgVodServiceGroupListImpl* NewLC( 
       
    69             CHgScroller& aScroller, 
       
    70             CVcxNsUiEngine& aDataProviderIf,
       
    71             CVcxHgVodMainView& aView );
       
    72 
       
    73     /**
       
    74     * Destructor.
       
    75     */
       
    76     virtual ~CVcxHgVodServiceGroupListImpl();
       
    77 
       
    78     /**
       
    79      * Activate menu pane items before displaying menu
       
    80      * 
       
    81      * @param aMenuPane Pointer to menu pane
       
    82      *
       
    83      */
       
    84     void ActivateMenuPaneItemsL( CEikMenuPane* aMenuPane, TInt aResourceId );
       
    85 
       
    86 public: //From CVcxHgVodListImplBase
       
    87     
       
    88     /**
       
    89      * Handle user command
       
    90      * @param aCommand 
       
    91      */
       
    92     void HandleCommandL( TInt aCommand );
       
    93     
       
    94     /**
       
    95     * Activate model
       
    96     * 
       
    97     */
       
    98     void DoActivateL();
       
    99     
       
   100     /**
       
   101     * Deactivate model
       
   102     * 
       
   103     */
       
   104     void DoDeactivate();
       
   105     
       
   106     /**
       
   107      * Handles item opening. 
       
   108      */
       
   109     void HandleOpenL( TInt aIndex );
       
   110     
       
   111     /**
       
   112     * CheckSoftkeysL 
       
   113     */
       
   114     void CheckSoftkeysL();
       
   115 
       
   116     /**
       
   117     * Get help context.
       
   118     *
       
   119     * @param aContext context
       
   120     */
       
   121     void GetHelpContext( TCoeHelpContext& aContext ) const;
       
   122 
       
   123     /**
       
   124      * Update title pane text for service group view.
       
   125      */
       
   126     void UpdateTitlePaneL();
       
   127 
       
   128 private:    
       
   129     
       
   130     /**
       
   131      * Default constructor
       
   132      * @param aScroller UI component responsible of drawing the information
       
   133      * @param aView Main view
       
   134      */
       
   135     CVcxHgVodServiceGroupListImpl( CHgScroller& aScroller,
       
   136                               CVcxNsUiEngine& aDataProviderIf,
       
   137                               CVcxHgVodMainView& aView );
       
   138 
       
   139     /**
       
   140      * 
       
   141      * @param aDataProviderIf
       
   142      * @param aScroller UI component responsible of drawing the information
       
   143      */
       
   144     void ConstructL( CVcxNsUiEngine& aDataProviderIf );
       
   145     
       
   146 private: // data
       
   147 
       
   148     /**
       
   149      * List widget model handler
       
   150      * Own.
       
   151      */
       
   152     CVcxHgVodServiceGroupListModelHandler* iModelHandler;
       
   153     };
       
   154 
       
   155 #endif /*VCXHGVODSERVICEGROUPLISTIMPL_H_*/