phoneuis/dialer/inc/cdialervideocontainer.h
branchRCL_3
changeset 62 5266b1f337bd
parent 0 5f000ab63145
equal deleted inserted replaced
61:41a7f70b3818 62:5266b1f337bd
       
     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:  CDialerVideoContainer class handles positioning 
       
    15 *                and viewing the control.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CDIALERVIDEOCONTAINER_H
       
    22 #define CDIALERVIDEOCONTAINER_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 //#include <fbs.h>
       
    27 #include <coecntrl.h>
       
    28 #include <coemain.h>
       
    29 
       
    30 #include "cdialercontainerbase.h"
       
    31 
       
    32 // CONSTANTS
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *  CDialerVideoContainer container class
       
    40 *
       
    41 *  @lib dialer.lib
       
    42 *  @since S60 v5.0
       
    43 */
       
    44 NONSHARABLE_CLASS(CDialerVideoContainer) : 
       
    45     public CDialerContainerBase
       
    46     {
       
    47     public:  // Constructors and destructor
       
    48         
       
    49         /**
       
    50         * Two phase constructor
       
    51         * @param aContainer Parent container
       
    52         * @param aVideoWindow
       
    53         * @return New instance
       
    54         */
       
    55         static CDialerVideoContainer* NewL( 
       
    56             const CCoeControl& aContainer,
       
    57             CCoeControl& aVideoWindow );
       
    58         
       
    59         /**
       
    60         * Destructor.
       
    61         */
       
    62         virtual ~CDialerVideoContainer();
       
    63 
       
    64     private:  // Functions from base classes
       
    65 
       
    66         /**
       
    67         * From CCoeControl
       
    68         */
       
    69         TInt CountComponentControls() const;
       
    70         
       
    71         /**
       
    72         * From CCoeControl
       
    73         */
       
    74         CCoeControl* ComponentControl( TInt aIndex ) const;
       
    75 
       
    76         /**
       
    77         * From CCoeControl
       
    78         */
       
    79         void Draw( const TRect& /*aRect */) const;
       
    80     
       
    81     public:        
       
    82         /**
       
    83         * @see CCoeControl
       
    84         */
       
    85         void SetFocus( TBool aFocus, 
       
    86                        TDrawNow aDrawNow=ENoDrawNow );        
       
    87     
       
    88     private: // From CDialerContainerBase
       
    89    
       
    90 
       
    91         /**
       
    92         * @see CDialerContainerBase
       
    93         */
       
    94         void SetVariety( );
       
    95         
       
    96         /**
       
    97         * @see CDialerContainerBase
       
    98         */
       
    99         void SetLayout( );
       
   100         
       
   101         
       
   102     private:
       
   103 
       
   104         /**
       
   105         * 2nd phase constructor.
       
   106         */
       
   107         void ConstructL();
       
   108             
       
   109         /**
       
   110         * Constructor
       
   111         * @param aContainer Parent container
       
   112         * @param aVideoWindow
       
   113         * @param aCommandHandler
       
   114         */
       
   115        CDialerVideoContainer(
       
   116             const CCoeControl& aContainer,
       
   117             CCoeControl& aVideoWindow );
       
   118 
       
   119     private:    // Data
       
   120 
       
   121         // Video window
       
   122         CCoeControl& iVideoWindow;
       
   123     };
       
   124 
       
   125 #endif      // CDIALERVIDEOCONTAINER_H
       
   126 
       
   127 // End of File