commondrm/drmencryptor/inc/DRMEncryptorImage.h
branchRCL_3
changeset 26 1221b68b8a5f
parent 25 50c53e893c3f
child 27 1481bf457703
equal deleted inserted replaced
25:50c53e893c3f 26:1221b68b8a5f
     1 /*
       
     2 * Copyright (c) 2002-2009 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 DRMEncryptor screen.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DRMEncryptorIMAGE_H
       
    20 #define DRMEncryptorIMAGE_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 * CDRMEncryptorImage
       
    36 */
       
    37 class CDRMEncryptorImage : public CBase
       
    38     {
       
    39     public: // Constructors and destructor
       
    40 
       
    41         static CDRMEncryptorImage* NewLC( const TDesC& aFileName, TInt aBitmapId,
       
    42                                    TInt aStartLine, TInt aBaseLineDelta );
       
    43 
       
    44         /**
       
    45         * Destructor
       
    46         */
       
    47         ~CDRMEncryptorImage();
       
    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         CDRMEncryptorImage();
       
    64 
       
    65     private:  // Data
       
    66 
       
    67         CFbsBitmap* iBitmap; // owned
       
    68         TInt iStartLine;
       
    69         TInt iEndLine;
       
    70     };
       
    71 
       
    72 #endif // DRMEncryptorIMAGE_H
       
    73 
       
    74 // End of File