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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __TZLOCALIZEDCITYRECORD_H__
17 #define __TZLOCALIZEDCITYRECORD_H__
23 Class used instead of CTzLocalizedCity which we can't use in TZ.
27 class CTzLocalizedCityRecord : public CBase
30 IMPORT_C static CTzLocalizedCityRecord* NewL(const TDesC& aName, TUint8 aGroupId, TInt aIndex,
31 TInt aTzId, TUint aTzResourceId);
32 IMPORT_C static CTzLocalizedCityRecord* NewLC(const TDesC& aName, TUint8 aGroupId, TInt aIndex,
33 TInt aTzId, TUint aTzResourceId);
34 IMPORT_C static CTzLocalizedCityRecord* NewL(RReadStream& aStream);
35 IMPORT_C static CTzLocalizedCityRecord* NewLC(RReadStream& aStream);
36 IMPORT_C ~CTzLocalizedCityRecord();
37 IMPORT_C static void CleanupArray(TAny* aArray);
40 CTzLocalizedCityRecord();
41 CTzLocalizedCityRecord(TUint8 aGroupId, TInt aIndex, TUint aTzResourceId);
42 void ConstructL(const TDesC& aName, TInt aTzId);
43 void ConstructL(RReadStream& aStream);
46 inline const TDesC& Name() const;
47 inline TUint8 GroupId() const;
48 inline TInt Index() const;
49 inline TUint16 TzId() const;
50 inline TUint TzResourceId() const;
53 IMPORT_C TInt ExternalizeSize() const;
54 IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
55 IMPORT_C static TInt ExternalizeSize(const RPointerArray<CTzLocalizedCityRecord>& aCities);
56 IMPORT_C static void ExternalizeL(const RPointerArray<CTzLocalizedCityRecord>& aCities,
57 RWriteStream& aStream);
58 IMPORT_C static void InternalizeL(RReadStream& aStream, RPointerArray<CTzLocalizedCityRecord>& aCities);
68 #include "tzlocalizedcityrecord.inl"