epoc32/include/mw/tzconverter.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/tzconverter.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     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 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".
     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