photosgallery/collectionframework/thumbnailcreator/inc/glxtncleanuptask.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:    Thumbnail storage cleanup task implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  * @internal reviewed 30/07/2007 by Simon Brooks
       
    23  */
       
    24 
       
    25 #ifndef GLXTNCLEANUPTASK_H
       
    26 #define GLXTNCLEANUPTASK_H
       
    27 
       
    28 // INCLUDES
       
    29 
       
    30 #include "glxtntask.h"
       
    31 
       
    32 // CONSTANTS
       
    33 
       
    34 // MACROS
       
    35 
       
    36 // DATA TYPES
       
    37 
       
    38 // FUNCTION PROTOTYPES
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 
       
    42 // CLASS DECLARATION
       
    43 
       
    44 /**
       
    45 * Background task to clean thumbnail storage of thumbnails for files which no
       
    46 * longer exist.
       
    47 *
       
    48 * @author Dan Rhodes
       
    49 * @ingroup glx_thumbnail_creator
       
    50 */
       
    51 NONSHARABLE_CLASS(CGlxtnCleanupTask) : public CGlxtnTask
       
    52     {
       
    53     public:  // Constructors and destructor
       
    54 
       
    55         /**
       
    56         * Two-phased constructor.
       
    57         * @param aStorage Client's storage interface.
       
    58         */
       
    59         static CGlxtnCleanupTask* NewL(MGlxtnThumbnailStorage* aStorage);
       
    60 
       
    61         /**
       
    62         * Destructor.
       
    63         */
       
    64         virtual ~CGlxtnCleanupTask();
       
    65 
       
    66     private:    // From CGlxtnTask
       
    67         TBool DoStartL(TRequestStatus& aStatus);
       
    68     	void DoCancel(); 
       
    69     	TBool DoRunL(TRequestStatus& aStatus);
       
    70         TBool DoRunError(TInt aError);
       
    71 
       
    72     private:
       
    73         /**
       
    74         * C++ default constructor.
       
    75         * @param aStorage Client's storage interface.
       
    76         */
       
    77         CGlxtnCleanupTask(MGlxtnThumbnailStorage* aStorage);
       
    78 
       
    79         /**
       
    80         * By default Symbian 2nd phase constructor is private.
       
    81         */
       
    82         void ConstructL();
       
    83 
       
    84     private:    // Data
       
    85     };
       
    86 
       
    87 #endif  // GLXTNCLEANUPTASK_H
       
    88 
       
    89 // End of File