os/persistentdata/loggingservices/eventlogger/LogServ/inc/LOGCOMP.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 __LOGCOMP_H__
    17 #define __LOGCOMP_H__
    18 
    19 #include <d32dbms.h>
    20 #include <logwrap.h>
    21 
    22 // Classes referenced
    23 class MLogServDatabaseTransactionInterface;
    24 
    25 
    26 /**
    27 Performs incremental compaction on the LogEng database.
    28 CLogMaintenance owns a CLogCompact instance.  
    29 
    30 @see CLogMaintenance 
    31 @see MLogServDatabaseTransactionInterface
    32 @internalComponent
    33 */
    34 class CLogCompact : public CLogActive
    35 	{
    36 public:
    37 	CLogCompact(MLogServDatabaseTransactionInterface& aDatabase, TInt aPriority);
    38 	void Start(TRequestStatus& aStatus);
    39 	//
    40 private:
    41 	void DoRunL();
    42 	void DoComplete(TInt& aStatus);
    43 	TBool CompactRequired() const;
    44 	//
    45 private:
    46 	MLogServDatabaseTransactionInterface& iDatabase;
    47 	TPckgBuf<TInt> iStep;
    48 	TBool iCompact;
    49 	//
    50 	RDbIncremental iOperation;
    51 	};
    52 
    53 #endif