imagehandlingutilities/thumbnailmanager/thumbnailserver/inc/thumbnailfetchedchecker.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/imagehandlingutilities/thumbnailmanager/thumbnailserver/inc/thumbnailfetchedchecker.h Wed Apr 14 16:16:51 2010 +0300
@@ -0,0 +1,51 @@
+/*
+* Copyright (c) 2006-2007 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:
+ *
+*/
+#ifndef THUMBNAILFETCHEDCHECKER_H
+#define THUMBNAILFETCHEDCHECKER_H
+
+#include <e32base.h>
+
+NONSHARABLE_CLASS( CThumbnailFetchedChecker ): public CBase
+ {
+public:
+ static CThumbnailFetchedChecker* NewL();
+ virtual ~CThumbnailFetchedChecker();
+public:
+ TInt LastFetchResult( const TDesC& aUri );
+ void SetFetchResult( const TDesC& aUri, TInt aError );
+ void Reset();
+private:
+ CThumbnailFetchedChecker();
+
+ NONSHARABLE_CLASS( CEntry ) : public CBase
+ {
+ public:
+ static CEntry* New( const TDesC& aUri, TInt aError );
+ static TInt FindCB( const TDesC* aUri, const CEntry& aEntry );
+ static TInt InsertCB( const CEntry& aEntry1, const CEntry& aEntry2 );
+ CEntry();
+ virtual ~CEntry();
+ public:
+ HBufC* iUri;
+ TInt iError;
+ };
+
+private:
+ RPointerArray< CEntry > iNotFetched;
+};
+
+#endif // THUMBNAILFETCHEDCHECKER_H