diff -r 000000000000 -r 08ec8eefde2f persistentstorage/centralrepository/cenrepsrv/rstrepos.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/persistentstorage/centralrepository/cenrepsrv/rstrepos.h Fri Jan 22 11:06:30 2010 +0200 @@ -0,0 +1,46 @@ +// 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 + +/** +@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& ChangedKeys() const; + + void AddKeyL(TUint32 aKey); + + static TInt CompareUids(const CRestoredRepository& aRstRepos1,const CRestoredRepository& aRstRepos2); + +private: + TUid iReposUid; + RArray iChangedKeys; + }; + +#endif // RSTREPOS_H