javauis/mmapi_akn/animated_gif/inc/cmmaanimationframepositioningcontrol.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 FramePositioningControl for animation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMAANIMATIONFRAMEPOSITIONINGCONTROL_H
       
    20 #define CMMAANIMATIONFRAMEPOSITIONINGCONTROL_H
       
    21 
       
    22 //  INTERNAL INCLUDES
       
    23 #include "cmmaanimationplayer.h"
       
    24 #include "cmmaframepositioningcontrol.h" // base class
       
    25 
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class MIHLImageViewer;
       
    31 
       
    32 //  CLASS DECLARATION
       
    33 /**
       
    34 *   This class implements FramePositioningControl for video player
       
    35 */
       
    36 NONSHARABLE_CLASS(CMMAAnimationFramePositioningControl) :
       
    37         public CMMAFramePositioningControl
       
    38 {
       
    39 public:
       
    40     static CMMAAnimationFramePositioningControl* NewL(CMMAAnimationPlayer* aPlayer);
       
    41 
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     ~CMMAAnimationFramePositioningControl();
       
    46 
       
    47 protected:
       
    48     /**
       
    49      * Constructor.
       
    50      */
       
    51     CMMAAnimationFramePositioningControl(CMMAAnimationPlayer* aPlayer);
       
    52 
       
    53     void ConstructL(CMMAAnimationPlayer* aPlayer);
       
    54 
       
    55 public: // From CMMAFramePositioningControl
       
    56     TInt SeekL(TInt aFrameNumber);
       
    57     TInt SkipL(TInt aFramesToSkip);
       
    58     void MapFrameToTimeL(TInt aFrameNumber, TInt64* aMediaTime);
       
    59     TInt MapTimeToFrameL(TInt64* aMediaTime);
       
    60 
       
    61 private: // New methods
       
    62     TInt FindFrame(MIHLImageViewer* aViewer, TInt aFrameNumber);
       
    63 
       
    64 private: // Data
       
    65     CMMAAnimationPlayer* iPlayer;
       
    66 
       
    67 };
       
    68 
       
    69 
       
    70 #endif // CMMAANIMATIONFRAMEPOSITIONINGCONTROL_H