2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * 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
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Phonebook asyncronous thumbnail operation observer interfaces.
20 #ifndef __MPbkThumbnailOperationObservers_H__
21 #define __MPbkThumbnailOperationObservers_H__
26 // FORWARD DECLARATIONS
27 class MPbkThumbnailOperation;
29 class CPbkImageDataWithInfo;
34 * Observer interface for CPbkThumbnailManager get operation.
35 * Only one of the event callbacks is called once by the operation.
37 * @see CPbkThumbnailManager::GetThumbnailAsyncL
39 class MPbkThumbnailGetObserver
43 * Called when thumbnail loading is completed.
45 * @param aOperation The completed operation.
46 * @param aBitmap The loaded bitmap. Callee is responsible of
49 virtual void PbkThumbnailGetComplete
50 (MPbkThumbnailOperation& aOperation, CFbsBitmap* aBitmap) =0;
53 * Called if the thumbnail loading fails.
55 * @param aOperation The failed operation.
56 * @param aError Error code of the failure.
58 virtual void PbkThumbnailGetFailed
59 (MPbkThumbnailOperation& aOperation, TInt aError) =0;
64 * Observer interface for CPbkThumbnailManager get image operation.
65 * Only one of the event callbacks is called once by the operation.
67 * @see CPbkThumbnailManager::GetThumbnailImageAsyncL
69 class MPbkThumbnailGetImageObserver
73 * Called when thumbnail loading is completed.
75 * @param aOperation The completed operation.
76 * @param aImageData The thumbnail image. Caller is responsible
79 virtual void PbkThumbnailGetImageComplete
80 (MPbkThumbnailOperation& aOperation, CPbkImageDataWithInfo* aImageData) =0;
83 * Called if the thumbnail loading fails.
85 * @param aOperation The failed operation.
86 * @param aError Error code of the failure.
88 virtual void PbkThumbnailGetImageFailed
89 (MPbkThumbnailOperation& aOperation, TInt aError) =0;
94 * Observer interface for CPbkThumbnailManager set operations.
95 * Only one of the event callbacks is called once by the operation.
97 * @see CPbkThumbnailManager::SetThumbnailAsyncL
99 class MPbkThumbnailSetObserver
103 * Called when thumbnail setting is completed.
105 * @param aOperation The completed operation.
107 virtual void PbkThumbnailSetComplete
108 (MPbkThumbnailOperation& aOperation) =0;
111 * Called if the thumbnail setting fails.
113 * @param aOperation The failed operation.
114 * @param aError Error code of the failure.
116 virtual void PbkThumbnailSetFailed
117 (MPbkThumbnailOperation& aOperation, TInt aError) =0;
120 #endif // __MPbkThumbnailOperationObservers_H__