webengine/osswebengine/WebCore/platform/symbian/bitmap/SyncDecodeThread.h
changeset 0 dd21522fd290
child 16 a359256acfc6
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2006 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 the License "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 #ifndef SYNCDECODETHREAD_H
       
    20 #define SYNCDECODETHREAD_H
       
    21 
       
    22 // INCLUDES
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 class BmElem;
       
    27 class CMaskedBitmap;
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  CSynDecodeThread
       
    31 *
       
    32 *  Implementation of file based image class.
       
    33 *  @lib IHL.lib
       
    34 *  @since 3.0
       
    35 */
       
    36 
       
    37 class CSynDecodeThread  : public CBase
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40 
       
    41         static CSynDecodeThread* NewL();
       
    42         virtual ~CSynDecodeThread();
       
    43 
       
    44   public:
       
    45 
       
    46         TInt Decode(const TDesC8& aData, TRequestStatus* aRequestStatus);
       
    47         void Handle( TInt& aBitmapHandle, TInt& aMaskHandle );
       
    48         
       
    49   private: // Private constructors
       
    50 
       
    51         CSynDecodeThread();
       
    52         void ConstructL();
       
    53         static  TInt ScaleInThread(TAny *aPtr);
       
    54 
       
    55   private: // Data
       
    56 
       
    57         // Image status & state
       
    58         BmElem* iElem;
       
    59         RThread iDecoderThread;
       
    60         TBool iUp;
       
    61     };
       
    62 
       
    63 #endif   // SYNCDECODETHREAD_H
       
    64 
       
    65 // End of File