messagingappbase/msgeditor/mediacontrolinc/MsgBitmapControl.h
changeset 79 2981cb3aa489
parent 0 72b543305e3a
equal deleted inserted replaced
25:84d9eb65b26f 79:2981cb3aa489
       
     1 /*
       
     2 * Copyright (c) 2006 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:  
       
    15 *       MsgEditor bitmap container control
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MSGBITMAPCONTROL_H
       
    22 #define MSGBITMAPCONTROL_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <coecntrl.h>
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FUNCTION PROTOTYPES
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 class MIHLBitmap;
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 // ==========================================================
       
    41 
       
    42 /**
       
    43 * UI control handling the bitmap & mask drawing.
       
    44 */
       
    45 NONSHARABLE_CLASS( CMsgBitmapControl ) : public CCoeControl
       
    46     {
       
    47     public:  // Constructor and destructor
       
    48         
       
    49         /**
       
    50         * C++ default constructor
       
    51         */
       
    52         CMsgBitmapControl();
       
    53                           
       
    54         /**
       
    55         * Destructor.
       
    56         */
       
    57         virtual ~CMsgBitmapControl();
       
    58 
       
    59     public:
       
    60         
       
    61         /**
       
    62         * Sets bitmap for control.
       
    63         *
       
    64         * @param aBitmap Bitmap. Not owned.
       
    65         */
       
    66         void SetBitmap( MIHLBitmap* aBitmap );
       
    67 
       
    68     public: // from CCoeControl
       
    69         
       
    70         /**
       
    71         * From CCoeControl,Draw.
       
    72         * @param aRect draw rect
       
    73         */
       
    74         void Draw( const TRect& aRect ) const;
       
    75     
       
    76     private: // Data
       
    77 
       
    78         // Destination bitmap
       
    79         MIHLBitmap*         iBitmap;
       
    80     };
       
    81     
       
    82 
       
    83 #endif // MSGBITMAPCONTROL_H