calendarui/regionalplugins/KoreanLunar/inc/CalenLunarInfo.h
branchRCL_3
changeset 31 97232defd20e
equal deleted inserted replaced
30:bd7edf625bdd 31:97232defd20e
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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 : Class looking after alarm fields for forms.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CALENLUNARINFO_H__
       
    19 #define __CALENLUNARINFO_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32def.h>
       
    23 #include <calendarconverter.h>
       
    24 
       
    25 /**
       
    26 * Class declaration for Lunar info
       
    27 */ 
       
    28 class TCalenLunarInfo
       
    29     {
       
    30 public:
       
    31     enum TLunarFestival
       
    32         {
       
    33         ENoFestival = KErrNotFound,
       
    34         EFestivalNewYearDay,
       
    35         EFestivalBuddhaBirthDay,
       
    36         EFestivalHarvest,
       
    37         EFestivalFullMoonDay,
       
    38         EFestival3rdMarchDay,
       
    39         EFestivalDano,
       
    40         EFestivalUnknown_1,
       
    41         EFestival7thJulyDay,
       
    42         EFestivalUnknown_2,
       
    43         EFestivalUnknown_3,
       
    44         EFestival105thDayAfterWS    
       
    45         };
       
    46 
       
    47     enum TSolarFestival
       
    48         {
       
    49         ENoSolarFestival = KErrNotFound,
       
    50         ESolarFestivalNewYearDay,
       
    51         ESolarFestivalIndependenceMovement,
       
    52         ESolarFestivalChildrensDay,
       
    53         ESolarFestivalMemorialDay,
       
    54         ESolarFestivalConstitutionDay,
       
    55         ESolarFestivalLiberationDay,
       
    56         ESolarFestivalFoundationDay,
       
    57         ESolarFestivalChristmasDay,
       
    58         ESolarFestivalHangulDay
       
    59         };
       
    60 
       
    61     typedef TInt TSolarTerm;
       
    62 
       
    63 public:
       
    64     TBool HasLunarFestival();
       
    65     TBool HasSolarFestival();
       
    66     TBool HasSolarTerm();
       
    67 
       
    68 public:
       
    69         /**
       
    70         * Lunar Festival.
       
    71         */
       
    72     TLunarFestival  iLunarFestival;
       
    73         /**
       
    74         * Lunar Festival.
       
    75         */
       
    76     TSolarFestival  iSolarFestival;
       
    77         /**
       
    78         * Lunar Festival.
       
    79         */
       
    80     TSolarTerm      iSolarTerm;
       
    81         /**
       
    82         * Lunar Festival.
       
    83         */
       
    84     TChineseDate    iLunarDate;
       
    85         /**
       
    86         * Lunar Festival.
       
    87         */
       
    88     TTime           iGregorianDate;
       
    89     };
       
    90 
       
    91 
       
    92 #endif // __CALENLUNARINFO_H__