mmsharing/mmshui/inc/musuibitmapdecoder.h
branchRCL_3
changeset 33 bc78a40cd63c
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
       
     1 /*
       
     2 * Copyright (c) 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MUSUIBITMAPDECODER_H
       
    21 #define MUSUIBITMAPDECODER_H
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <f32file.h>
       
    25 
       
    26 class MMusUiBitmapDecoderObserver;
       
    27 class CImageDecoder;
       
    28 class CFbsBitmap;
       
    29 
       
    30 class CMusUiBitmapDecoder : public CActive
       
    31     {
       
    32 
       
    33 public: // constructors and destructor
       
    34 
       
    35     /**
       
    36      * Destructor.
       
    37      */
       
    38     ~CMusUiBitmapDecoder();
       
    39 
       
    40     /**
       
    41      * Two-phased constructor. Leaves on failure.
       
    42      * @return The constructed CMusUiBitmapDecoder instance.
       
    43      */
       
    44     static CMusUiBitmapDecoder* NewL( MMusUiBitmapDecoderObserver& aObserver );
       
    45 
       
    46 private:
       
    47 
       
    48     /**
       
    49      * C++ constructor.
       
    50      */
       
    51     CMusUiBitmapDecoder( MMusUiBitmapDecoderObserver& aObserver );
       
    52 
       
    53     /**
       
    54      * Symbian 2nd-phase constructor.
       
    55      */
       
    56     void ConstructL();
       
    57 
       
    58 
       
    59 public: // new funtions:
       
    60 
       
    61     void ConvertL( HBufC8* aData, CFbsBitmap* aBitmap );
       
    62     
       
    63 
       
    64 private: // functions from base class CActive
       
    65 
       
    66     void DoCancel();
       
    67 
       
    68     void RunL();
       
    69     
       
    70     TInt RunError( TInt aError );
       
    71 
       
    72 private:    // Data
       
    73 
       
    74     MMusUiBitmapDecoderObserver& iObserver;
       
    75     
       
    76     CImageDecoder* iDecoder;
       
    77     
       
    78     CFbsBitmap* iBitmap;
       
    79     
       
    80     RFs iFs;
       
    81     
       
    82     HBufC8* iData;
       
    83     };
       
    84 
       
    85 #endif // MUSUIBITMAPDECODER_H
       
    86 
       
    87 // end of file