[SAMPLE APP][INTERNATIONALIZATION] Type definition sections added
authorMichal Pawluk <m.pawluk@samsung.com>
Fri, 18 Sep 2015 08:16:27 +0000 (10:16 +0200)
committerMichal Pawluk <m.pawluk@samsung.com>
Tue, 29 Sep 2015 05:53:43 +0000 (14:53 +0900)
Change-Id: Id1a748dedd9df213fa6b83f08f950c4c8f0bb9de
Signed-off-by: Michal Pawluk <m.pawluk@samsung.com>
org.tizen.sampledescriptions/html/mobile_n/internationalization_sd_mn.htm

index fe54bad..e792737 100644 (file)
 
 <h3 id="type-defs">Type definitions</h3>
 
+<pre class="prettyprint">
+/* The general structure for application's data storage. */
+struct __appdata {
+&nbsp;&nbsp;&nbsp;viewdata_s view;
+};
+
+typedef struct __appdata appdata_s;
+</pre>
+
+<pre class="prettyprint">
+/* The callback function of get_display_language_cb type is called on display language selection from the list of all available languages. */
+typedef bool (*get_display_language_cb)(const char *locale, char **display_language);
+
+/* The callback function of get_available_locale_cb type is called within the <a href="#model">Model</a> module while enumerating all available languages. */
+typedef bool (*get_available_locale_cb)(const char *locale, void *data);
+</pre>
+
+<pre class="prettyprint">
+/* All the Evas_Object objects represent UI widgets. */
+struct __viewdata {
+&nbsp;&nbsp;&nbsp;Evas_Object *win;
+&nbsp;&nbsp;&nbsp;Evas_Object *conform;
+&nbsp;&nbsp;&nbsp;Evas_Object *layout_main_panel;
+&nbsp;&nbsp;&nbsp;Evas_Object *layout_language_top;
+&nbsp;&nbsp;&nbsp;Evas_Object *layout_text_middle;
+&nbsp;&nbsp;&nbsp;Evas_Object *layout_language_bottom;
+&nbsp;&nbsp;&nbsp;Evas_Object *hoversel;
+&nbsp;&nbsp;&nbsp;Evas_Object *button;
+&nbsp;&nbsp;&nbsp;get_display_language_cb get_language_cb;
+};
+
+typedef struct __viewdata viewdata_s;
+</pre>
+
 <h3 id="app-init">Application initialization</h3>
 
 <h3 id="app-finit">Application termination</h3>