uigraphics/AknIcon/inc/AknSourceBitmapIconManager.h
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     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:   Specialized icon manager, where icon is constructed based on
       
    15 *                existing CFbsBitmap instances.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef AKN_SOURCE_BITMAP_ICON_MANAGER_H
       
    23 #define AKN_SOURCE_BITMAP_ICON_MANAGER_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32std.h>
       
    27 #include <fbs.h>
       
    28 #include "AknIconManager.h"
       
    29 
       
    30 // CONSTANTS
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 * class CAknSourceBitmapIconManager.
       
    36 * @internal
       
    37 */
       
    38 NONSHARABLE_CLASS(CAknSourceBitmapIconManager) : public CAknIconManager
       
    39 	{
       
    40     public:  // Constructors and destructor
       
    41         
       
    42         /**
       
    43         * Ownership of aSourceIcon is transferred to
       
    44         * this object.
       
    45         */ 
       
    46         CAknSourceBitmapIconManager( CAknIcon* aSourceIcon );
       
    47         
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         ~CAknSourceBitmapIconManager();
       
    52 
       
    53     private: // From CAknIconManager
       
    54 
       
    55         /**
       
    56         * Virtual method.
       
    57         * Loads a bitmap icon.
       
    58         */
       
    59         void LoadBitmapIconL();
       
    60 
       
    61         /**
       
    62         * Virtual method.
       
    63         * Initializes the icon with the given parameters.
       
    64         */
       
    65         virtual void DoInitializeIconL(
       
    66             const TSize& aSize,
       
    67             TScaleMode aMode,
       
    68             TInt aAngle );
       
    69 
       
    70     private:    // Data
       
    71 
       
    72         // This class is constructed using existing CFbsBitmap
       
    73         // objects. In that case, bitmaps are not shared and stored
       
    74         // in server side in that case, because there is no way to "identify"
       
    75         // them for sharing (like by filename and IDs).
       
    76         CFbsBitmap* iSourceBitmap; // owned
       
    77         CFbsBitmap* iSourceMask; // owned
       
    78     };
       
    79 
       
    80 #endif      // AKN_SOURCE_BITMAP_ICON_MANAGER_H
       
    81             
       
    82 // End of File