persistentstorage/centralrepository/cenrepsrv/rstrepos.h
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2007-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 RSTREPOS_H
       
    17 #define RSTREPOS_H
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 /**
       
    22 @internalComponent
       
    23 A class to represent a repository whose key(s) have been restored.
       
    24 It stores the uid of the repository and the list of keys which are
       
    25 changed during a restoration. 
       
    26 */
       
    27 class CRestoredRepository : public CBase
       
    28 	{
       
    29 public:
       
    30 	CRestoredRepository(TUid aUid);
       
    31 	~CRestoredRepository();		
       
    32 
       
    33 	TUid Uid() const;	
       
    34 	
       
    35 	const RArray<TUint32>& ChangedKeys() const;  
       
    36 	
       
    37 	void AddKeyL(TUint32 aKey);  
       
    38 	
       
    39 	static TInt CompareUids(const CRestoredRepository& aRstRepos1,const CRestoredRepository& aRstRepos2);
       
    40 
       
    41 private:
       
    42 	TUid iReposUid;
       
    43 	RArray<TUint32> iChangedKeys;
       
    44 	};
       
    45 	
       
    46 #endif // RSTREPOS_H