diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/app/mpbkthumbnailoperationobservers.h --- a/epoc32/include/app/mpbkthumbnailoperationobservers.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/app/mpbkthumbnailoperationobservers.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,122 @@ -mpbkthumbnailoperationobservers.h +/* +* 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* Phonebook asyncronous thumbnail operation observer interfaces. +* +*/ + + +#ifndef __MPbkThumbnailOperationObservers_H__ +#define __MPbkThumbnailOperationObservers_H__ + +// INCLUDES +#include + +// FORWARD DECLARATIONS +class MPbkThumbnailOperation; +class CFbsBitmap; +class CPbkImageDataWithInfo; + +// CLASS DECLARATION + +/** + * Observer interface for CPbkThumbnailManager get operation. + * Only one of the event callbacks is called once by the operation. + * + * @see CPbkThumbnailManager::GetThumbnailAsyncL + */ +class MPbkThumbnailGetObserver + { + public: + /** + * Called when thumbnail loading is completed. + * + * @param aOperation The completed operation. + * @param aBitmap The loaded bitmap. Callee is responsible of + * the bitmap. + */ + virtual void PbkThumbnailGetComplete + (MPbkThumbnailOperation& aOperation, CFbsBitmap* aBitmap) =0; + + /** + * Called if the thumbnail loading fails. + * + * @param aOperation The failed operation. + * @param aError Error code of the failure. + */ + virtual void PbkThumbnailGetFailed + (MPbkThumbnailOperation& aOperation, TInt aError) =0; + }; + + +/** + * Observer interface for CPbkThumbnailManager get image operation. + * Only one of the event callbacks is called once by the operation. + * + * @see CPbkThumbnailManager::GetThumbnailImageAsyncL + */ +class MPbkThumbnailGetImageObserver + { + public: + /** + * Called when thumbnail loading is completed. + * + * @param aOperation The completed operation. + * @param aImageData The thumbnail image. Caller is responsible + * of the object. + */ + virtual void PbkThumbnailGetImageComplete + (MPbkThumbnailOperation& aOperation, CPbkImageDataWithInfo* aImageData) =0; + + /** + * Called if the thumbnail loading fails. + * + * @param aOperation The failed operation. + * @param aError Error code of the failure. + */ + virtual void PbkThumbnailGetImageFailed + (MPbkThumbnailOperation& aOperation, TInt aError) =0; + }; + + +/** + * Observer interface for CPbkThumbnailManager set operations. + * Only one of the event callbacks is called once by the operation. + * + * @see CPbkThumbnailManager::SetThumbnailAsyncL + */ +class MPbkThumbnailSetObserver + { + public: + /** + * Called when thumbnail setting is completed. + * + * @param aOperation The completed operation. + */ + virtual void PbkThumbnailSetComplete + (MPbkThumbnailOperation& aOperation) =0; + + /** + * Called if the thumbnail setting fails. + * + * @param aOperation The failed operation. + * @param aError Error code of the failure. + */ + virtual void PbkThumbnailSetFailed + (MPbkThumbnailOperation& aOperation, TInt aError) =0; + }; + +#endif // __MPbkThumbnailOperationObservers_H__ + +// End of File