persistentstorage/centralrepository/cenrepsrv/rstrepos.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:57:14 +0300
branchRCL_3
changeset 23 26645d81f48d
parent 0 08ec8eefde2f
permissions -rw-r--r--
Revision: 201035 Kit: 201035

// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

#ifndef RSTREPOS_H
#define RSTREPOS_H

#include <e32base.h>

/**
@internalComponent
A class to represent a repository whose key(s) have been restored.
It stores the uid of the repository and the list of keys which are
changed during a restoration. 
*/
class CRestoredRepository : public CBase
	{
public:
	CRestoredRepository(TUid aUid);
	~CRestoredRepository();		

	TUid Uid() const;	
	
	const RArray<TUint32>& ChangedKeys() const;  
	
	void AddKeyL(TUint32 aKey);  
	
	static TInt CompareUids(const CRestoredRepository& aRstRepos1,const CRestoredRepository& aRstRepos2);

private:
	TUid iReposUid;
	RArray<TUint32> iChangedKeys;
	};
	
#endif // RSTREPOS_H