browserutilities/favouritesengine/ClientServer/src/FavouritesDbIncremental.cpp
changeset 0 dd21522fd290
child 25 0ed94ceaa377
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 *      Implementation of class CFavouritesDbIncremental
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 
       
    23 #include "FavouritesDbIncremental.h"
       
    24 #include "FavouritesDb.h"
       
    25 #include "FavouritesMsg.h"
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =======================
       
    28 
       
    29 // ---------------------------------------------------------
       
    30 // RFavouritesDbIncremental::Recover
       
    31 // ---------------------------------------------------------
       
    32 //
       
    33 EXPORT_C TInt RFavouritesDbIncremental::Recover
       
    34 ( RFavouritesDb& aDb, TInt& aStep )
       
    35     {
       
    36     TPckg<TInt> step( aStep );
       
    37     return Open( aDb, EFavengIncrementalRecover, TIpcArgs( &step ) );
       
    38     }
       
    39 
       
    40 // ---------------------------------------------------------
       
    41 // RFavouritesDbIncremental::Compact
       
    42 // ---------------------------------------------------------
       
    43 //
       
    44 EXPORT_C TInt RFavouritesDbIncremental::Compact
       
    45 ( RFavouritesDb& aDb, TInt& aStep )
       
    46     {
       
    47     TPckg<TInt> step( aStep );
       
    48     return Open( aDb, EFavengIncrementalCompact, TIpcArgs( &step ) );
       
    49     }
       
    50 
       
    51 // ---------------------------------------------------------
       
    52 // RFavouritesDbIncremental::Next
       
    53 // ---------------------------------------------------------
       
    54 //
       
    55 EXPORT_C TInt RFavouritesDbIncremental::Next( TInt& aStep )
       
    56     {
       
    57     TInt ret = SendReceive( EFavengIncrementalNext, TIpcArgs( aStep ) );
       
    58     if ( ret >= 0 )
       
    59         {
       
    60         aStep = ret;
       
    61         ret = KErrNone;
       
    62         }
       
    63     return ret;
       
    64     }
       
    65 
       
    66 //  End of File