persistentstorage/sql/SRC/Server/Compact/SqlCompactConn.h
branchRCL_3
changeset 9 667e88a979d7
parent 0 08ec8eefde2f
equal deleted inserted replaced
8:fa9941cf3867 9:667e88a979d7
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    43 	
    43 	
    44 public:
    44 public:
    45 	static CSqlCompactConn* NewL(const TDesC& aFullName, TSqlFreePageCallback& aFreePageCallback);
    45 	static CSqlCompactConn* NewL(const TDesC& aFullName, TSqlFreePageCallback& aFreePageCallback);
    46 	virtual ~CSqlCompactConn();
    46 	virtual ~CSqlCompactConn();
    47 	virtual void Release();
    47 	virtual void Release();
    48 	virtual TInt Compact(TInt aPageCount, TInt& aProcessedPageCOunt, TInt aLength);
    48 	virtual TInt Compact(TInt aPageCount, TInt& aProcessedPageCount, TInt aLength);
    49 	void Invariant() const;
    49 	void Invariant() const;
    50 
    50 
    51 private:
    51 private:
    52 	void ConstructL(const TDesC& aFullName, TSqlFreePageCallback& aFreePageCallback);
    52 	void ConstructL(const TDesC& aFullName, TSqlFreePageCallback& aFreePageCallback);
    53 	TInt FreePageCountL();
    53 	TInt FreePageCountL();