javauis/mmapi_qt/baseline/inc/cmmaitemdisplay.h
branchRCL_3
changeset 18 9ac0a0a7da70
parent 17 0fd27995241b
child 19 71c436fe3ce0
equal deleted inserted replaced
17:0fd27995241b 18:9ac0a0a7da70
     1 /*
       
     2 * Copyright (c) 2002-2007 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:  Bitmap display that draws to the Java CustomItem's bitmap.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMAITEMDISPLAY_H
       
    20 #define CMMAITEMDISPLAY_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "cmmadisplay.h" // base class
       
    24 
       
    25 //class MMIDCustomItem;
       
    26 
       
    27 //  CLASS DECLARATION
       
    28 /**
       
    29 *   Display that uses MMIDCustomItem.
       
    30 *
       
    31 *
       
    32 */
       
    33 NONSHARABLE_CLASS(CMMAItemDisplay): public CMMADisplay
       
    34 {
       
    35 public:     // Constructors and destructors
       
    36     static CMMAItemDisplay* NewLC(/*MMIDCustomItem* aCustomItem*/);
       
    37 
       
    38     ~CMMAItemDisplay();    // Destructor ()
       
    39 
       
    40 protected:  // Constructors and destructors
       
    41     // Default constructor, protected to allow derivation
       
    42     CMMAItemDisplay(/*MMIDCustomItem* aCustomItem*/);
       
    43 
       
    44 public:     // New methods
       
    45     /**
       
    46      * To be called when java display's size is changed.
       
    47      * This method also informs when context for the item is
       
    48      * created for the first time.
       
    49      */
       
    50     static void SizeChangedL(CMMAItemDisplay* aDisplay,
       
    51                              TInt aWidth,
       
    52                              TInt aHeight);
       
    53 
       
    54     /**
       
    55      * Sets source size to aSize.
       
    56      */
       
    57     static void StaticSourceSize(CMMAItemDisplay* aDisplay,
       
    58                                  TSize* aSize);
       
    59 
       
    60 public: // Methods derived from MMMADisplay
       
    61     void SourceSizeChanged(const TSize& aSourceSize);
       
    62     void SetFullScreenL(TBool aFullScreen);
       
    63     void SetDisplayLocationL(const TPoint& aPosition);
       
    64     TPoint DisplayLocation();
       
    65     void SetWindowL(MMMADisplayWindow* aWindow);
       
    66 /*
       
    67 public: // From MDirectContent
       
    68     void MdcContentBoundsChanged(const TRect& aRect);
       
    69     void MdcItemContentRectChanged(const TRect& aContentRect,
       
    70                                    const TRect& aScreenRect);
       
    71 private:    // Data
       
    72     MMIDCustomItem* iItem;
       
    73     */
       
    74 };
       
    75 
       
    76 #endif // CMMAITEMDISPLAY_H