calendarui/regionalplugins/calenregionalutil/inc/calenlunarlocalizer.h
branchRCL_3
changeset 65 12af337248b1
parent 0 f979ecb2b13e
child 66 bd7edf625bdd
equal deleted inserted replaced
60:96907930389d 65:12af337248b1
    20 #ifndef __CALENLUNARLOCALIZER_H__
    20 #ifndef __CALENLUNARLOCALIZER_H__
    21 #define __CALENLUNARLOCALIZER_H__
    21 #define __CALENLUNARLOCALIZER_H__
    22 
    22 
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <badesca.h>
    24 #include <badesca.h>
    25 #include "calenlunarlocalizedinfo.h"
    25 #include "CalenLunarLocalizedInfo.h"
    26 #include "CalendarVariant.hrh"
    26 #include "CalendarVariant.hrh"
    27 #include "calendarui_debug.h"
    27 #include "calendarui_debug.h"
    28 
    28 
       
    29 class QStringList;
    29 class CEikonEnv;
    30 class CEikonEnv;
    30 class TCalenLunarInfo;
    31 class TCalenLunarInfo;
    31 class TChineseDate;
    32 class TChineseDate;
    32 class CFont;
    33 class CFont;
    33 class CCalenExtraRowFormatter;
    34 class CCalenExtraRowFormatter;
    39 
    40 
    40     IMPORT_C virtual ~CCalenLunarLocalizer();
    41     IMPORT_C virtual ~CCalenLunarLocalizer();
    41     
    42     
    42     IMPORT_C virtual CCalenLunarLocalizedInfo* LocalizeL( TCalenLunarInfo& aInfo );
    43     IMPORT_C virtual CCalenLunarLocalizedInfo* LocalizeL( TCalenLunarInfo& aInfo );
    43     
    44     
    44     IMPORT_C virtual TPtrC GetExtraRowTextL( CCalenLunarLocalizedInfo& aLocInfo, 
    45     IMPORT_C virtual TPtrC GetExtraRowTextL( CCalenLunarLocalizedInfo& aLocInfo );
    45                                     TInt aMaxWidth, 
       
    46                                     const CFont& aFont,
       
    47 									TBool aTwoLines
       
    48                                   );
       
    49     
    46     
    50 
    47 
    51 protected:
    48 protected:
    52     IMPORT_C CCalenLunarLocalizer();
    49     IMPORT_C CCalenLunarLocalizer();
    53 
    50 
    66 
    63 
    67     /**
    64     /**
    68      * Localized names of lunar festivals
    65      * Localized names of lunar festivals
    69      * Own.
    66      * Own.
    70      */
    67      */
    71     CDesCArray* iFestivalNames;
    68     QStringList iFestivalNames;
    72     
    69 
    73     /**
    70     /**
    74      * Localized names of solar terms 
    71      * Localized names of solar terms 
    75      * Own.
    72      * Own.
    76      */
    73      */
    77     CDesCArray* iSolarTermNames;
    74     QStringList iSolarTermNames;
    78 
    75 
    79     /**
    76     /**
    80      * Localized names of animal years
    77      * Localized names of animal years
    81      * Own.
    78      * Own.
    82      */
    79      */
    83     CDesCArray* iAnimalYearNames;
    80     QStringList iAnimalYearNames;
    84 
    81 
    85     /**
    82     /**
    86      * Localized names of heavenly stems
    83      * Localized names of heavenly stems
    87      * Own.
    84      * Own.
    88      */
    85      */
    89     CDesCArray* iHeavenlyStemNames;
    86     QStringList iHeavenlyStemNames;
    90 
    87 
    91     /**
    88     /**
    92      * Localized names of terrestial branches
    89      * Localized names of terrestial branches
    93      * Own.
    90      * Own.
    94      */
    91      */
    95     CDesCArray* iTerrestialBranchNames;
    92     QStringList iTerrestialBranchNames;
    96 
    93 
    97 
    94 
    98     /**
       
    99      * Format string for western date.
       
   100      * Own.
       
   101      */
       
   102     HBufC* iGregorianDateFormat;
       
   103 
       
   104     TBuf<1000> iLunarExtraRowText;
    95     TBuf<1000> iLunarExtraRowText;
   105 
       
   106 
    96 
   107     /**
    97     /**
   108      * Language independent formatter of extra row information.
    98      * Language independent formatter of extra row information.
   109      */
    99      */
   110     CCalenExtraRowFormatter* iRowFormatter;
   100     CCalenExtraRowFormatter* iRowFormatter;
   111     
   101     
   112     TInt  iResourceFileOffset;
       
   113 
       
   114     };
   102     };
   115 
   103 
   116 #endif // __CALENLUNARLOCALIZER_H__
   104 #endif // __CALENLUNARLOCALIZER_H__