00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00022 #ifndef __LOCALEUPDATE_H__
00023 #define __LOCALEUPDATE_H__
00024 
00025 #include <e32base.h>
00026 #include <collate.h>
00027 #include <e32std.h>
00028 #include <e32cons.h>
00029 const TInt KLength = 20;
00030 
00037 class CLocaleSettings : public CBase
00038         {
00039 public:
00040         ~CLocaleSettings();
00041         static CLocaleSettings* NewL(TDesC16& aLocaleDLLName, CConsoleBase* aConsole);
00042         void DisplayLocaleSettings();
00043 
00044 private:
00045         CLocaleSettings();
00046         void ConstructL(TDesC16& aLocaleDLLName, CConsoleBase* aConsole);
00047 private:
00051         TExtendedLocale iExtendedLocale;
00056         TLocale* iLocale;
00060         TDay iStartOfWeek;
00066         TUint iWorkingDaysMask;
00070         TCollationMethod iCollationMethod;
00074         TInt iCountryCode;
00078         TDateFormat iDateFormat;
00082         TTimeFormat iTimeFormat;
00086         TChar iThousandsSeparator;
00090         TChar iDecimalSeparator;
00094         TUnitsFormat iUnitsFormat;
00098         CConsoleBase* iConsole;
00102         TBuf<KLength> iLocaleDLLName;
00106         TTimeIntervalSeconds iUTCOffset;
00107         };
00108 
00109 _LIT(KTextPressAnyKey, "[press any key]\r\n");
00110 _LIT(KTextNewLine, "\r\n");
00111 _LIT(KTextChar, "%c");
00112 _LIT(KTxtEPOC32EX, "EXAMPLES");
00113 _LIT(KTxtExampleCode, "Symbian platform locale Example Code");
00114 _LIT(KTxtOK, "ok");
00115 _LIT(KFormatFailed, "failed: leave code=%d");
00116 
00117 #endif
00118