phonebookui/Phonebook/View/inc/MPbkImageReaderObserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 22:40:27 +0200
branchRCL_3
changeset 3 04ab22b956c2
parent 0 e686773b3f54
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*     Class CPbkThumbnailManager implementation classes.
*
*/


#ifndef __MPbkImageReaderObserver_H__
#define __MPbkImageReaderObserver_H__

//  INCLUDES
#include <e32def.h>

// FORWARD DECLARATIONS
class CPbkImageReader;
class CFbsBitmap;

// CLASS DECLARATION

/**
 * Observer interface for CPbkThumbnailReader.
 */
class MPbkImageReaderObserver
	{
    public:
        /**
         * Called by CPbkImageReader when image read is complete.
         *
         * @param aReader   the completed reader.
         * @param aBitmap   the read image.
         */
        virtual void ImageReadComplete
            (CPbkImageReader& aReader, CFbsBitmap* aBitmap) =0;

        /**
         * Called by CPbkImageReader if image reading fails.
         *
         * @param aReader   the failed reader.
         * @param aError    error code of the failure.
         */
        virtual void ImageReadFailed(CPbkImageReader& aReader, TInt aError) =0;

        /**
         * Called by CPbkImageReader when image open is complete.
         * After this event CPbkImageReader functions FrameCount() and 
         * FrameInfo() can be called.
         * Default implementation is empty as most clients are interested of 
         * ImageReadComplete/Failed events only.
         *
         * @param aReader   the completed reader.
         */
        virtual void ImageOpenComplete(CPbkImageReader& /*aReader*/)
			{
			}
    };

#endif // __MPbkImageReaderObserver_H__

// End of File