imagehandlingutilities/thumbnailmanager/thumbnailserver/inc/thumbnailfetchedchecker.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 11 May 2010 16:30:11 +0300
branchRCL_3
changeset 13 ffb2d5dd62e9
parent 11 85a88bc05e45
child 20 2b4b06654caa
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* 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* NewL( 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