videoplayback/videoplaybackcontrols/inc/mpxvideoplaybackbrandinganimation.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Branding Animation control for full screen container
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: 3 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef MPXVIDEOPLAYBACKBRANDINGANIMATION_H
       
    23 #define MPXVIDEOPLAYBACKBRANDINGANIMATION_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include <coecntrl.h>
       
    27 #include <f32file.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CMPXVideoPlaybackControlsController;
       
    31 
       
    32 
       
    33 class CMPXVideoPlaybackBrandingAnimation : public CCoeControl
       
    34 {
       
    35     public:
       
    36         /**
       
    37         * Two-phased constructor.
       
    38         */
       
    39         static CMPXVideoPlaybackBrandingAnimation* NewL( 
       
    40                 CMPXVideoPlaybackControlsController* aController,
       
    41                                                      TRect aRect, 
       
    42                                                      TBool aRealFormat );
       
    43 
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         virtual ~CMPXVideoPlaybackBrandingAnimation();
       
    48                
       
    49         /*
       
    50          *  Start the Branding Animation timer
       
    51          *  @since 9.2
       
    52          */
       
    53         void StartBrandingTimer();
       
    54         
       
    55         /*
       
    56          *  Cancel the Branding Animation timer
       
    57          *  @since 9.2
       
    58          */
       
    59         void CancelBrandingTimer();
       
    60 
       
    61 
       
    62     private:
       
    63 
       
    64         /**
       
    65         * C++ default constructor.
       
    66         */
       
    67         CMPXVideoPlaybackBrandingAnimation( CMPXVideoPlaybackControlsController* aController,
       
    68                                             TBool aRealFormat );
       
    69 
       
    70         /**
       
    71          * By default Symbian 2nd phase constructor is private.
       
    72          */
       
    73         void ConstructL( TRect aRect );
       
    74 
       
    75     private: 
       
    76 
       
    77         /**
       
    78         * From CoeControl,CountComponentControls.
       
    79         * @return Number of contained component controls.
       
    80         */
       
    81         TInt CountComponentControls() const;
       
    82 
       
    83         /**
       
    84         * From CCoeControl,Draw.
       
    85         * @param aRect drawable area.
       
    86         */
       
    87         void Draw( const TRect& aRect ) const;
       
    88 
       
    89 
       
    90     private:
       
    91         
       
    92         /**
       
    93         * Creates new bitmaps for the control
       
    94         * @since 9.2 
       
    95         * @return void
       
    96         */
       
    97         void CreateBitmapsL();
       
    98         
       
    99         /** 
       
   100         * Timer callback for Branding Animation. 
       
   101         * @since 9.2 
       
   102         * @param aPtr Pointer to timers callback 
       
   103         * @return KErrNone 
       
   104         */ 
       
   105         static TInt BrandingTimer( TAny* aPtr );
       
   106 
       
   107         /** 
       
   108         * Handle Branding Animation Timer
       
   109         * @since 9.2 
       
   110         * @return void 
       
   111         */ 
       
   112         void HandleBrandingTimer();
       
   113 
       
   114     private:    // Data        
       
   115         CArrayPtrFlat< CGulIcon >   iIconArray;
       
   116 
       
   117         TRect                       iBrandingRect;
       
   118         TInt                        iCount;
       
   119         TInt                        iCurrentIndex;
       
   120         CPeriodic*                  iBrandingTimer;  
       
   121         TBool                       iRealFormat;
       
   122         
       
   123         CMPXVideoPlaybackControlsController* iController;
       
   124 };
       
   125 
       
   126 #endif //MPXVIDEOPLAYBACKBRANDINGANIMATION_H
       
   127 
       
   128 // End of File