imagehandlingutilities/thumbnailmanager/thumbnailserver/inc/thumbnailfetchedchecker.h
changeset 54 48dd0f169f0d
parent 42 2e2a89493e2b
equal deleted inserted replaced
42:2e2a89493e2b 54:48dd0f169f0d
     1 /*
       
     2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15  *
       
    16 */
       
    17 #ifndef THUMBNAILFETCHEDCHECKER_H
       
    18 #define THUMBNAILFETCHEDCHECKER_H
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <thumbnailmanager.h>
       
    22 
       
    23 NONSHARABLE_CLASS( CThumbnailFetchedChecker ): public CBase
       
    24     {
       
    25 public:
       
    26     static CThumbnailFetchedChecker* NewL();
       
    27     virtual ~CThumbnailFetchedChecker();
       
    28 public:
       
    29     TInt LastFetchResult( const TDesC& aUri, const TThumbnailSize aThumbnailSize );
       
    30     void SetFetchResult( const TDesC& aUri, const TThumbnailSize aThumbnailSize, TInt aError );
       
    31     void DeleteFetchResult( const TDesC& aUri );
       
    32     void RenameFetchResultL( const TDesC& aNewUri, const TDesC& aOldUri );
       
    33     void Reset();
       
    34 private:
       
    35     CThumbnailFetchedChecker();
       
    36     
       
    37     NONSHARABLE_CLASS( CEntry ) : public CBase
       
    38         {
       
    39     public:
       
    40         static CEntry* NewL( const TDesC& aUri, const TThumbnailSize aThumbnailSize, TInt aError );
       
    41         static TInt FindCB( const CEntry& aEntry1, const CEntry& aEntry );
       
    42         static TInt FindCBUri( const TDesC* aUri, const CEntry& aEntry );
       
    43         static TInt InsertCB( const CEntry& aEntry1, const CEntry& aEntry2 );
       
    44         CEntry();
       
    45         virtual ~CEntry();
       
    46     public:
       
    47         HBufC* iUri;
       
    48         TInt32 iSize;
       
    49         TInt iError;
       
    50         };
       
    51 
       
    52 private:
       
    53     RPointerArray< CEntry > iNotFetched;
       
    54 };
       
    55 
       
    56 #endif // THUMBNAILFETCHEDCHECKER_H