videocollection/hgmyvideos/inc/vcxhgmyvideosmainviewcontainer.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:      My Videos UI main view container.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef VCXHGMYVIDEOSMAINVIEWCONTAINER_H
       
    21 #define VCXHGMYVIDEOSMAINVIEWCONTAINER_H
       
    22 
       
    23 //INCLUDES
       
    24 
       
    25 #include <coecntrl.h>
       
    26 #include <aknview.h>
       
    27  
       
    28 
       
    29 // FORWARD DECLARATION
       
    30 
       
    31 class CVcxHgMyVideosMainView;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36  * My Videos UI main view container.
       
    37  *
       
    38  * @lib vcxhgmyvideos.lib
       
    39  */
       
    40 class CVcxHgMyVideosMainViewContainer : public CCoeControl
       
    41     {
       
    42     public: // Constructors and destructor
       
    43 
       
    44         /**
       
    45          * Creates main view container.
       
    46          *
       
    47          * @param aParentView Parent view of container.    
       
    48          * @return New container object.
       
    49          */
       
    50         static CVcxHgMyVideosMainViewContainer* NewL( 
       
    51                 CVcxHgMyVideosMainView& aParentView );
       
    52 
       
    53         /**
       
    54          * Creates main view container.
       
    55          *
       
    56          * @param aParentView Parent view of container.
       
    57          * @return New container object.        
       
    58          */
       
    59         static CVcxHgMyVideosMainViewContainer* NewLC( 
       
    60                 CVcxHgMyVideosMainView& aParentView );
       
    61 
       
    62         /**
       
    63          * Destructor.
       
    64          */
       
    65         virtual ~CVcxHgMyVideosMainViewContainer();
       
    66 
       
    67     public: // From CCoeControl
       
    68 
       
    69         /**
       
    70          * Key event handler. 
       
    71          *
       
    72          * @param aKeyEvent Key event.
       
    73          * @param aType     Key event type.
       
    74          * @return Response, tells if key was handled or not.
       
    75          */
       
    76         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
    77                                      TEventCode aType );
       
    78         
       
    79         /**
       
    80          * Returns control's help context.
       
    81          * 
       
    82          * @param aContext On return help context.
       
    83          */
       
    84         void GetHelpContext( TCoeHelpContext &aContext ) const;
       
    85         
       
    86     private: // Constructors
       
    87 
       
    88         /**
       
    89          * C++ default constructor.
       
    90          *
       
    91          * @param aParentView Parent view for this container.
       
    92          */
       
    93         CVcxHgMyVideosMainViewContainer( CVcxHgMyVideosMainView& aParentView );
       
    94    
       
    95         /**
       
    96          * Symbian 2nd phase constructor.
       
    97          */
       
    98         void ConstructL();
       
    99 
       
   100     private: // Data
       
   101 
       
   102         /**
       
   103 	     * This container's parent view
       
   104 	     * Not own.
       
   105 	     */
       
   106         CVcxHgMyVideosMainView& iParentView;
       
   107     };
       
   108 
       
   109 #endif // VCXHGMYVIDEOSMAINVIEWCONTAINER_H