phoneuis/BubbleManager/Inc/BMImageReaderObserver.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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 "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 MMBIMAGEREADEROBSERVER_H
       
    21 #define MMBIMAGEREADEROBSERVER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32def.h>
       
    25 #include "BMImageReader.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CBubbleImageReader;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * Observer interface for CBMThumbnailReader.
       
    34  */
       
    35 class MBubbleImageReaderObserver
       
    36   {
       
    37     public:
       
    38         /**
       
    39          * Called by CBubbleImageReader when image read is complete.
       
    40          *
       
    41          * @param aReader   the completed reader.
       
    42          * @param aBitmap   the read image.
       
    43          */
       
    44         virtual void ImageReadComplete
       
    45             ( CBubbleImageReader& aReader, CFbsBitmap* aBitmap ) = 0;
       
    46 
       
    47         /**
       
    48          * Called by CBubbleImageReader if image reading fails.
       
    49          *
       
    50          * @param aReader   the failed reader.
       
    51          * @param aError    error code of the failure.
       
    52          */
       
    53         virtual void ImageReadFailed( CBubbleImageReader& aReader, TInt aError ) = 0;
       
    54 
       
    55         /**
       
    56          * Called by CBubbleImageReader when image open is complete.
       
    57          * After this event CBubbleImageReader functions FrameCount() and 
       
    58          * FrameInfo() can be called.
       
    59          * Default implementation is empty as most clients are interested of 
       
    60          * ImageReadComplete/Failed events only.
       
    61          *
       
    62          * @param aReader   the completed reader.
       
    63          */
       
    64         virtual void ImageOpenComplete( CBubbleImageReader& aReader ) = 0;
       
    65     };
       
    66 
       
    67 #endif // MMBIMAGEREADEROBSERVER_H
       
    68 
       
    69 // End of File