tzservices/tzloc/inc/tzlocalizationuserdatareader.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 2008-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 TZLOCALIZATIONUSERDATAREADER_H_
       
    17 #define TZLOCALIZATIONUSERDATAREADER_H_
       
    18 
       
    19 #include <e32base.h> //CBase
       
    20 #include "TzLocalizationDataTypes.h"
       
    21 
       
    22 class CTzUserData;
       
    23 class CTzUserNames;
       
    24 class RTz;
       
    25 
       
    26 NONSHARABLE_CLASS(CTzLocalizationUserDataReader) : public CBase
       
    27 	{
       
    28 public:
       
    29 	static CTzLocalizationUserDataReader* NewL(RTz& aTzSession);
       
    30 	static CTzLocalizationUserDataReader* NewLC(RTz& aTzSession);
       
    31 	~CTzLocalizationUserDataReader();
       
    32 
       
    33 	CTzLocalizedTimeZone* ReadTimeZoneL(const TInt aTimeZoneId);
       
    34 	CTzLocalizedTimeZone* ReadTimeZoneL(const TTzLocalizedId& aTzLocalizedId);
       
    35 	void ReadAllTimeZonesL(CTzLocalizedTimeZoneArray& aTimeZones);
       
    36 	void ReadCitiesL(CTzLocalizedCityArray& aCities);
       
    37 	void ReadCitiesL(CTzLocalizedCityArray& aCities, const TInt aTimeZoneId);
       
    38 	void ReadCitiesInGroupL(CTzLocalizedCityArray& aCities, const TUint8 aGroupId);
       
    39 	void ReadAllGroupsL(CTzLocalizedCityGroupArray& aGroups);
       
    40 	CTzLocalizedCity* ReadDefaultCityL(const TInt aTimeZoneId);
       
    41 
       
    42 private:
       
    43 	CTzLocalizationUserDataReader(RTz& aTzSession);
       
    44 	void ConstructL();
       
    45 	
       
    46 	CTzUserNames* GetTzUserNamesLC(TInt aTimeZoneId);
       
    47 	CTzLocalizedTimeZone* GetLocalizedTimeZoneL(TInt aTimeZoneId);
       
    48 	CTzLocalizedCity* GetLocalizedCityL(TInt aTimeZoneId);
       
    49 	CTzLocalizedCityGroup* GetLocalizedCityGroupL(TInt aTimeZoneId);
       
    50 	
       
    51 private:
       
    52 	RTz& iTzSession;
       
    53 	CTzUserData* iUserData;
       
    54 	};
       
    55 
       
    56 #endif /*TZLOCALIZATIONUSERDATAREADER_H_*/