os/persistentdata/loggingservices/eventlogger/LogServ/inc/LOGREC.H
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __LOGREC_H__
    17 #define __LOGREC_H__
    18 
    19 #include <d32dbms.h>
    20 #include <logwrap.h>
    21 
    22 // Classes referenced
    23 class MLogServDatabaseTransactionInterface;
    24 
    25 /**
    26 Performs LogEng database recovery.  
    27  
    28 @see MLogServDatabaseTransactionInterface 
    29 @internalComponent
    30 */
    31 class CLogRecover : public CLogActive
    32 	{
    33 public:
    34 	CLogRecover(MLogServDatabaseTransactionInterface& aDatabase, TInt aPriority);
    35 	TBool Start(TRequestStatus& aStatus);
    36 	//
    37 private:
    38 	void DoRunL();
    39 	void DoComplete(TInt& aStatus);
    40 	//
    41 private:
    42 	MLogServDatabaseTransactionInterface& iDatabase;
    43 	TPckgBuf<TInt> iStep;
    44 	//
    45 	RDbIncremental iOperation;
    46 	};
    47 
    48 #endif