equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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 __TZ_CONVERTER_H__ |
|
17 #define __TZ_CONVERTER_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <tz.h> |
|
21 #include <tzdefines.h> |
|
22 |
|
23 class CTzChangeNotifier; |
|
24 class CVTzActualisedRules; |
|
25 class CTzRuleHolder; |
|
26 |
|
27 /** |
|
28 Converts between time expressed in UTC and local time. |
|
29 |
|
30 @publishedAll |
|
31 @released |
|
32 |
|
33 @see RTz |
|
34 @since 9.1 |
|
35 */ |
|
36 class CTzConverter : public CBase |
|
37 { |
|
38 public: |
|
39 |
|
40 IMPORT_C static CTzConverter* NewL(RTz& aTzServer); |
|
41 IMPORT_C ~CTzConverter(); |
|
42 IMPORT_C TInt ConvertToLocalTime(TTime& aTime); |
|
43 IMPORT_C TInt ConvertToLocalTime(TTime& aTime, const CTzId& aZone); |
|
44 IMPORT_C TInt ConvertToUniversalTime(TTime& aTime); |
|
45 IMPORT_C TInt ConvertToUniversalTime(TTime& aTime, const CTzId& aZone); |
|
46 IMPORT_C TUint16 CurrentTzId(); |
|
47 |
|
48 void NotifyTimeZoneChangeL(RTz::TTzChanges aChange); |
|
49 const RTz& Server() const; |
|
50 private: |
|
51 CTzConverter(RTz& aTzServer); |
|
52 void ConstructL(); |
|
53 |
|
54 |
|
55 private: |
|
56 RTz& iTzServer; |
|
57 |
|
58 TAny* iReserved; |
|
59 TAny* iReserved2; |
|
60 }; |
|
61 |
|
62 #endif |