xref: /haiku/headers/private/libroot/locale/ICUMessagesData.h (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
1 /*
2  * Copyright 2010-2011, Oliver Tappe, zooey@hirschkaefer.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _ICU_MESSAGES_DATA_H
6 #define _ICU_MESSAGES_DATA_H
7 
8 
9 #include "ICUCategoryData.h"
10 #include "LocaleBackend.h"
11 
12 
13 namespace BPrivate {
14 namespace Libroot {
15 
16 
17 class ICUMessagesData : public ICUCategoryData {
18 	typedef	ICUCategoryData		inherited;
19 
20 public:
21 								ICUMessagesData(pthread_key_t tlsKey);
22 
23 	virtual	status_t			SetTo(const Locale& locale,
24 									const char* posixLocaleName);
25 	virtual	status_t			SetToPosix();
26 
27 			void				Initialize(
28 									LocaleMessagesDataBridge* dataBridge);
29 
30 			const char*			GetLanginfo(int index);
31 
32 private:
33 			char				fYesExpression[80];
34 			char				fNoExpression[80];
35 
36 			const char**		fPosixLanginfo;
37 };
38 
39 
40 }	// namespace Libroot
41 }	// namespace BPrivate
42 
43 
44 #endif	// _ICU_MESSAGES_DATA_H
45