javauis/mmapi_qt/animated_gif_notUsed/inc/cmmaanimationwindow.h
branchRCL_3
changeset 24 0fd27995241b
equal deleted inserted replaced
20:f9bb0fca356a 24:0fd27995241b
       
     1 /*
       
     2 * Copyright (c) 2002-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:  This abstract class implements MMMADisplayWindow functionality
       
    15 *                in CFbsBitmap based displays.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CMMAANIMATIONWINDOW_H
       
    21 #define CMMAANIMATIONWINDOW_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <MIHLImageViewer.h>
       
    25 //#include "MMMADisplayWindow.h"
       
    26 #include "cmmabitmapwindow.h"
       
    27 #include "mmafunctionserver.h"
       
    28 
       
    29 //  CONSTANTS
       
    30 
       
    31 //  FORWARD DECLARATIONS
       
    32 //class CFbsBitmap;
       
    33 
       
    34 
       
    35 //  CLASS DECLARATION
       
    36 /**
       
    37 *   This abstract class implements MMMADisplayWindow functionality in
       
    38 *   CFbsBitmap based displays.
       
    39 *
       
    40 *
       
    41 */
       
    42 
       
    43 
       
    44 NONSHARABLE_CLASS(CMMAAnimationWindow): public CMMABitmapWindow
       
    45 {
       
    46 public:     // Constructors and destructors
       
    47     ~CMMAAnimationWindow();   // Destructor ()
       
    48 
       
    49     static CMMAAnimationWindow* NewL(MMAFunctionServer* aEventSource);
       
    50 
       
    51 protected:  // Constructors and destructors
       
    52     // Default constructor, protected to allow derivation
       
    53     CMMAAnimationWindow(MMAFunctionServer* aEventSource);
       
    54 
       
    55 public: // new methods
       
    56     /**
       
    57      * Setter for viewer, used for changing the size
       
    58      */
       
    59     void SetViewer(MIHLImageViewer* aViewer);
       
    60 
       
    61 public: // Methods derived from MMMADisplayWindow
       
    62     void SetDestinationBitmapL(CFbsBitmap* aBitmap);
       
    63     void DrawFrameL(const CFbsBitmap* aBitmap);
       
    64     void SetDrawRect(const TRect& aRect);
       
    65     void SetDrawRectThread(const TRect& aRect);
       
    66 
       
    67     /*private:
       
    68         static void StaticSetDrawRect(
       
    69             CMMAAnimationWindow* aWindow,
       
    70             TRect aRect,
       
    71             MMAFunctionServer* aEventSource );*/
       
    72 
       
    73 protected:  // Data
       
    74     /**
       
    75      * not owned, used for switching from UI thread to MMA thread
       
    76      */
       
    77     MMAFunctionServer* iEventSource;
       
    78 
       
    79     /**
       
    80      * Pointer to bitmap context, used for BitBlt instead of
       
    81      * slow DrawRect
       
    82      */
       
    83     CBitmapContext* iBitContext;
       
    84 
       
    85     /**
       
    86      * Viewer used for setting new size, not owned
       
    87      */
       
    88     MIHLImageViewer* iViewer;
       
    89 };
       
    90 
       
    91 #endif // CMMAANIMATIONWINDOW_H