pimappsupport/chinesecalendaralg/calcontablesrc/CalconTable.h
branchRCL_3
changeset 12 38571fd2a704
equal deleted inserted replaced
5:42814f902fe6 12:38571fd2a704
       
     1 // Copyright (c) 2001-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 __CALCONTABLE_H
       
    17 #define __CALCONTABLE_H
       
    18 
       
    19 #include <f32file.h>
       
    20 #include <e32test.h>
       
    21 
       
    22 class CCalconTableEngine : public CBase
       
    23 	{
       
    24 public:
       
    25 	CCalconTableEngine();
       
    26 	void GenerateTableL();
       
    27 private:
       
    28 	TInt JulianDate(TDateTime& aDate);
       
    29 	void AddNewYear(TInt aChineseNewYear);
       
    30 	void AddMonth(TInt aCycle, TInt aYear, TInt aMonth, TInt aMonthFlag);
       
    31 	void Print(TInt aFile, TPtrC8 aFormat, ...);
       
    32 	void StartPrint(TInt);
       
    33 	void StopPrint(TInt);
       
    34 private:
       
    35 	RTest iTest;
       
    36 	TBool iFirstPrint;
       
    37 	TInt iFirstYear;
       
    38 	TInt iLastYear;
       
    39 	TUint* iYearArray;
       
    40 	TInt iLastMonth;
       
    41 	TInt iYearCounter;
       
    42 	RFile iFile;
       
    43 	RFile iFile2;
       
    44 	RFs iSession;
       
    45 
       
    46 	TInt iCyclePrint;
       
    47 	TInt iMonthPrint;
       
    48 	TInt iYearPrint;
       
    49 	TUint iMonthFlag;
       
    50 	TUint iMonthFlagBit;
       
    51 
       
    52 	TInt iStartJulianDate;
       
    53 	TInt iEndJulianDate;
       
    54 	};
       
    55 #endif