pimappsupport/chinesecalendaralg/pluginsrc/chinesecalendarconverterimpl.h
branchRCL_3
changeset 12 38571fd2a704
equal deleted inserted replaced
5:42814f902fe6 12:38571fd2a704
       
     1 // Copyright (c) 2000-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 __CHINESECALENDARCONVERTERIMPL_H__
       
    17 #define __CHINESECALENDARCONVERTERIMPL_H__
       
    18 
       
    19 #include <calendarconverterplugin.h>
       
    20 #include "chinesecalendar.h"
       
    21 
       
    22 class CChineseCalendarConverterImpl : public CChineseCalendarConverterEcomPlugin
       
    23 	{
       
    24 public:
       
    25 	static CChineseCalendarConverter* NewL();
       
    26 	virtual void DateTimeToChineseL(const TDateTime& aDateTime, TChineseDate& aChineseDate);
       
    27 	virtual void ChineseToDateTimeL(const TChineseDate& aChineseDate, TDateTime& aDateTime);
       
    28 	virtual void DateRange(TDateTime& aLower, TDateTime& aUpper);
       
    29 	virtual void DateRange(TChineseDate& aLower, TChineseDate& aUpper);
       
    30 	virtual TReal JulianDate() __SOFTFP;
       
    31 
       
    32 private:
       
    33 	TChineseCalendar iCalendar;
       
    34 	};
       
    35 
       
    36 #endif