javauis/mmapi_akn/animated_gif/inc/cmmaanimationratecontrol.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2002 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:  This class implements AnimationRateControl functionality.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMAANIMATIONRATECONTROL_H
       
    20 #define CMMAANIMATIONRATECONTROL_H
       
    21 
       
    22 // EXTERNAL INCLUDES
       
    23 
       
    24 //  INTERNAL INCLUDES
       
    25 #include "cmmaratecontrol.h" // base class
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 class CMMAAnimationPlayer;
       
    30 
       
    31 //  CLASS DECLARATION
       
    32 /**
       
    33 *   This class implements AnimationRateControl interface.
       
    34 *
       
    35 *
       
    36 */
       
    37 NONSHARABLE_CLASS(CMMAAnimationRateControl): public CMMARateControl
       
    38 {
       
    39 public:
       
    40     /**
       
    41      * Creates new CMMAAnimationRateControl.
       
    42      *
       
    43      * @param aPlayer Player that plays the content.
       
    44      */
       
    45     static CMMAAnimationRateControl* NewL(CMMAAnimationPlayer* aPlayer);
       
    46 
       
    47     /**
       
    48      * Destructor.
       
    49      */
       
    50     ~CMMAAnimationRateControl();
       
    51 protected:
       
    52     /**
       
    53      * Constructor.
       
    54      * @param aPlayer Player that plays the content.
       
    55      */
       
    56     CMMAAnimationRateControl(CMMAAnimationPlayer* aPlayer);
       
    57 
       
    58     /**
       
    59      * Initializes this control.
       
    60      */
       
    61     void ConstructL();
       
    62 
       
    63 public: // From CMMARateControl
       
    64     /**
       
    65      * @param aRate Rate to set in "milli-percentage"..
       
    66      * @return Actual rate set.
       
    67      */
       
    68     TInt SetRateL(TInt aRate);
       
    69 
       
    70     /**
       
    71      * @return The current playback rate in "milli-percentage".
       
    72      */
       
    73     TInt RateL();
       
    74 
       
    75 private: // Data
       
    76     /**
       
    77      * Used to control animation.
       
    78      */
       
    79     CMMAAnimationPlayer* iPlayer;
       
    80 
       
    81 };
       
    82 
       
    83 
       
    84 #endif // CMMAANIMATIONRATECONTROL_H