mobilemessaging/smilui/playerinc/SmilPlayerPresentationControl.h
branchRCL_3
changeset 27 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
26:ebe688cedc25 27:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2003-2005 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: SmilPlayerPresentationControl  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SMILPLAYERPRESENTATIONCONTROL_H
       
    20 #define SMILPLAYERPRESENTATIONCONTROL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <coecntrl.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CSmilPlayerPresentationController;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  Control class of the presentation
       
    31 */
       
    32 NONSHARABLE_CLASS(CSmilPlayerPresentationControl) : public CCoeControl
       
    33     {
       
    34 
       
    35     public: // Constructors and destructor
       
    36 
       
    37         /**
       
    38         * Constructor.
       
    39         *
       
    40         * @param aParent      Presentation controller
       
    41         *
       
    42         * @return pointer to the object
       
    43         */
       
    44         static CSmilPlayerPresentationControl* NewL( 
       
    45                         CSmilPlayerPresentationController* aParent );
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CSmilPlayerPresentationControl();
       
    51 
       
    52     public: // Functions from base classes
       
    53 
       
    54         /**
       
    55         * From CCoeControl,Draw.
       
    56         * See the documentation from the coecntrl.h
       
    57         */
       
    58         void Draw(const TRect& aRect) const;
       
    59         
       
    60     public: // new functions
       
    61 
       
    62         /**
       
    63         * Redraws given area of presentation to screen.
       
    64         *
       
    65         * @since 2.8
       
    66         * 
       
    67         * @param aArea Area to redraw.
       
    68         */
       
    69         void RedrawArea( const TRect& aArea ) const;
       
    70 
       
    71     private:
       
    72 
       
    73         /**
       
    74         * C++ constructor.
       
    75         */
       
    76         CSmilPlayerPresentationControl( 
       
    77             CSmilPlayerPresentationController* aParent );
       
    78 
       
    79         /**
       
    80         * By default Symbian 2nd phase constructor is private.
       
    81         */
       
    82         void ConstructL();
       
    83         
       
    84         /**
       
    85         * Performs presentation drawing operation.
       
    86         */
       
    87         void DoDrawPresentation( const TPoint& aDestination,
       
    88                                  const TRect& aSourceRect,
       
    89                                  const TRect& aPresentationRect ) const;
       
    90 
       
    91     private: // data
       
    92 
       
    93         // Controller class for this class
       
    94         CSmilPlayerPresentationController*              iParent;
       
    95     };
       
    96 
       
    97 #endif // SMILPLAYERPRESENTATIONCONTROL_H
       
    98 
       
    99 // End of File