satengine/SatServer/Engine/inc/CSatSIconConverter.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  Converts icon to bitmap.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CSATSICONCONVERTER_H
       
    21 #define CSATSICONCONVERTER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <etelsat.h>
       
    26 #include <gdi.h>
       
    27 
       
    28 // FORWARD DECLARATION
       
    29 class CFbsBitmap;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Converts icon data to CFbsBitmap.
       
    35 *
       
    36 *  @lib SatEngine.lib
       
    37 *  @since 2.6
       
    38 */
       
    39 class CSatSIconConverter : public CBase
       
    40     {
       
    41     public:  // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * Factory method to create converter.
       
    45         * @param aCoding Coding scheme of the icon.
       
    46         * @return New converter instance.
       
    47         */
       
    48         static CSatSIconConverter* CreateConverterL(
       
    49             const RSat::TImageCoding& aCoding );
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~CSatSIconConverter() {};
       
    55 
       
    56     public: // New functions
       
    57 
       
    58         /**
       
    59         * Converts the icon data to CFbsBitmap.
       
    60         * @param aData Icon instance data.
       
    61         * @param aClut Color look-up table. In basic icon clut is not provided.
       
    62         * @return Bitmap.
       
    63         */
       
    64         virtual CFbsBitmap* ConvertL(
       
    65             const TDesC8& aData,
       
    66             const TDesC8& aClut ) const = 0;
       
    67 
       
    68     protected:
       
    69 
       
    70         /**
       
    71         * Creates bitmap.
       
    72         * @param aWidth Width of the bitmap.
       
    73         * @param aHeight Height of the bitmap.
       
    74         * @param aDisplayMode Display mode.
       
    75         * @return New bitmap instance.
       
    76         */
       
    77         CFbsBitmap* CreateBitmapL(
       
    78             TUint8 aWidth,
       
    79             TUint8 aHeight,
       
    80             TDisplayMode aDisplayMode ) const;
       
    81 
       
    82     protected:
       
    83 
       
    84         /**
       
    85         * C++ default constructor.
       
    86         */
       
    87         CSatSIconConverter();
       
    88 
       
    89     };
       
    90 
       
    91 #endif      // CSATSICONCONVERTER_H
       
    92 
       
    93 // End of File