extras/about/inc/AboutImage.h
changeset 0 3ee3dfdd8d69
child 21 a7d8840c0b8c
equal deleted inserted replaced
-1:000000000000 0:3ee3dfdd8d69
       
     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:  Image to be shown in about screen.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ABOUTIMAGE_H
       
    20 #define ABOUTIMAGE_H
       
    21 
       
    22 // INCLUDES
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CFbsBitmap;
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 const TInt KImageTopMargin = 4 ;
       
    30 const TInt KImageBottomMargin = 4;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  
       
    36 */
       
    37 class CAboutImage : public CBase
       
    38     {
       
    39     public: // Constructors and destructor
       
    40         
       
    41         static CAboutImage* NewLC( const TDesC& aFileName, TInt aBitmapId,
       
    42                                    TInt aStartLine, TInt aBaseLineDelta );
       
    43 
       
    44         /**
       
    45         * Destructor
       
    46         */
       
    47         ~CAboutImage();
       
    48 
       
    49     public: // New functions
       
    50 
       
    51         TInt HeightInPixels() const;
       
    52         TInt WidthInPixels() const;
       
    53         TInt StartLine() const;
       
    54         TInt EndLine() const;
       
    55         TInt Lines() const;
       
    56         const CFbsBitmap* Bitmap() const;
       
    57 
       
    58     private: // private constructor
       
    59 
       
    60         /**
       
    61         * C++ default constructor.
       
    62         */
       
    63         CAboutImage();
       
    64 
       
    65     private:  // Data
       
    66 
       
    67         CFbsBitmap* iBitmap; // owned
       
    68         TInt iStartLine;
       
    69         TInt iEndLine;
       
    70     };
       
    71 
       
    72 #endif // ABOUTIMAGE_H
       
    73 
       
    74 // End of File