added tizen engineer mode to system
[profile/ivi/wrt-plugins-ivi.git] / src / Locale / Locale.idl
1 /**
2
3
4 Details. 
5
6 \def-api-feature http://tizen.org/api/vehicle 
7 \brief Allows access to the vehicle API
8
9
10 */
11
12
13 [NoInterfaceObject]
14 interface LocaleManagerObject {
15     readonly attribute Locale locale;
16 };
17
18 Tizen implements Locale;
19
20 callback LocaleChangedCallback = void (DOMString newLocale);
21
22
23 [NoInterfaceObject]
24 interface Locale  { 
25
26         /**
27          *  \brief gets the current locale
28          *  \returns current locale in ISO 639-2 format (ie en_US for english US)
29          **/
30         void getLocale();
31         
32         /**
33          *  \brief sets the system locale
34          *  \param newLocale locale to set in ISO 639-2 format
35          **/
36          void setLocale(DOMString newLocale)
37          
38          /**
39          *  \brief subscribe to locale changes.
40          *  \param cb callback to be called when this even occurs.
41          **/
42          void localeChanged(LocaleChangedCallback cb);
43
44 };
45