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