author | William Roberts <williamr@symbian.org> |
Tue, 16 Mar 2010 16:12:26 +0000 | |
branch | Symbian2 |
changeset 2 | 2fe1408b6811 |
parent 0 | 061f57f2323e |
permissions | -rw-r--r-- |
williamr@2 | 1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 2 |
// All rights reserved. |
williamr@2 | 3 |
// This component and the accompanying materials are made available |
williamr@2 | 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 |
williamr@2 | 5 |
// which accompanies this distribution, and is available |
williamr@2 | 6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
williamr@2 | 7 |
// |
williamr@2 | 8 |
// Initial Contributors: |
williamr@2 | 9 |
// Nokia Corporation - initial contribution. |
williamr@2 | 10 |
// |
williamr@2 | 11 |
// Contributors: |
williamr@2 | 12 |
// |
williamr@2 | 13 |
// Description: |
williamr@2 | 14 |
// |
williamr@2 | 15 |
|
williamr@2 | 16 |
#ifndef __TZUPDATE_H__ |
williamr@2 | 17 |
#define __TZUPDATE_H__ |
williamr@2 | 18 |
|
williamr@2 | 19 |
#include <e32cmn.h> // TUid. |
williamr@2 | 20 |
|
williamr@2 | 21 |
/** UTC Offset update notification constants. When the UTC offset is automatically |
williamr@2 | 22 |
adjusted for Daylight Saving then it is possible to receive |
williamr@2 | 23 |
notification using the Publish and Subscribe API with the |
williamr@2 | 24 |
values defined here. Note that this property is updated by the Time Zone Server |
williamr@2 | 25 |
as this is the only component that can modify the UTC Offset. |
williamr@2 | 26 |
|
williamr@2 | 27 |
@see RProperty in e32property.h |
williamr@2 | 28 |
@publishedAll |
williamr@2 | 29 |
@released |
williamr@2 | 30 |
@since 9.1 |
williamr@2 | 31 |
*/ |
williamr@2 | 32 |
namespace NTzUpdate |
williamr@2 | 33 |
{ |
williamr@2 | 34 |
const TUid KPropertyCategory = { 0x1020383E }; |
williamr@2 | 35 |
|
williamr@2 | 36 |
enum TPropertyKeys |
williamr@2 | 37 |
{ |
williamr@2 | 38 |
EUtcOffsetChangeNotification, |
williamr@2 | 39 |
ECurrentTimeZoneId, |
williamr@2 | 40 |
EHomeTimeZoneId, |
williamr@2 | 41 |
ENextDSTChange |
williamr@2 | 42 |
}; |
williamr@2 | 43 |
|
williamr@2 | 44 |
struct TTimeZoneChange |
williamr@2 | 45 |
{ |
williamr@2 | 46 |
TInt iNewTimeZoneId; |
williamr@2 | 47 |
TInt iOldTimeZoneId; |
williamr@2 | 48 |
}; |
williamr@2 | 49 |
|
williamr@2 | 50 |
/** This struct is used to publish DST Change info in an RProperty. |
williamr@2 | 51 |
Subscribers to the property will define a copy of this struct |
williamr@2 | 52 |
so that they are not dependant on the tz component. |
williamr@2 | 53 |
If this struct changes then the copies must also be changed. |
williamr@2 | 54 |
@internalTechnology |
williamr@2 | 55 |
*/ |
williamr@2 | 56 |
struct TDSTChangeInfo |
williamr@2 | 57 |
{ |
williamr@2 | 58 |
/** The version of the struct. Currently always 1 */ |
williamr@2 | 59 |
TUint8 iVersion; |
williamr@2 | 60 |
|
williamr@2 | 61 |
/** The time of the next offset change in UTC */ |
williamr@2 | 62 |
TTime iNextDSTChangeUTC; |
williamr@2 | 63 |
/** The offset from UTC (in minutes) after the next DST change will take place.*/ |
williamr@2 | 64 |
TInt iNextUTCOffset; |
williamr@2 | 65 |
|
williamr@2 | 66 |
/** The time of the previous offset change in UTC. This member is only valid if the version is 2 or above. */ |
williamr@2 | 67 |
TTime iPreviousDSTChangeUTC; |
williamr@2 | 68 |
|
williamr@2 | 69 |
/** The offset from UTC (in minutes) before the previous DST change took place. This member is only valid |
williamr@2 | 70 |
if the version is 2 or above.*/ |
williamr@2 | 71 |
TInt iPreviousUTCOffset; |
williamr@2 | 72 |
|
williamr@2 | 73 |
/** Reserved for future use. */ |
williamr@2 | 74 |
TInt iReserved[12]; |
williamr@2 | 75 |
}; |
williamr@2 | 76 |
} |
williamr@2 | 77 |
|
williamr@2 | 78 |
#endif // __TZUPDATE_H__ |