camerauis/cameraapp/generic/inc/CamBurstThumbnailContainer.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 0 1ddebce53859
child 57 2c87b2808fd7
equal deleted inserted replaced
53:61bc0f252b2b 54: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:  Container for burst thumbnail view
       
    15 *
       
    16 *  Copyright © 2007 Nokia.  All rights reserved.
       
    17 *  This material, including documentation and any related computer
       
    18 *  programs, is protected by copyright controlled by Nokia.  All
       
    19 *  rights are reserved.  Copying, including reproducing, storing,
       
    20 *  adapting or translating, any or all of this material requires the
       
    21 *  prior written consent of Nokia.  This material also contains
       
    22 *  confidential information which may not be disclosed to others
       
    23 *  without the prior written consent of Nokia.
       
    24 
       
    25 *
       
    26 *
       
    27 */
       
    28 
       
    29 
       
    30 
       
    31 #ifndef CAMBURSTTHUMBNAILCONTAINER_H
       
    32 #define CAMBURSTTHUMBNAILCONTAINER_H
       
    33 
       
    34 // INCLUDES
       
    35 #include "CamContainerBase.h"
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 class CCamAppController;
       
    39 class CAknView;
       
    40 class CCamBurstThumbnailGrid;
       
    41 class CCamBurstThumbnailGridModel;
       
    42 class MTouchFeedback;
       
    43 
       
    44 // CLASS DECLARATION
       
    45 
       
    46 /**
       
    47 * Container for burst thumbnail view
       
    48 */
       
    49 class CCamBurstThumbnailContainer : public CCamContainerBase
       
    50     {
       
    51     public: // Constructors and destructor
       
    52         
       
    53         /**
       
    54         * Symbian OS two-phased constructor
       
    55         * @since 2.8
       
    56         * @param aController reference to CCamAppController instance
       
    57         * @param aView reference to the view containing this container
       
    58         * @param aRec Frame rectangle for container.        
       
    59         * @param aGridModel Model representing the grid contents
       
    60         * @return pointer to the created CCamBurstThumbnailContainer object
       
    61         */
       
    62         static CCamBurstThumbnailContainer* NewL( CCamAppController& aController,
       
    63                                                   CAknView& aView,
       
    64                                                   const TRect& aRec,
       
    65                                                   CCamBurstThumbnailGridModel& aGridModel );
       
    66 
       
    67         /**
       
    68         * Destructor.
       
    69         * @since 2.8
       
    70         */
       
    71         virtual ~CCamBurstThumbnailContainer();
       
    72 
       
    73         /**
       
    74         * Symbian OS 2nd phase constructor.
       
    75         * @since 2.8
       
    76         * @param aRect Frame rectangle for container.
       
    77         */
       
    78         void ConstructL( const TRect& aRect );
       
    79 
       
    80         /**
       
    81         * C++ constructor
       
    82         * @since 2.8
       
    83         * @param aController reference to CCamAppController instance
       
    84         * @param aView reference to the view containing this container
       
    85         * @param aGridModel Model representing the grid contents
       
    86         */
       
    87         CCamBurstThumbnailContainer( CCamAppController& aController,
       
    88                                      CAknView& aView,
       
    89                                      CCamBurstThumbnailGridModel& aGridModel );
       
    90 
       
    91     public: // Functions from base classes
       
    92         /**
       
    93         * From CamContainerBase 
       
    94         * @since 2.8
       
    95         * @param aKeyEvent the key event
       
    96         * @param aType the type of the event
       
    97         * @return TKeyResponse key event was used by this control or not
       
    98         */
       
    99         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,
       
   100                                      TEventCode aType );
       
   101         
       
   102         /**
       
   103          * From CoeControl
       
   104          */
       
   105         void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
   106 
       
   107 
       
   108     protected: // Functions from base classes
       
   109         /**
       
   110         * From CoeControl
       
   111         * @since 2.8
       
   112         * @return number of contained controls
       
   113         */
       
   114         TInt CountComponentControls() const;
       
   115 
       
   116         /**
       
   117         * From CoeControl
       
   118         * @since 2.8
       
   119         * @param aIndex The index of the control required
       
   120         * @return the requested control
       
   121         */
       
   122         CCoeControl* ComponentControl( TInt aIndex ) const;
       
   123 
       
   124 
       
   125         /**
       
   126         * From CCoeControl
       
   127         * @since 2.8
       
   128         * @param aRect area where to draw
       
   129         */
       
   130         void Draw( const TRect& aRect ) const;
       
   131 
       
   132     private: // Data
       
   133         // Pointer to the CCoeControl for the thumbnail grid
       
   134         CCamBurstThumbnailGrid* iGridControl;   
       
   135 
       
   136         // The model describing the contents of the grid control
       
   137         CCamBurstThumbnailGridModel& iGridModel;
       
   138         
       
   139         // touch feedback interface for providing tactile feedback
       
   140         MTouchFeedback* iFeedback; 
       
   141     };
       
   142 
       
   143 #endif // CAMBURSTTHUMBNAILCONTAINER_H
       
   144 
       
   145 // End of File