1 // Copyright (c) 2004-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __TZLOCAL_DATATYPES_INL__
17 #define __TZLOCAL_DATATYPES_INL__
19 //==================================================================
20 // TTzLocalizedId inline Functions
21 //==================================================================
23 Returns the time zone ID.
24 @return The time zone ID.
26 inline TUint16 TTzLocalizedId::TimeZoneId() const
32 Returns the resource ID.
33 @return The resource ID.
35 inline TUint TTzLocalizedId::ResourceId() const
41 Returns the UTC offset in minutes.
42 This value should only be used for array sorting.
43 @return The UTC offset in minutes.
45 inline TInt TTzLocalizedId::UTCOffset() const
51 Sets the UTC offset in minutes.
52 This value should only be used for internal array sorting.
53 @param aOffsetInMinutes The new UTC offset in minutes.
55 inline void TTzLocalizedId::SetUTCOffset(TInt aOffsetInMinutes)
57 iUTCOffset = aOffsetInMinutes;
60 //==================================================================
61 // CTzLocalizedArray's inline functions
62 //==================================================================
68 inline CTzLocalizedArray<T>::~CTzLocalizedArray()
70 iArray.ResetAndDestroy();
78 inline CTzLocalizedArray<T>::CTzLocalizedArray()
82 Returns the element at the specified index.
83 @param aIndex Index of the element to get.
84 @return The element at aIndex.
88 inline T& CTzLocalizedArray<T>::At(TInt aIndex) const
90 return *(iArray[aIndex]);
94 Returns the number of elements in the array.
95 @return The number of elements in the array.
99 inline TInt CTzLocalizedArray<T>::Count() const
101 return iArray.Count();
105 Appends aElement to this array.
106 @param aElement The element to add.
110 inline void CTzLocalizedArray<T>::AppendL(T* aElement)
112 iArray.AppendL(aElement);
116 Removes the element at the specified index.
117 @param aIndex The index of the element to remove.
121 inline void CTzLocalizedArray<T>::Remove(TInt aIndex)
123 iArray.Remove(aIndex);
128 @param aOrder The sorting function to use.
132 inline void CTzLocalizedArray<T>::Sort(TLinearOrder<T> aOrder)
138 Finds an element in this array.
139 @param aIdentityRelation finding function to use.
143 inline TInt CTzLocalizedArray<T>::Find(T* aEntry,TIdentityRelation<T> aIdentityRelation)
145 return iArray.Find(aEntry,aIdentityRelation);
148 #endif //__TZLOCAL_DATATYPES_INL__
150 //==================================================================
152 //==================================================================