calendarui/regionalplugins/inc/calenlunarinfo.h
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 46 ecd7b9840282
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Calendar Lunar Plugin
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CALENLUNARINFO_H__
       
    19 #define __CALENLUNARINFO_H__
       
    20 
       
    21 #include <e32def.h>
       
    22 #include <calendarconverter.h>
       
    23 
       
    24 class TCalenLunarInfo 
       
    25     {
       
    26 public:
       
    27     enum TFestival
       
    28         {
       
    29         ENoFestival = KErrNotFound,
       
    30         EFestivalSpring,
       
    31         EFestivalLantern,
       
    32         EFestivalDragonBoat,
       
    33         EFestivalSeventhNight,
       
    34         EFestivalGhost,
       
    35         EFestivalMidAutumn,
       
    36         EFestivalDoubleNinth,
       
    37         EFestivalTwelfthMonth,
       
    38         EFestivalNewYearEve
       
    39         };
       
    40 
       
    41     enum TAnimalYear
       
    42         {
       
    43         EYearOfRat = 0,
       
    44         EYearOfOx,
       
    45         EYearOfTiger,
       
    46         EYearOfRabbit,
       
    47         EYearOfDragon,
       
    48         EYearOfSnake,
       
    49         EYearOfHorse,
       
    50         EYearOfSheep,
       
    51         EYearOfMonkey,
       
    52         EYearOfRooster,
       
    53         EYearOfDog,
       
    54         EYearOfPig
       
    55         };
       
    56         
       
    57     typedef TInt TSolarTerm;
       
    58     typedef TInt THeavenlyStem;
       
    59     typedef TInt TTerrestialBranch;
       
    60     
       
    61 public:
       
    62     IMPORT_C    TBool HasFestival();
       
    63     IMPORT_C    TBool HasSolarTerm();
       
    64     
       
    65     IMPORT_C TAnimalYear AnimalYear();
       
    66     
       
    67 public:
       
    68     TFestival     iFestival;
       
    69     TSolarTerm    iSolarTerm;
       
    70     TChineseDate  iLunarDate;
       
    71     TTime         iGregorianDate;
       
    72 
       
    73     THeavenlyStem iHeavenlyStem;    
       
    74     TTerrestialBranch iTerrestialBranch; 
       
    75     };
       
    76 
       
    77 
       
    78 #endif // __CALENLUNARINFO_H__