tzservices/tzserver/Server/Include/tzuserdatacache.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 1997-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 __TZUSERDATACACHE_H__
       
    17 #define __TZUSERDATACACHE_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include "tzconfigagent.h"
       
    21 
       
    22 class CTzUserDataCache : public CBase
       
    23 	{
       
    24 public:
       
    25 	static CTzUserDataCache* NewL();
       
    26 	~CTzUserDataCache();
       
    27 	
       
    28 public:
       
    29 	void SetNames(CTzUserNames* aNames);
       
    30 	void SetIdsL(const RArray<TUint32>& Ids);
       
    31 	TInt SizeOfNames() const;
       
    32 	TInt GetNameSize() const; 
       
    33 	const CTzUserNames& GetNames() const;
       
    34 	const TArray<TUint32> GetIds() const;
       
    35 
       
    36 	TInt SizeOfIds() const; 
       
    37 	void Reset();
       
    38 	
       
    39 private:
       
    40 	CTzUserDataCache();		
       
    41 	
       
    42 private:
       
    43 	CTzUserNames* iNames;
       
    44 	RArray<TUint32> iIds;
       
    45 	};
       
    46 	
       
    47 #endif