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 "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 __TZUPDATE_H__
17 #define __TZUPDATE_H__
19 #include <e32cmn.h> // TUid.
22 /** UTC Offset update notification constants. When the UTC offset is automatically
23 adjusted for Daylight Saving then it is possible to receive
24 notification using the Publish and Subscribe API with the
25 values defined here. Note that this property is updated by the Time Zone Server
26 as this is the only component that can modify the UTC Offset.
28 @see RProperty in e32property.h
32 /** Time zone services publish and subscribe property category.
36 const TUid KPropertyCategory = { 0x1020383E };
38 /** Time zone services publish and subscribe property keys.
44 EUtcOffsetChangeNotification,
52 /** Structure used to return the value for ECurrentTimeZoneId or
53 EHomeTimeZoneId property.
54 @see RTz::NotifyHomeTimeZoneChangedL
58 struct TTimeZoneChange
64 /** This struct is used to publish DST Change info in an RProperty.
65 Subscribers to the ENextDSTChange property will define a copy of this struct
66 so that they are not dependant on the tz component.
67 If this struct changes then the copies must also be changed.
73 /** The version of the struct. Currently always 1 */
76 /** The time of the next offset change in UTC */
77 TTime iNextDSTChangeUTC;
78 /** The offset from UTC (in minutes) after the next DST change will take place.*/
81 /** The time of the previous offset change in UTC. This member is only valid if the version is 2 or above. */
82 TTime iPreviousDSTChangeUTC;
84 /** The offset from UTC (in minutes) before the previous DST change took place. This member is only valid
85 if the version is 2 or above.*/
86 TInt iPreviousUTCOffset;
88 /** Reserved for future use.
92 /** Structure used to return the value for ETzRulesChange property.
93 This property covers changes to the system TZ database, the current/system
94 TZ rules or user-defined TZ rules.
100 TTime iUTCTimeOfRulesChange;
103 /** Structure used to return the value for ETzNamesChange property.
104 This property covers changes to either the localized system TZ names
105 or non-localized user-defined TZ names.
109 struct TTzNamesChange
111 TTime iUTCTimeOfNamesChange;
115 #endif // __TZUPDATE_H__