phonebookui/Phonebook2/Presentation/inc/MPbk2ImageReaderObserver.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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 *     Class CPbkThumbnailManager implementation classes.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MPBK2IMAGEREADEROBSERVER_H
       
    21 #define MPBK2IMAGEREADEROBSERVER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32def.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CPbk2ImageReader;
       
    28 class CFbsBitmap;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * Observer interface for CPbkThumbnailReader.
       
    34  */
       
    35 class MPbk2ImageReaderObserver
       
    36 	{
       
    37     public:
       
    38         /**
       
    39          * Called by CPbkImageReader when image read is complete.
       
    40          *
       
    41          * @param aReader   the completed reader.
       
    42          * @param aBitmap   the read image.
       
    43          */
       
    44         virtual void ImageReadComplete
       
    45             (CPbk2ImageReader& aReader, CFbsBitmap* aBitmap) =0;
       
    46 
       
    47         /**
       
    48          * Called by CPbkImageReader if image reading fails.
       
    49          *
       
    50          * @param aReader   the failed reader.
       
    51          * @param aError    error code of the failure.
       
    52          */
       
    53         virtual void ImageReadFailed(CPbk2ImageReader& aReader, TInt aError) =0;
       
    54 
       
    55         /**
       
    56          * Called by CPbkImageReader when image open is complete.
       
    57          * After this event CPbkImageReader 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(CPbk2ImageReader& /*aReader*/)
       
    65 			{
       
    66 			}
       
    67     };
       
    68 
       
    69 #endif // MPBK2IMAGEREADEROBSERVER_H
       
    70 
       
    71 // End of File