2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Declaration of RFavouritesDbIncremental
19 #ifndef FAVOURITES_DB_INCREMENTAL_H
20 #define FAVOURITES_DB_INCREMENTAL_H
24 #include <FavouritesHandle.h>
26 // FORWARD DECLARATIONS
33 * Incremental object for Favourites Engine.
34 * This class provides incremental database administration (recovery,
35 * compaction). Usually client does not need to use this class.
37 class RFavouritesDbIncremental: public RFavouritesHandle
42 * Start incremental recovery on the given database.
44 * @param aDb The database to be recovered.
45 * @param aStep Placeholder for the step counter to be returned.
48 IMPORT_C TInt Recover( RFavouritesDb& aDb, TInt& aStep );
51 * Start incremental compaction on the given database.
53 * @param aDb The database to be compacted.
54 * @param aStep Placeholder for the step counter to be returned.
57 IMPORT_C TInt Compact( RFavouritesDb& aDb, TInt& aStep );
60 * Perform next step of incremental operation.
62 * @param aStep Step counter.
65 IMPORT_C TInt Next( TInt& aStep );