browserplugins/browseraudiovideoplugin/inc/BavpViewFullScreen.h
changeset 51 48e827313edd
parent 37 481242ead638
child 53 f427d27b98d8
equal deleted inserted replaced
37:481242ead638 51:48e827313edd
     1 /*
       
     2 * Copyright (c) 2006 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:  View class for playing media in full screen.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BAVPVIEWFULLSCREEN_H
       
    20 #define BAVPVIEWFULLSCREEN_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <coecntrl.h>
       
    24 #include <e32property.h>  // RProperty class
       
    25 #include <ScreensaverInternalPSKeys.h>
       
    26 #include <HWRMLight.h>
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class CBavpControllerVideo;
       
    30 /**
       
    31 *  CBavpViewFullScreen
       
    32 *  Controller for full screen
       
    33 */
       
    34 class CBavpViewFullScreen : public CCoeControl
       
    35     {
       
    36     public:  // Constructors and destructor
       
    37 
       
    38         /**
       
    39         * Two-phased constructor.
       
    40         */
       
    41         static CBavpViewFullScreen* NewL(CBavpControllerVideo* aController);
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CBavpViewFullScreen();
       
    47 
       
    48     public: // From base classes
       
    49         /**
       
    50          * Returns RWidnows
       
    51          * @since S60 v3.2
       
    52          * @param  none
       
    53          * @return RWindow: handle to a standard window
       
    54          */
       
    55         RWindow& WindowInst() { return Window(); }
       
    56         /**
       
    57          * Draw from CCoeControl
       
    58          * @since S60 v5.0
       
    59          * @param  aRect
       
    60          * @return void
       
    61          */
       
    62         void Draw( const TRect& aRect ) const;
       
    63        /**
       
    64         * Handles pointer events
       
    65         * @since S60 v5.0
       
    66         * @param  aPointerEvent
       
    67         * @return void
       
    68         */
       
    69         void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    70 
       
    71     private:
       
    72 
       
    73         /**
       
    74         * C++ default constructor.
       
    75         */
       
    76         CBavpViewFullScreen(CBavpControllerVideo* aController);
       
    77 
       
    78         /**
       
    79         * By default Symbian 2nd phase constructor is private.
       
    80         */
       
    81         void ConstructL();
       
    82 
       
    83     private:
       
    84 
       
    85     // Rectangle that defines the control's extent
       
    86        TRect iRect;
       
    87 	   CBavpControllerVideo* iNormalController;
       
    88     };
       
    89 
       
    90 #endif // BAVPVIEWFULLSCREEN_H
       
    91 
       
    92 // End of File