phoneengine/PhoneCntFinder/inc/Misc/MPhCntThumbnailLoaderObserver.h
changeset 0 5f000ab63145
child 9 8871b09be73b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneengine/PhoneCntFinder/inc/Misc/MPhCntThumbnailLoaderObserver.h	Mon Jan 18 20:18:27 2010 +0200
@@ -0,0 +1,59 @@
+/*
+* 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:  Defines interface for the observer of thumbnail loader.
+*
+*/
+
+
+#ifndef MPHCNTTHUMBNAILLOADEROBSERVER_H
+#define MPHCNTTHUMBNAILLOADEROBSERVER_H
+
+// INCLUDES
+#include    <e32base.h>
+#include    "CPhCntThumbnailLoader.h"
+
+// FORWARD DECLARATIONS
+class CFbsBitmap;
+
+// CLASS DECLARATION
+
+/**
+*  It defines interface for the observer of thumbnail loader.
+*
+*  @lib PhoneCntFinder
+*  @since 1.0
+*/
+class MPhCntThumbnailLoaderObserver
+    {
+    public: // New functions
+
+        /**
+        * It is called when thumbnail loading has been completed.
+        *
+        * Ownership of the bitmap is transferred to the observer.
+        *
+        * @param aId id, never KNullId.
+        * @param aResult error code.
+        * @param aBitmap bitmap.
+        */
+        virtual void MpctloThumbnailLoaded(
+            CPhCntThumbnailLoader::TThumbnailId aId,
+            TInt aResult, 
+            CFbsBitmap* aBitmap ) = 0;
+       
+    };
+
+#endif      // MPHCNTTHUMBNAILLOADEROBSERVER_H
+            
+// End of File