browserutilities/favouritesengine/ClientServer/srvinc/FavouritesSrvDbIncremental.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 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 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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *      Declaration of class RFavouritesSrvDbIncremental.
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef FAVOURITES_SRV_DB_INCREMENTAL_H
       
    22 #define FAVOURITES_SRV_DB_INCREMENTAL_H
       
    23 
       
    24 //  INCLUDES
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <d32dbms.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 class CFavouritesSrvDb;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 * Server side incremental object for Favourites Engine.
       
    37 */
       
    38 NONSHARABLE_CLASS(CFavouritesSrvDbIncremental): public CBase
       
    39     {
       
    40     public:     // construct / destruct
       
    41 
       
    42         /**
       
    43         * Constructor.
       
    44         */
       
    45         inline CFavouritesSrvDbIncremental();
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         inline virtual ~CFavouritesSrvDbIncremental();
       
    51 
       
    52     public:     // new methods
       
    53 
       
    54         /**
       
    55         * Start incremental recovery on the given database.
       
    56         * @param aDb The database to be recovered.
       
    57         * @param aStep Placeholder for the step counter to be returned.
       
    58         */
       
    59         void RecoverL( CFavouritesSrvDb& aDb, TInt& aStep );
       
    60 
       
    61         /**
       
    62         * Start incremental compaction on the given database.
       
    63         * @param aDb The database to be compacted.
       
    64         * @param aStep Placeholder for the step counter to be returned.
       
    65         * @return Error code.
       
    66         */
       
    67         void CompactL( CFavouritesSrvDb& aDb, TInt& aStep );
       
    68 
       
    69         /**
       
    70         * Perform next step of incremental operation.
       
    71         * @param aStep Step counter.
       
    72         * @return Error code.
       
    73         */
       
    74         void NextL( TInt& aStep );
       
    75 
       
    76         /**
       
    77         * Get step counter.
       
    78         * @return Step.
       
    79         */
       
    80         inline TInt Step();
       
    81 
       
    82     private:        // Data
       
    83 
       
    84         RDbIncremental iIncremental;    ///< DBMS incremental object.
       
    85         TInt iStep;                     ///< Step.
       
    86     };
       
    87 
       
    88 #include "FavouritesSrvDbIncremental.inl"
       
    89 
       
    90 #endif
       
    91             
       
    92 // End of File