rho-tau-extensions 5.5.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (661) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +2 -0
  3. data/LICENSE +21 -0
  4. data/README.md +6 -0
  5. data/Rakefile +90 -0
  6. data/libs/crosswalk.rb +2 -0
  7. data/libs/crosswalk/crosswalk.rb +2 -0
  8. data/libs/crosswalk/ext.yml +21 -0
  9. data/libs/crosswalk/ext/Crosswalk.xml +27 -0
  10. data/libs/crosswalk/ext/build +19 -0
  11. data/libs/crosswalk/ext/build.bat +29 -0
  12. data/libs/crosswalk/ext/platform/android/AndroidManifest.xml +9 -0
  13. data/libs/crosswalk/ext/platform/android/Rakefile +141 -0
  14. data/libs/crosswalk/ext/platform/android/adds/lib/armeabi/libxwalkcore.so +0 -0
  15. data/libs/crosswalk/ext/platform/android/adds/lib/armeabi/libxwalkdummy.so +0 -0
  16. data/libs/crosswalk/ext/platform/android/adds/lib/x86/libxwalkcore.so +0 -0
  17. data/libs/crosswalk/ext/platform/android/adds/lib/x86/libxwalkdummy.so +0 -0
  18. data/libs/crosswalk/ext/platform/android/adds/lib/xwalk_core_library_java.jar +0 -0
  19. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/bubble.9.png +0 -0
  20. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/bubble_arrow_up.png +0 -0
  21. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/color_picker_advanced_select_handle.png +0 -0
  22. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/crosswalk.png +0 -0
  23. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/dropdown_popup_background_down.9.png +0 -0
  24. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/dropdown_popup_background_up.9.png +0 -0
  25. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_menu_share_holo_light.png +0 -0
  26. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_search.png +0 -0
  27. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ic_warning.png +0 -0
  28. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/ondemand_overlay.9.png +0 -0
  29. data/libs/crosswalk/ext/platform/android/adds/res/drawable-hdpi/verify_checkmark.png +0 -0
  30. data/libs/crosswalk/ext/platform/android/adds/res/drawable-ldpi/crosswalk.png +0 -0
  31. data/libs/crosswalk/ext/platform/android/adds/res/drawable-mdpi/crosswalk.png +0 -0
  32. data/libs/crosswalk/ext/platform/android/adds/res/drawable-v21/button_borderless_compat.xml +10 -0
  33. data/libs/crosswalk/ext/platform/android/adds/res/drawable-v21/button_compat.xml +9 -0
  34. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/bubble.9.png +0 -0
  35. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/bubble_arrow_up.png +0 -0
  36. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/color_picker_advanced_select_handle.png +0 -0
  37. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/crosswalk.png +0 -0
  38. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/dropdown_popup_background_down.9.png +0 -0
  39. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/dropdown_popup_background_up.9.png +0 -0
  40. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_menu_share_holo_light.png +0 -0
  41. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_search.png +0 -0
  42. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ic_warning.png +0 -0
  43. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/ondemand_overlay.9.png +0 -0
  44. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xhdpi/verify_checkmark.png +0 -0
  45. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_menu_share_holo_light.png +0 -0
  46. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_search.png +0 -0
  47. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/ic_warning.png +0 -0
  48. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxhdpi/verify_checkmark.png +0 -0
  49. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_menu_share_holo_light.png +0 -0
  50. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_search.png +0 -0
  51. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/ic_warning.png +0 -0
  52. data/libs/crosswalk/ext/platform/android/adds/res/drawable-xxxhdpi/verify_checkmark.png +0 -0
  53. data/libs/crosswalk/ext/platform/android/adds/res/drawable/autofill_chip_inset.xml +15 -0
  54. data/libs/crosswalk/ext/platform/android/adds/res/drawable/bubble.9.png +0 -0
  55. data/libs/crosswalk/ext/platform/android/adds/res/drawable/bubble_arrow_up.png +0 -0
  56. data/libs/crosswalk/ext/platform/android/adds/res/drawable/button_compat_shape.xml +9 -0
  57. data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_button_background.xml +36 -0
  58. data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_picker_advanced_select_handle.png +0 -0
  59. data/libs/crosswalk/ext/platform/android/adds/res/drawable/color_picker_border.xml +12 -0
  60. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_label_color.xml +11 -0
  61. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background.xml +13 -0
  62. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background_down.9.png +0 -0
  63. data/libs/crosswalk/ext/platform/android/adds/res/drawable/dropdown_popup_background_up.9.png +0 -0
  64. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_menu_share_holo_light.png +0 -0
  65. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_search.png +0 -0
  66. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ic_warning.png +0 -0
  67. data/libs/crosswalk/ext/platform/android/adds/res/drawable/launchscreen_bg.xml +19 -0
  68. data/libs/crosswalk/ext/platform/android/adds/res/drawable/ondemand_overlay.9.png +0 -0
  69. data/libs/crosswalk/ext/platform/android/adds/res/drawable/verify_checkmark.png +0 -0
  70. data/libs/crosswalk/ext/platform/android/adds/res/layout-land/date_time_picker_dialog.xml +42 -0
  71. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/autofill_keyboard_accessory_item.xml +40 -0
  72. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/autofill_suggestion_item.xml +18 -0
  73. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_advanced_component.xml +46 -0
  74. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_dialog_content.xml +51 -0
  75. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/color_picker_dialog_title.xml +41 -0
  76. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/date_time_suggestion.xml +35 -0
  77. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/dropdown_item.xml +58 -0
  78. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/multi_field_time_picker_dialog.xml +122 -0
  79. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/two_field_date_picker.xml +38 -0
  80. data/libs/crosswalk/ext/platform/android/adds/res/layout-v17/validation_message_bubble.xml +72 -0
  81. data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_keyboard_accessory_icon.xml +13 -0
  82. data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_keyboard_accessory_item.xml +17 -0
  83. data/libs/crosswalk/ext/platform/android/adds/res/layout/autofill_suggestion_item.xml +7 -0
  84. data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_advanced_component.xml +30 -0
  85. data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_dialog_content.xml +36 -0
  86. data/libs/crosswalk/ext/platform/android/adds/res/layout/color_picker_dialog_title.xml +25 -0
  87. data/libs/crosswalk/ext/platform/android/adds/res/layout/date_time_picker_dialog.xml +42 -0
  88. data/libs/crosswalk/ext/platform/android/adds/res/layout/date_time_suggestion.xml +16 -0
  89. data/libs/crosswalk/ext/platform/android/adds/res/layout/dropdown_item.xml +34 -0
  90. data/libs/crosswalk/ext/platform/android/adds/res/layout/multi_field_time_picker_dialog.xml +50 -0
  91. data/libs/crosswalk/ext/platform/android/adds/res/layout/two_field_date_picker.xml +26 -0
  92. data/libs/crosswalk/ext/platform/android/adds/res/layout/validation_message_bubble.xml +47 -0
  93. data/libs/crosswalk/ext/platform/android/adds/res/menu/select_action_menu.xml +54 -0
  94. data/libs/crosswalk/ext/platform/android/adds/res/raw/contacts_api.js +206 -0
  95. data/libs/crosswalk/ext/platform/android/adds/res/raw/device_capabilities_api.js +231 -0
  96. data/libs/crosswalk/ext/platform/android/adds/res/raw/empty.wav +0 -0
  97. data/libs/crosswalk/ext/platform/android/adds/res/raw/icudtl.dat +0 -0
  98. data/libs/crosswalk/ext/platform/android/adds/res/raw/launch_screen_api.js +9 -0
  99. data/libs/crosswalk/ext/platform/android/adds/res/raw/messaging_api.js +359 -0
  100. data/libs/crosswalk/ext/platform/android/adds/res/raw/presentation_api.js +144 -0
  101. data/libs/crosswalk/ext/platform/android/adds/res/raw/wifidirect_api.js +227 -0
  102. data/libs/crosswalk/ext/platform/android/adds/res/raw/xwalk.pak +0 -0
  103. data/libs/crosswalk/ext/platform/android/adds/res/values-am/android_content_strings.xml +15 -0
  104. data/libs/crosswalk/ext/platform/android/adds/res/values-am/android_ui_strings.xml +47 -0
  105. data/libs/crosswalk/ext/platform/android/adds/res/values-ar/android_content_strings.xml +15 -0
  106. data/libs/crosswalk/ext/platform/android/adds/res/values-ar/android_ui_strings.xml +47 -0
  107. data/libs/crosswalk/ext/platform/android/adds/res/values-bg/android_content_strings.xml +15 -0
  108. data/libs/crosswalk/ext/platform/android/adds/res/values-bg/android_ui_strings.xml +47 -0
  109. data/libs/crosswalk/ext/platform/android/adds/res/values-ca/android_content_strings.xml +15 -0
  110. data/libs/crosswalk/ext/platform/android/adds/res/values-ca/android_ui_strings.xml +47 -0
  111. data/libs/crosswalk/ext/platform/android/adds/res/values-cs/android_content_strings.xml +15 -0
  112. data/libs/crosswalk/ext/platform/android/adds/res/values-cs/android_ui_strings.xml +47 -0
  113. data/libs/crosswalk/ext/platform/android/adds/res/values-da/android_content_strings.xml +15 -0
  114. data/libs/crosswalk/ext/platform/android/adds/res/values-da/android_ui_strings.xml +47 -0
  115. data/libs/crosswalk/ext/platform/android/adds/res/values-de/android_content_strings.xml +15 -0
  116. data/libs/crosswalk/ext/platform/android/adds/res/values-de/android_ui_strings.xml +47 -0
  117. data/libs/crosswalk/ext/platform/android/adds/res/values-el/android_content_strings.xml +15 -0
  118. data/libs/crosswalk/ext/platform/android/adds/res/values-el/android_ui_strings.xml +47 -0
  119. data/libs/crosswalk/ext/platform/android/adds/res/values-en-rGB/android_content_strings.xml +15 -0
  120. data/libs/crosswalk/ext/platform/android/adds/res/values-en-rGB/android_ui_strings.xml +47 -0
  121. data/libs/crosswalk/ext/platform/android/adds/res/values-es-rUS/android_content_strings.xml +15 -0
  122. data/libs/crosswalk/ext/platform/android/adds/res/values-es-rUS/android_ui_strings.xml +47 -0
  123. data/libs/crosswalk/ext/platform/android/adds/res/values-es/android_content_strings.xml +15 -0
  124. data/libs/crosswalk/ext/platform/android/adds/res/values-es/android_ui_strings.xml +47 -0
  125. data/libs/crosswalk/ext/platform/android/adds/res/values-fa/android_content_strings.xml +15 -0
  126. data/libs/crosswalk/ext/platform/android/adds/res/values-fa/android_ui_strings.xml +47 -0
  127. data/libs/crosswalk/ext/platform/android/adds/res/values-fi/android_content_strings.xml +15 -0
  128. data/libs/crosswalk/ext/platform/android/adds/res/values-fi/android_ui_strings.xml +47 -0
  129. data/libs/crosswalk/ext/platform/android/adds/res/values-fr/android_content_strings.xml +15 -0
  130. data/libs/crosswalk/ext/platform/android/adds/res/values-fr/android_ui_strings.xml +47 -0
  131. data/libs/crosswalk/ext/platform/android/adds/res/values-hi/android_content_strings.xml +15 -0
  132. data/libs/crosswalk/ext/platform/android/adds/res/values-hi/android_ui_strings.xml +47 -0
  133. data/libs/crosswalk/ext/platform/android/adds/res/values-hr/android_content_strings.xml +15 -0
  134. data/libs/crosswalk/ext/platform/android/adds/res/values-hr/android_ui_strings.xml +47 -0
  135. data/libs/crosswalk/ext/platform/android/adds/res/values-hu/android_content_strings.xml +15 -0
  136. data/libs/crosswalk/ext/platform/android/adds/res/values-hu/android_ui_strings.xml +47 -0
  137. data/libs/crosswalk/ext/platform/android/adds/res/values-in/android_content_strings.xml +15 -0
  138. data/libs/crosswalk/ext/platform/android/adds/res/values-in/android_ui_strings.xml +47 -0
  139. data/libs/crosswalk/ext/platform/android/adds/res/values-it/android_content_strings.xml +15 -0
  140. data/libs/crosswalk/ext/platform/android/adds/res/values-it/android_ui_strings.xml +47 -0
  141. data/libs/crosswalk/ext/platform/android/adds/res/values-iw/android_content_strings.xml +15 -0
  142. data/libs/crosswalk/ext/platform/android/adds/res/values-iw/android_ui_strings.xml +47 -0
  143. data/libs/crosswalk/ext/platform/android/adds/res/values-ja/android_content_strings.xml +15 -0
  144. data/libs/crosswalk/ext/platform/android/adds/res/values-ja/android_ui_strings.xml +47 -0
  145. data/libs/crosswalk/ext/platform/android/adds/res/values-ko/android_content_strings.xml +15 -0
  146. data/libs/crosswalk/ext/platform/android/adds/res/values-ko/android_ui_strings.xml +47 -0
  147. data/libs/crosswalk/ext/platform/android/adds/res/values-lt/android_content_strings.xml +15 -0
  148. data/libs/crosswalk/ext/platform/android/adds/res/values-lt/android_ui_strings.xml +47 -0
  149. data/libs/crosswalk/ext/platform/android/adds/res/values-lv/android_content_strings.xml +15 -0
  150. data/libs/crosswalk/ext/platform/android/adds/res/values-lv/android_ui_strings.xml +47 -0
  151. data/libs/crosswalk/ext/platform/android/adds/res/values-nb/android_content_strings.xml +15 -0
  152. data/libs/crosswalk/ext/platform/android/adds/res/values-nb/android_ui_strings.xml +47 -0
  153. data/libs/crosswalk/ext/platform/android/adds/res/values-nl/android_content_strings.xml +15 -0
  154. data/libs/crosswalk/ext/platform/android/adds/res/values-nl/android_ui_strings.xml +47 -0
  155. data/libs/crosswalk/ext/platform/android/adds/res/values-pl/android_content_strings.xml +15 -0
  156. data/libs/crosswalk/ext/platform/android/adds/res/values-pl/android_ui_strings.xml +47 -0
  157. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rBR/android_content_strings.xml +15 -0
  158. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rBR/android_ui_strings.xml +47 -0
  159. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rPT/android_content_strings.xml +15 -0
  160. data/libs/crosswalk/ext/platform/android/adds/res/values-pt-rPT/android_ui_strings.xml +47 -0
  161. data/libs/crosswalk/ext/platform/android/adds/res/values-ro/android_content_strings.xml +15 -0
  162. data/libs/crosswalk/ext/platform/android/adds/res/values-ro/android_ui_strings.xml +47 -0
  163. data/libs/crosswalk/ext/platform/android/adds/res/values-ru/android_content_strings.xml +15 -0
  164. data/libs/crosswalk/ext/platform/android/adds/res/values-ru/android_ui_strings.xml +47 -0
  165. data/libs/crosswalk/ext/platform/android/adds/res/values-sk/android_content_strings.xml +15 -0
  166. data/libs/crosswalk/ext/platform/android/adds/res/values-sk/android_ui_strings.xml +47 -0
  167. data/libs/crosswalk/ext/platform/android/adds/res/values-sl/android_content_strings.xml +15 -0
  168. data/libs/crosswalk/ext/platform/android/adds/res/values-sl/android_ui_strings.xml +47 -0
  169. data/libs/crosswalk/ext/platform/android/adds/res/values-sr/android_content_strings.xml +15 -0
  170. data/libs/crosswalk/ext/platform/android/adds/res/values-sr/android_ui_strings.xml +47 -0
  171. data/libs/crosswalk/ext/platform/android/adds/res/values-sv/android_content_strings.xml +15 -0
  172. data/libs/crosswalk/ext/platform/android/adds/res/values-sv/android_ui_strings.xml +47 -0
  173. data/libs/crosswalk/ext/platform/android/adds/res/values-sw/android_content_strings.xml +15 -0
  174. data/libs/crosswalk/ext/platform/android/adds/res/values-sw/android_ui_strings.xml +47 -0
  175. data/libs/crosswalk/ext/platform/android/adds/res/values-th/android_content_strings.xml +15 -0
  176. data/libs/crosswalk/ext/platform/android/adds/res/values-th/android_ui_strings.xml +47 -0
  177. data/libs/crosswalk/ext/platform/android/adds/res/values-tl/android_content_strings.xml +15 -0
  178. data/libs/crosswalk/ext/platform/android/adds/res/values-tl/android_ui_strings.xml +47 -0
  179. data/libs/crosswalk/ext/platform/android/adds/res/values-tr/android_content_strings.xml +15 -0
  180. data/libs/crosswalk/ext/platform/android/adds/res/values-tr/android_ui_strings.xml +47 -0
  181. data/libs/crosswalk/ext/platform/android/adds/res/values-uk/android_content_strings.xml +15 -0
  182. data/libs/crosswalk/ext/platform/android/adds/res/values-uk/android_ui_strings.xml +47 -0
  183. data/libs/crosswalk/ext/platform/android/adds/res/values-v14/theme.xml +16 -0
  184. data/libs/crosswalk/ext/platform/android/adds/res/values-v17/styles.xml +19 -0
  185. data/libs/crosswalk/ext/platform/android/adds/res/values-v17/ui_java_styles.xml +41 -0
  186. data/libs/crosswalk/ext/platform/android/adds/res/values-v21/styles.xml +14 -0
  187. data/libs/crosswalk/ext/platform/android/adds/res/values-v21/ui_java_styles.xml +14 -0
  188. data/libs/crosswalk/ext/platform/android/adds/res/values-vi/android_content_strings.xml +15 -0
  189. data/libs/crosswalk/ext/platform/android/adds/res/values-vi/android_ui_strings.xml +47 -0
  190. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rCN/android_content_strings.xml +15 -0
  191. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rCN/android_ui_strings.xml +47 -0
  192. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rTW/android_content_strings.xml +15 -0
  193. data/libs/crosswalk/ext/platform/android/adds/res/values-zh-rTW/android_ui_strings.xml +47 -0
  194. data/libs/crosswalk/ext/platform/android/adds/res/values/android_content_strings.xml +15 -0
  195. data/libs/crosswalk/ext/platform/android/adds/res/values/android_ui_strings.xml +47 -0
  196. data/libs/crosswalk/ext/platform/android/adds/res/values/android_xwalk_strings.xml +17 -0
  197. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_attrs.xml +9 -0
  198. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_dimens.xml +31 -0
  199. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_strings.xml +16 -0
  200. data/libs/crosswalk/ext/platform/android/adds/res/values/ui_java_styles.xml +101 -0
  201. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_app_strings.xml +28 -0
  202. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_attrs.xml +11 -0
  203. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_colors.xml +13 -0
  204. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_core_internal_java_strings.xml +16 -0
  205. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_core_java_strings.xml +16 -0
  206. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_dimens.xml +11 -0
  207. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_resources_list.xml +7 -0
  208. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_styles.xml +40 -0
  209. data/libs/crosswalk/ext/platform/android/adds/res/values/xwalk_values.xml +10 -0
  210. data/libs/crosswalk/ext/platform/android/ext_java.files +14 -0
  211. data/libs/crosswalk/ext/platform/android/ext_native.files +7 -0
  212. data/libs/crosswalk/ext/platform/android/jni/Crosswalk_impl.cpp +61 -0
  213. data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/Crosswalk.java +14 -0
  214. data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/CrosswalkFactory.java +18 -0
  215. data/libs/crosswalk/ext/platform/android/src/com/rho/crosswalk/CrosswalkSingleton.java +24 -0
  216. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/CrosswalkExtension.java +16 -0
  217. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/RhodesListener.java +18 -0
  218. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWResourceClient.java +182 -0
  219. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWUIClient.java +125 -0
  220. data/libs/crosswalk/ext/platform/android/src/com/tautechnologies/tau/crosswalk/TauXWalkWebView.java +368 -0
  221. data/libs/crosswalk/ext/platform/iphone/Crosswalk.xcodeproj/project.pbxproj +368 -0
  222. data/libs/crosswalk/ext/platform/iphone/Crosswalk_Prefix.pch +7 -0
  223. data/libs/crosswalk/ext/platform/iphone/Rakefile +73 -0
  224. data/libs/crosswalk/ext/platform/iphone/impl/Crosswalk.h +14 -0
  225. data/libs/crosswalk/ext/platform/iphone/impl/Crosswalk.m +24 -0
  226. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkFactorySingleton.m +16 -0
  227. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSetup.m +9 -0
  228. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSingleton.h +17 -0
  229. data/libs/crosswalk/ext/platform/iphone/impl/CrosswalkSingleton.m +23 -0
  230. data/libs/crosswalk/ext/platform/iphone/impl/readme.txt +7 -0
  231. data/libs/crosswalk/ext/platform/qt/Crosswalk.pro +66 -0
  232. data/libs/crosswalk/ext/platform/qt/Rakefile +35 -0
  233. data/libs/crosswalk/ext/platform/qt/src/Crosswalk_impl.cpp +77 -0
  234. data/libs/crosswalk/ext/platform/wm/Crosswalk.sln +52 -0
  235. data/libs/crosswalk/ext/platform/wm/Crosswalk.vcproj +714 -0
  236. data/libs/crosswalk/ext/platform/wm/Crosswalk.vsprops +15 -0
  237. data/libs/crosswalk/ext/platform/wm/src/Crosswalk_impl.cpp +77 -0
  238. data/libs/crosswalk/ext/platform/wp8/Crosswalk.props +18 -0
  239. data/libs/crosswalk/ext/platform/wp8/Crosswalk.vcxproj +170 -0
  240. data/libs/crosswalk/ext/platform/wp8/Crosswalk.vcxproj.filters +50 -0
  241. data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.csproj +119 -0
  242. data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.props +8 -0
  243. data/libs/crosswalk/ext/platform/wp8/CrosswalkImpl.targets +7 -0
  244. data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.props +18 -0
  245. data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.vcxproj +185 -0
  246. data/libs/crosswalk/ext/platform/wp8/CrosswalkLib.vcxproj.filters +58 -0
  247. data/libs/crosswalk/ext/platform/wp8/src/Crosswalk_impl.cpp +76 -0
  248. data/libs/crosswalk/ext/platform/wp8/src/Crosswalk_impl.cs +69 -0
  249. data/libs/crosswalk/ext/platform/wp8/src/Properties/AssemblyInfo.cs +37 -0
  250. data/libs/enterprise-barcode/ext.yml +13 -0
  251. data/libs/enterprise-barcode/ext/barcode.xml +2144 -0
  252. data/libs/enterprise-barcode/ext/build +17 -0
  253. data/libs/enterprise-barcode/ext/build.bat +29 -0
  254. data/libs/enterprise-barcode/ext/platform/android/AndroidManifest.xml +31 -0
  255. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/AUTHORS +58 -0
  256. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/CHANGES +266 -0
  257. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/COPYING +201 -0
  258. data/libs/enterprise-barcode/ext/platform/android/ZXing_Info/README +11 -0
  259. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/cancel_icon.png +0 -0
  260. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/ok_icon.png +0 -0
  261. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable-hdpi/retake_icon.png +0 -0
  262. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/cancel_icon.png +0 -0
  263. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/ok_icon.png +0 -0
  264. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/drawable/retake_icon.png +0 -0
  265. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/layout/capture.xml +122 -0
  266. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/raw/beep.ogg +0 -0
  267. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/attrs.xml +20 -0
  268. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/colors.xml +42 -0
  269. data/libs/enterprise-barcode/ext/platform/android/additional_files/res/values/ids.xml +31 -0
  270. data/libs/enterprise-barcode/ext/platform/android/adds/lib/armeabi/liballbarcode.a +0 -0
  271. data/libs/enterprise-barcode/ext/platform/android/adds/lib/x86/liballbarcode.a +0 -0
  272. data/libs/enterprise-barcode/ext/platform/android/allbarcode.jar +0 -0
  273. data/libs/enterprise-barcode/ext/platform/iphone/Barcode.xcodeproj/project.pbxproj +524 -0
  274. data/libs/enterprise-barcode/ext/platform/iphone/Barcode_Prefix.pch +7 -0
  275. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeCallbackHelper.h +27 -0
  276. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeCallbackHelper.mm +231 -0
  277. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewController.h +95 -0
  278. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewController.m +1017 -0
  279. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactory.h +7 -0
  280. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactory.mm +58 -0
  281. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewFactoryRegister.mm +18 -0
  282. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewManager.h +16 -0
  283. data/libs/enterprise-barcode/ext/platform/iphone/Classes/BarcodeViewManager.mm +32 -0
  284. data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.cpp +25 -0
  285. data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.h +15 -0
  286. data/libs/enterprise-barcode/ext/platform/iphone/Classes/ImageProvider.mm +159 -0
  287. data/libs/enterprise-barcode/ext/platform/iphone/Classes/barcode.m +123 -0
  288. data/libs/enterprise-barcode/ext/platform/iphone/Rakefile +69 -0
  289. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/COPYING +27 -0
  290. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCameraSimulator.h +45 -0
  291. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarCaptureReader.h +111 -0
  292. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarHelpController.h +60 -0
  293. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarImage.h +69 -0
  294. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarImageScanner.h +51 -0
  295. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderController.h +142 -0
  296. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderView.h +135 -0
  297. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarReaderViewController.h +130 -0
  298. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSDK.h +34 -0
  299. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/ZBarSymbol.h +71 -0
  300. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar.h +1497 -0
  301. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Decoder.h +202 -0
  302. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Exception.h +187 -0
  303. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Image.h +321 -0
  304. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/ImageScanner.h +130 -0
  305. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Processor.h +223 -0
  306. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Scanner.h +162 -0
  307. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Symbol.h +528 -0
  308. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Video.h +170 -0
  309. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Headers/ZBarSDK/zbar/Window.h +136 -0
  310. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/LICENSE +504 -0
  311. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/README +59 -0
  312. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-back.png +0 -0
  313. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-help.html +88 -0
  314. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-helpicons.png +0 -0
  315. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/Resources/zbar-samples.png +0 -0
  316. data/libs/enterprise-barcode/ext/platform/iphone/ZBarSDK/libzbar.a +0 -0
  317. data/libs/enterprise-barcode/ext/platform/iphone/impl/Barcode.h +21 -0
  318. data/libs/enterprise-barcode/ext/platform/iphone/impl/Barcode.m +132 -0
  319. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactory.h +10 -0
  320. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactory.m +16 -0
  321. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeFactorySingleton.m +16 -0
  322. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSetup.m +8 -0
  323. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSingleton.h +17 -0
  324. data/libs/enterprise-barcode/ext/platform/iphone/impl/BarcodeSingleton.m +22 -0
  325. data/libs/enterprise-barcode/ext/platform/iphone/impl/readme.txt +7 -0
  326. data/libs/enterprise-barcode/ext/platform/wm/Barcode.sln +44 -0
  327. data/libs/enterprise-barcode/ext/platform/wm/Barcode.vcproj +836 -0
  328. data/libs/enterprise-barcode/ext/platform/wm/Barcode.vsprops +15 -0
  329. data/libs/enterprise-barcode/ext/platform/wm/readme.txt +0 -0
  330. data/libs/enterprise-barcode/ext/platform/wm/src/Barcode_impl.cpp +376 -0
  331. data/libs/enterprise-barcode/ext/platform/wm/src/DecodeNotifier.cpp +173 -0
  332. data/libs/enterprise-barcode/ext/platform/wm/src/DecodeNotifier.h +149 -0
  333. data/libs/enterprise-barcode/ext/platform/wm/src/EMDKInterfaceAbstraction.cpp +476 -0
  334. data/libs/enterprise-barcode/ext/platform/wm/src/GetDecoderProperties.cpp +1195 -0
  335. data/libs/enterprise-barcode/ext/platform/wm/src/GetScannerProperties.cpp +553 -0
  336. data/libs/enterprise-barcode/ext/platform/wm/src/KeyInjector.cpp +177 -0
  337. data/libs/enterprise-barcode/ext/platform/wm/src/KeyInjector.h +40 -0
  338. data/libs/enterprise-barcode/ext/platform/wm/src/NotificationLoader.cpp +76 -0
  339. data/libs/enterprise-barcode/ext/platform/wm/src/NotificationLoader.h +44 -0
  340. data/libs/enterprise-barcode/ext/platform/wm/src/RSM.cpp +1211 -0
  341. data/libs/enterprise-barcode/ext/platform/wm/src/Scanner.cpp +2609 -0
  342. data/libs/enterprise-barcode/ext/platform/wm/src/Scanner.h +1099 -0
  343. data/libs/enterprise-barcode/ext/platform/wm/src/ScannerDefines.h +322 -0
  344. data/libs/enterprise-barcode/ext/platform/wm/src/SetDecoderProperties.cpp +2106 -0
  345. data/libs/enterprise-barcode/ext/platform/wm/src/SetScannerProperties.cpp +1060 -0
  346. data/libs/enterprise-barcode/ext/platform/wm/src/Utilities.cpp +184 -0
  347. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.csproj +119 -0
  348. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.props +8 -0
  349. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeImpl.targets +35 -0
  350. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.props +18 -0
  351. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.vcxproj +185 -0
  352. data/libs/enterprise-barcode/ext/platform/wp8/BarcodeLib.vcxproj.filters +58 -0
  353. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.dll +0 -0
  354. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.winmd +0 -0
  355. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.Graphics.Imaging.xml +4813 -0
  356. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.dll +0 -0
  357. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.winmd +0 -0
  358. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/Nokia.InteropServices.WindowsRuntime.xml +41 -0
  359. data/libs/enterprise-barcode/ext/platform/wp8/lib/ARM/OpticalReaderLib.dll +0 -0
  360. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib.XML +68 -0
  361. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib.dll +0 -0
  362. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/BarcodeReaderLib.csproj +120 -0
  363. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/BarcodeReaderLib.sln +34 -0
  364. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/CameraNavigatePage.xaml +32 -0
  365. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/CameraNavigatePage.xaml.cs +235 -0
  366. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/OpticalReaderTask.cs +182 -0
  367. data/libs/enterprise-barcode/ext/platform/wp8/lib/BarcodeReaderLib/Properties/AssemblyInfo.cs +37 -0
  368. data/libs/enterprise-barcode/ext/platform/wp8/lib/Nokia.Graphics.Imaging.Managed.dll +0 -0
  369. data/libs/enterprise-barcode/ext/platform/wp8/lib/Nokia.Graphics.Imaging.Managed.xml +341 -0
  370. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.dll +0 -0
  371. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.winmd +0 -0
  372. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.Graphics.Imaging.xml +4813 -0
  373. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.dll +0 -0
  374. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.winmd +0 -0
  375. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/Nokia.InteropServices.WindowsRuntime.xml +41 -0
  376. data/libs/enterprise-barcode/ext/platform/wp8/lib/x86/OpticalReaderLib.dll +0 -0
  377. data/libs/enterprise-barcode/ext/platform/wp8/lib/zxing.wp8.0.XML +10324 -0
  378. data/libs/enterprise-barcode/ext/platform/wp8/lib/zxing.wp8.0.dll +0 -0
  379. data/libs/enterprise-barcode/ext/platform/wp8/src/Barcode_impl.cs +630 -0
  380. data/libs/enterprise-barcode/ext/platform/wp8/src/Properties/AssemblyInfo.cs +37 -0
  381. data/libs/enterprise-barcode/public/api/generated/Rho.Barcode.js +772 -0
  382. data/libs/ie/rhobrowser.dll +0 -0
  383. data/libs/nodejs.rb +2 -0
  384. data/libs/nodejs/ext.yml +25 -0
  385. data/libs/nodejs/ext/Nodejs.xml +37 -0
  386. data/libs/nodejs/ext/build +19 -0
  387. data/libs/nodejs/ext/build.bat +29 -0
  388. data/libs/nodejs/ext/platform/android/Rakefile +161 -0
  389. data/libs/nodejs/ext/platform/android/ext_native.files +8 -0
  390. data/libs/nodejs/ext/platform/android/jxCore/jx.h +134 -0
  391. data/libs/nodejs/ext/platform/android/jxCore/jx_result.h +221 -0
  392. data/libs/nodejs/ext/platform/android/jxCore/libcares_arm.a +0 -0
  393. data/libs/nodejs/ext/platform/android/jxCore/libcares_ia32.a +0 -0
  394. data/libs/nodejs/ext/platform/android/jxCore/libcares_x64.a +0 -0
  395. data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_arm.a +0 -0
  396. data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_ia32.a +0 -0
  397. data/libs/nodejs/ext/platform/android/jxCore/libchrome_zlib_x64.a +0 -0
  398. data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_arm.a +0 -0
  399. data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_ia32.a +0 -0
  400. data/libs/nodejs/ext/platform/android/jxCore/libhttp_parser_x64.a +0 -0
  401. data/libs/nodejs/ext/platform/android/jxCore/libjx_arm.a +0 -0
  402. data/libs/nodejs/ext/platform/android/jxCore/libjx_ia32.a +0 -0
  403. data/libs/nodejs/ext/platform/android/jxCore/libjx_x64.a +0 -0
  404. data/libs/nodejs/ext/platform/android/jxCore/libopenssl_arm.a +0 -0
  405. data/libs/nodejs/ext/platform/android/jxCore/libopenssl_ia32.a +0 -0
  406. data/libs/nodejs/ext/platform/android/jxCore/libopenssl_x64.a +0 -0
  407. data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_arm.a +0 -0
  408. data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_ia32.a +0 -0
  409. data/libs/nodejs/ext/platform/android/jxCore/libsqlite3_x64.a +0 -0
  410. data/libs/nodejs/ext/platform/android/jxCore/libuv_arm.a +0 -0
  411. data/libs/nodejs/ext/platform/android/jxCore/libuv_ia32.a +0 -0
  412. data/libs/nodejs/ext/platform/android/jxCore/libuv_x64.a +0 -0
  413. data/libs/nodejs/ext/platform/android/jxCore/libv8_base_arm.a +0 -0
  414. data/libs/nodejs/ext/platform/android/jxCore/libv8_base_ia32.a +0 -0
  415. data/libs/nodejs/ext/platform/android/jxCore/libv8_base_x64.a +0 -0
  416. data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_arm.a +0 -0
  417. data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_ia32.a +0 -0
  418. data/libs/nodejs/ext/platform/android/jxCore/libv8_nosnapshot_x64.a +0 -0
  419. data/libs/nodejs/ext/platform/iphone/Nodejs.xcodeproj/project.pbxproj +350 -0
  420. data/libs/nodejs/ext/platform/iphone/Nodejs_Prefix.pch +7 -0
  421. data/libs/nodejs/ext/platform/iphone/Rakefile +73 -0
  422. data/libs/nodejs/ext/platform/iphone/jxCore/jx.h +134 -0
  423. data/libs/nodejs/ext/platform/iphone/jxCore/jx_result.h +221 -0
  424. data/libs/nodejs/ext/platform/iphone/jxCore/libcares.a +0 -0
  425. data/libs/nodejs/ext/platform/iphone/jxCore/libchrome_zlib.a +0 -0
  426. data/libs/nodejs/ext/platform/iphone/jxCore/libhttp_parser.a +0 -0
  427. data/libs/nodejs/ext/platform/iphone/jxCore/libjx.a +0 -0
  428. data/libs/nodejs/ext/platform/iphone/jxCore/libmozjs.a +0 -0
  429. data/libs/nodejs/ext/platform/iphone/jxCore/libopenssl.a +0 -0
  430. data/libs/nodejs/ext/platform/iphone/jxCore/libsqlite3.a +0 -0
  431. data/libs/nodejs/ext/platform/iphone/jxCore/libuv.a +0 -0
  432. data/libs/nodejs/ext/shared/jxcore/jx.h +134 -0
  433. data/libs/nodejs/ext/shared/jxcore/jx_result.h +221 -0
  434. data/libs/nodejs/ext/shared/jxcoretau.cpp +454 -0
  435. data/libs/nodejs/ext/shared/jxcoretau.h +20 -0
  436. data/libs/nodejs/ext/shared/nodejs_impl.cpp +106 -0
  437. data/libs/nodejs/nodejs.rb +2 -0
  438. data/libs/openssl-edge.rb +2 -0
  439. data/libs/openssl-edge/ext.yml +4 -0
  440. data/libs/openssl-edge/ext/Rakefile +145 -0
  441. data/libs/openssl-edge/ext/android/Rakefile +107 -0
  442. data/libs/openssl-edge/ext/android/ext_native.files +32 -0
  443. data/libs/openssl-edge/ext/android/extconf.h +91 -0
  444. data/libs/openssl-edge/ext/build +12 -0
  445. data/libs/openssl-edge/ext/build.bat +5 -0
  446. data/libs/openssl-edge/ext/extconf.rb +141 -0
  447. data/libs/openssl-edge/ext/openssl.pro +109 -0
  448. data/libs/openssl-edge/ext/openssl.sln +52 -0
  449. data/libs/openssl-edge/ext/openssl.vcproj +1010 -0
  450. data/libs/openssl-edge/ext/openssl_missing.c +1163 -0
  451. data/libs/openssl-edge/ext/openssl_missing.h +537 -0
  452. data/libs/openssl-edge/ext/ossl.c +1203 -0
  453. data/libs/openssl-edge/ext/ossl.h +242 -0
  454. data/libs/openssl-edge/ext/ossl_asn1.c +2008 -0
  455. data/libs/openssl-edge/ext/ossl_asn1.h +66 -0
  456. data/libs/openssl-edge/ext/ossl_bio.c +118 -0
  457. data/libs/openssl-edge/ext/ossl_bio.h +19 -0
  458. data/libs/openssl-edge/ext/ossl_bn.c +1153 -0
  459. data/libs/openssl-edge/ext/ossl_bn.h +23 -0
  460. data/libs/openssl-edge/ext/ossl_cipher.c +1085 -0
  461. data/libs/openssl-edge/ext/ossl_cipher.h +20 -0
  462. data/libs/openssl-edge/ext/ossl_config.c +89 -0
  463. data/libs/openssl-edge/ext/ossl_config.h +19 -0
  464. data/libs/openssl-edge/ext/ossl_digest.c +453 -0
  465. data/libs/openssl-edge/ext/ossl_digest.h +20 -0
  466. data/libs/openssl-edge/ext/ossl_engine.c +580 -0
  467. data/libs/openssl-edge/ext/ossl_engine.h +19 -0
  468. data/libs/openssl-edge/ext/ossl_hmac.c +398 -0
  469. data/libs/openssl-edge/ext/ossl_hmac.h +18 -0
  470. data/libs/openssl-edge/ext/ossl_ns_spki.c +406 -0
  471. data/libs/openssl-edge/ext/ossl_ns_spki.h +19 -0
  472. data/libs/openssl-edge/ext/ossl_ocsp.c +2013 -0
  473. data/libs/openssl-edge/ext/ossl_ocsp.h +23 -0
  474. data/libs/openssl-edge/ext/ossl_pkcs12.c +261 -0
  475. data/libs/openssl-edge/ext/ossl_pkcs12.h +13 -0
  476. data/libs/openssl-edge/ext/ossl_pkcs5.c +180 -0
  477. data/libs/openssl-edge/ext/ossl_pkcs5.h +6 -0
  478. data/libs/openssl-edge/ext/ossl_pkcs7.c +1157 -0
  479. data/libs/openssl-edge/ext/ossl_pkcs7.h +20 -0
  480. data/libs/openssl-edge/ext/ossl_pkey.c +469 -0
  481. data/libs/openssl-edge/ext/ossl_pkey.h +245 -0
  482. data/libs/openssl-edge/ext/ossl_pkey_dh.c +650 -0
  483. data/libs/openssl-edge/ext/ossl_pkey_dsa.c +672 -0
  484. data/libs/openssl-edge/ext/ossl_pkey_ec.c +1806 -0
  485. data/libs/openssl-edge/ext/ossl_pkey_rsa.c +768 -0
  486. data/libs/openssl-edge/ext/ossl_rand.c +238 -0
  487. data/libs/openssl-edge/ext/ossl_rand.h +18 -0
  488. data/libs/openssl-edge/ext/ossl_ssl.c +2724 -0
  489. data/libs/openssl-edge/ext/ossl_ssl.h +41 -0
  490. data/libs/openssl-edge/ext/ossl_ssl_session.c +352 -0
  491. data/libs/openssl-edge/ext/ossl_version.h +15 -0
  492. data/libs/openssl-edge/ext/ossl_x509.c +186 -0
  493. data/libs/openssl-edge/ext/ossl_x509.h +119 -0
  494. data/libs/openssl-edge/ext/ossl_x509attr.c +328 -0
  495. data/libs/openssl-edge/ext/ossl_x509cert.c +863 -0
  496. data/libs/openssl-edge/ext/ossl_x509crl.c +565 -0
  497. data/libs/openssl-edge/ext/ossl_x509ext.c +480 -0
  498. data/libs/openssl-edge/ext/ossl_x509name.c +547 -0
  499. data/libs/openssl-edge/ext/ossl_x509req.c +492 -0
  500. data/libs/openssl-edge/ext/ossl_x509revoked.c +279 -0
  501. data/libs/openssl-edge/ext/ossl_x509store.c +846 -0
  502. data/libs/openssl-edge/ext/ruby_missing.h +32 -0
  503. data/libs/openssl-edge/openssl-edge.rb +2 -0
  504. data/libs/openssl-edge/openssl.rb +24 -0
  505. data/libs/openssl-edge/openssl/bn.rb +35 -0
  506. data/libs/openssl-edge/openssl/buffering.rb +341 -0
  507. data/libs/openssl-edge/openssl/cipher.rb +65 -0
  508. data/libs/openssl-edge/openssl/digest.rb +61 -0
  509. data/libs/openssl-edge/openssl/ssl-internal.rb +180 -0
  510. data/libs/openssl-edge/openssl/ssl.rb +1 -0
  511. data/libs/openssl-edge/openssl/x509-internal.rb +153 -0
  512. data/libs/openssl-edge/openssl/x509.rb +1 -0
  513. data/libs/openssl.so-edge.rb +2 -0
  514. data/libs/openssl.so-edge/ext.yml +8 -0
  515. data/libs/openssl.so-edge/ext/Rakefile +140 -0
  516. data/libs/openssl.so-edge/ext/android/armeabi/libcrypto.a +0 -0
  517. data/libs/openssl.so-edge/ext/android/armeabi/libssl.a +0 -0
  518. data/libs/openssl.so-edge/ext/android/x86/libcrypto.a +0 -0
  519. data/libs/openssl.so-edge/ext/android/x86/libssl.a +0 -0
  520. data/libs/openssl.so-edge/ext/build +12 -0
  521. data/libs/openssl.so-edge/ext/build.bat +1 -0
  522. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/dh/dh_locl.h +56 -0
  523. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/dsa/dsa_locl.h +76 -0
  524. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/evp/evp_locl.h +66 -0
  525. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/hmac/hmac_lcl.h +33 -0
  526. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/asn1_int.h +94 -0
  527. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/async.h +14 -0
  528. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_conf.h +28 -0
  529. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_dh.h +17 -0
  530. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_int.h +82 -0
  531. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/bn_srp.h +32 -0
  532. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/chacha.h +49 -0
  533. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/cryptlib.h +81 -0
  534. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/cryptlib_int.h +31 -0
  535. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/dso_conf.h +16 -0
  536. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/engine.h +20 -0
  537. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/err_int.h +17 -0
  538. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/evp_int.h +382 -0
  539. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/md32_common.h +383 -0
  540. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/objects.h +12 -0
  541. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/poly1305.h +19 -0
  542. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/rand.h +20 -0
  543. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/include/internal/x509_int.h +267 -0
  544. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/ocsp/ocsp_lcl.h +216 -0
  545. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/rsa/rsa_locl.h +96 -0
  546. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/crypto/x509/x509_lcl.h +142 -0
  547. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/e_os.h +520 -0
  548. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/bio.h +26 -0
  549. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/comp.h +12 -0
  550. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/conf.h +32 -0
  551. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/constant_time_locl.h +185 -0
  552. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/dane.h +103 -0
  553. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/dso.h +216 -0
  554. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/err.h +15 -0
  555. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/numbers.h +68 -0
  556. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/o_dir.h +63 -0
  557. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/o_str.h +17 -0
  558. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/internal/thread_once.h +42 -0
  559. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/__DECC_INCLUDE_EPILOGUE.H +16 -0
  560. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/__DECC_INCLUDE_PROLOGUE.H +20 -0
  561. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/aes.h +92 -0
  562. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1.h +1096 -0
  563. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1_mac.h +10 -0
  564. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/asn1t.h +924 -0
  565. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/async.h +98 -0
  566. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/bio.h +854 -0
  567. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/blowfish.h +61 -0
  568. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/bn.h +575 -0
  569. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/buffer.h +76 -0
  570. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/camellia.h +83 -0
  571. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cast.h +53 -0
  572. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cmac.h +41 -0
  573. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/cms.h +512 -0
  574. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/comp.h +72 -0
  575. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/conf.h +216 -0
  576. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/conf_api.h +40 -0
  577. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/crypto.h +463 -0
  578. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ct.h +518 -0
  579. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/des.h +174 -0
  580. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dh.h +343 -0
  581. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dsa.h +282 -0
  582. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/dtls1.h +56 -0
  583. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/e_os2.h +311 -0
  584. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ebcdic.h +33 -0
  585. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ec.h +1581 -0
  586. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ecdh.h +10 -0
  587. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ecdsa.h +10 -0
  588. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/engine.h +842 -0
  589. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/err.h +259 -0
  590. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/evp.h +1586 -0
  591. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/hmac.h +49 -0
  592. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/idea.h +64 -0
  593. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/kdf.h +75 -0
  594. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/lhash.h +204 -0
  595. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md2.h +44 -0
  596. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md4.h +51 -0
  597. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/md5.h +50 -0
  598. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/mdc2.h +42 -0
  599. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/modes.h +203 -0
  600. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/obj_mac.h +4577 -0
  601. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/objects.h +1097 -0
  602. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ocsp.h +409 -0
  603. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslconf.h +169 -0
  604. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslconf.h.in +141 -0
  605. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/opensslv.h +105 -0
  606. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ossl_typ.h +190 -0
  607. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pem.h +501 -0
  608. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pem2.h +20 -0
  609. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pkcs12.h +282 -0
  610. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/pkcs7.h +404 -0
  611. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rand.h +89 -0
  612. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc2.h +51 -0
  613. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc4.h +36 -0
  614. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rc5.h +63 -0
  615. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ripemd.h +47 -0
  616. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/rsa.h +588 -0
  617. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/safestack.h +164 -0
  618. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/seed.h +98 -0
  619. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/sha.h +119 -0
  620. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/srp.h +131 -0
  621. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/srtp.h +50 -0
  622. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl.h +2527 -0
  623. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl2.h +24 -0
  624. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ssl3.h +307 -0
  625. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/stack.h +78 -0
  626. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/symhacks.h +52 -0
  627. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/tls1.h +972 -0
  628. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ts.h +643 -0
  629. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/txt_db.h +57 -0
  630. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/ui.h +368 -0
  631. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/whrlpool.h +48 -0
  632. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509.h +1123 -0
  633. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509_vfy.h +539 -0
  634. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/openssl/x509v3.h +1005 -0
  635. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/packet_locl.h +555 -0
  636. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/record/record.h +240 -0
  637. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/record/record_locl.h +114 -0
  638. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/ssl_locl.h +2127 -0
  639. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/statem/statem.h +123 -0
  640. data/libs/openssl.so-edge/ext/openssl-1-1-0-stable/include/ssl/statem/statem_locl.h +124 -0
  641. data/libs/openssl.so-edge/openssl.so.rb +2 -0
  642. data/libs/webkit.rb +2 -0
  643. data/libs/webkit/ext.yml +4 -0
  644. data/libs/webkit/ext/build +12 -0
  645. data/libs/webkit/ext/build.bat +7 -0
  646. data/libs/webkit/ext/wm/Rakefile +61 -0
  647. data/libs/webkit/ext/wm/RhoMsgs.cpp +17 -0
  648. data/libs/webkit/ext/wm/RhoMsgs.h +14 -0
  649. data/libs/webkit/ext/wm/RhoWKBrowserEngine.cpp +736 -0
  650. data/libs/webkit/ext/wm/RhoWKBrowserEngine.h +105 -0
  651. data/libs/webkit/ext/wm/lib/npapi/rhobridge.dll +0 -0
  652. data/libs/webkit/ext/wm/lib/rhoengine_defs.h +80 -0
  653. data/libs/webkit/ext/wm/lib/rhowebkit.dll +0 -0
  654. data/libs/webkit/ext/wm/webkit.sln +36 -0
  655. data/libs/webkit/ext/wm/webkit.suo +0 -0
  656. data/libs/webkit/ext/wm/webkit.vcproj +800 -0
  657. data/libs/webkit/ext/wm/webkit.vsprops +20 -0
  658. data/libs/webkit/webkit.rb +2 -0
  659. data/rho-tau-extensions.gemspec +23 -0
  660. data/version +1 -0
  661. metadata +705 -0
@@ -0,0 +1,1099 @@
1
+ /**
2
+ * \file Scanner.h
3
+ * \brief File containing the CScanner definitions.
4
+ * \author Darryn Campbell (DCC)
5
+ * \date January 2012 (DCC, Initial Port from RhoElements 1 Code)
6
+ */
7
+ #pragma once
8
+ #include "KeyInjector.h"
9
+ #include "ScannerDefines.h"
10
+ #include "DecodeNotifier.h"
11
+ #include <map>
12
+ #include "common/RhoConf.h"
13
+ #include "common/StringConverter.h"
14
+ #include "logging/RhoLog.h"
15
+ #include "../shared/api_generator/MethodResult.h"
16
+ #include "common/StringConverter.h"
17
+
18
+ /**
19
+ * Structure defining comparison operator given to map
20
+ * functions metaTagSetFunctions and metaTagGetFunctions.
21
+ */
22
+ struct wcharCmp
23
+ {
24
+ /**
25
+ * Comparison operator given to map
26
+ * functions metaTagSetFunctions and metaTagGetFunctions.
27
+ */
28
+ bool operator()(const WCHAR* s1, const WCHAR* s2) const
29
+ {
30
+ return wcsicmp(s1, s2) < 0;
31
+ }
32
+ };
33
+
34
+ /**
35
+ * Structure defining comparison operator given to map
36
+ * 'decoderStrings'
37
+ */
38
+ struct byteCmp
39
+ {
40
+ /**
41
+ * Comparison operator given to 'decoderStrings' map
42
+ */
43
+ bool operator()(const BYTE b1, const BYTE b2) const
44
+ {
45
+ return b1 < b2;
46
+ }
47
+ };
48
+
49
+ /**
50
+ * Class to manage a Scanner via the EMDK for C interface. This is a fairly thin client,
51
+ * abstracting the C interface away from the user and presenting a much friendlier EMML
52
+ * interface. The significant improvements over Browser are that you no longer
53
+ * have to disable / reenable the scanner after setting decoders and the Scanner now offers
54
+ * support for the full EMDK interface. RhoElements version two introduced a configurable
55
+ * buffer type (data / text) and should be providing the ability to retrieve current
56
+ * values for properties / decoders / decoder properties.
57
+ * \author Darryn Campbell (DCC)
58
+ * \date January 2012 (DCC, Initial Port from RhoElements 1 Code)
59
+ */
60
+ class CScanner
61
+ {
62
+ public:
63
+ /**
64
+ * Initialise all Scanner variables
65
+ * \param iInstanceID The identifier of this class provided by the framework for
66
+ * use in a multi instance environment.
67
+ * \param pModule Additional structure required to interface with RhoElements framework
68
+ */
69
+ CScanner(int iInstanceID);
70
+
71
+ /**
72
+ * Free all memory associated with the Scanner
73
+ */
74
+ ~CScanner();
75
+
76
+ void SetCallback(int iWhichCallback, rho::apiGenerator::CMethodResult pCallback);
77
+ void RetrieveAllProperties(rho::apiGenerator::CMethodResult* pCallback);
78
+ void GetSupportedProperties(rho::apiGenerator::CMethodResult* pCallback);
79
+
80
+ /**
81
+ * Perform memory allocation and initialisation that was not done in the constructor.
82
+ * \return FALSE if some error occured during initialisation (perhaps if insufficient memory
83
+ * available or the EMDK scanner could not be loaded)
84
+ */
85
+ BOOL Initialise(bool bLaunchingAppHasFocus, const WCHAR* szScannerID);
86
+
87
+ /**
88
+ * Developer - Abhineet Agarwal
89
+ * Checking Low Battery Status
90
+ * If LowBatteryScan = False, then Disable Scanner, if Battery is Low or Critical.
91
+ * Else do nothing
92
+ */
93
+ VOID StartOrDisableCheckingLowBattery();
94
+
95
+ ////////////////////////////////
96
+ // Abstraction of Framework
97
+ ////////////////////////////////
98
+
99
+ /**
100
+ * Log a scanner message in line with the framework logging mechanism
101
+ * \param logSeverity The severity of the Log, Error, warning and Info
102
+ * are defined in ScannerDefines.h
103
+ * \param pLogComment The string data to log
104
+ * \param pFunctionName The name of the function from where the log originated
105
+ * \param dwLineNumber The Line number from where the log originated.
106
+ */
107
+ // Log function moved for RE4 to enable Rhodes' logging macro to work with line number
108
+ // BOOL Log(int logSeverity, LPCTSTR pLogComment,
109
+ // LPCTSTR pFunctionName, DWORD dwLineNumber);
110
+
111
+ /**
112
+ * Clears out event strings and disables Scanner when a page
113
+ * navigation occurs.
114
+ * \return TRUE
115
+ */
116
+ BOOL BeforeNavigate();
117
+
118
+ /**
119
+ * When the page load has completed, all meta tags received during the
120
+ * navigation can be sent to the scanner (they are all queued during
121
+ * navigation)
122
+ */
123
+ BOOL DocumentComplete();
124
+
125
+ /**
126
+ * An Application focus change is received when this Scanner instance either
127
+ * goes to the background (bActivated False) or comes to the foreground
128
+ * (bActivated True).
129
+ */
130
+ BOOL ApplicationFocusChange(bool bActivated);
131
+
132
+ /**
133
+ * Top level function for processing a received Meta Tag (set). If a navigation
134
+ * is in progress or the scanner is disabled (and this property can not
135
+ * be set unless the scanner is enabled) the property is queued up
136
+ * to be processed later. If the property can be processed now
137
+ * the appropriate method is called (from the hash map) to process
138
+ * the property.
139
+ * \param szPropertyName The name of the property to set
140
+ * \param szPropertyValue The value to set the property to
141
+ * \return Whether or not the property was successfully set (or successfully
142
+ * queued)
143
+ */
144
+ BOOL SetPropertyOrMethod(LPCTSTR szPropertyName, LPCTSTR szPropertyValue);
145
+
146
+ /**
147
+ * Not yet implemented. This function has been set aside to retrieve
148
+ * the values of properties from the scanner.
149
+ * \param szParameterName The name of the property to get
150
+ * \param szParameterValue [out] Buffer into which the retrieved
151
+ * parameter's value is stored. Specify NULL to just retrieve
152
+ * the length being returned.
153
+ * \return The length of the value being returned (including the terminating
154
+ * NULL character)
155
+ */
156
+ int RetrieveProperty(LPCTSTR szParameterName, WCHAR* szParameterValue);
157
+
158
+ /**
159
+ * When switching to another another application the scanner must be disabled
160
+ * and put into a state where it can be used by the other application. The
161
+ * logic of this plugin depends on the scanner being in a default state
162
+ * when the application regains focus so it should be reset to that default
163
+ * state when losing focus.
164
+ * \return Whether or not the scanner was successfully closed.
165
+ */
166
+ BOOL DisableScannerAndResetToDefault();
167
+
168
+ HANDLE getReadComplete() {return m_hReadComplete;}
169
+ HANDLE getEnableForTakeComplete() {return m_hEnableForTakeComplete;}
170
+ BOOL CommandRemoteScanner(const WCHAR* szCommand);
171
+
172
+ private:
173
+ /////////////////////////////
174
+ // EMML Tag Handlers (Set)
175
+ // These functions set the appropriate scanner properties to the specified
176
+ // values through the EMDK interface with the Scanner. Implemented
177
+ // in SetScannerProperties.cpp and RSM.cpp
178
+ /////////////////////////////
179
+
180
+ /**
181
+ * EMML Parser for top level Scanner tags such as event declaration,
182
+ * start / stop and enabled / disabled.
183
+ * \param szPropertyName The name of the property to set
184
+ * \param szPropertyValue The value of the property being set
185
+ * \return Whether or not the property was successfully set
186
+ */
187
+ BOOL ScannerTag_MetaProc(LPCTSTR szPropertyName, LPCTSTR szPropertyValue);
188
+
189
+ /**
190
+ * EMML Parser for Scanner tags which were formerly configuration parameters
191
+ * such as decodeVolume and decodeDuration.
192
+ * \param szPropertyName The name of the property to set
193
+ * \param szPropertyValue The value of the property being set
194
+ * \return Whether or not the property was successfully set
195
+ */
196
+ BOOL ScannerBeeper_MetaProc(LPCTSTR szPropertyName, LPCTSTR szPropertyValue);
197
+
198
+ /**
199
+ * EMML Parser for Reader settings such as raster mode and aim mode. After
200
+ * each of these properties is set the scan buffer is flushed to ensure
201
+ * they take effect immediately.
202
+ * \param szPropertyName The name of the property to set
203
+ * \param szPropertyValue The value of the property being set
204
+ * \return Whether or not the property was successfully set
205
+ */
206
+ BOOL ScannerReaderTag_MetaProc(LPCTSTR szPropertyName, LPCTSTR szPropertyValue);
207
+
208
+ /**
209
+ * EMML Parser for Bluetooth related tags (not RSM), such as connection
210
+ * idle timeout. These relate to the SSI specific scanner interface. These
211
+ * parameters may not take effect until the next SCAN_Enable.
212
+ * \param szPropertyName The name of the property to set
213
+ * \param szPropertyValue The value of the property being set
214
+ * \return Whether or not the property was successfully set
215
+ */
216
+ BOOL ScannerBluetoothTag_MetaProc(LPCTSTR szPropertyName, LPCTSTR szPropertyValue);
217
+
218
+ /**
219
+ * EMML Parser for RSM tags such as MarkForRetrievalScanLineWidth and RSMGetEvent.
220
+ * This parser must be backwardly compatible with the Browser 3 technique
221
+ * for marking RSM parameters for retrieval as well as the RhoElements way. The
222
+ * external interface has changed for RhoElements to avoid having methods /
223
+ * properties with the same name.
224
+ * \param szPropertyName The name of the property to set
225
+ * \param szPropertyValue The value of the property being set
226
+ * \return Whether or not the property was successfully set
227
+ */
228
+ BOOL rsm_MetaProc(LPCTSTR szPropertyName, LPCTSTR szPropertyValue);
229
+
230
+ /////////////////////////////////
231
+ // EMML Tag Handlers (Set Decoder and Decoder Properties).
232
+ // Defined in SetDecoderProperties.cpp
233
+ ////////////////////////////////
234
+ BOOL SetSimpleDecoder (BYTE cCurrentDecoder, LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for decoders which just have Enable / Disable
235
+ BOOL Set_all_decoders_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for All_Decoders. Parameters and return documentation match ScannerTag_MetaProc
236
+ BOOL Set_pdf417_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for PDF417 decoder. Parameters and return documentation match ScannerTag_MetaProc
237
+ BOOL Set_Chinese_2Of5_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Chinese 2of5 decoder. Parameters and return documentation match ScannerTag_MetaProc
238
+ BOOL Set_AZTEC_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Aztec decoder. Parameters and return documentation match ScannerTag_MetaProc
239
+ BOOL Set_MicroQR_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Micro QR decoder. Parameters and return documentation match ScannerTag_MetaProc
240
+ BOOL Set_Korean_3Of5_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Korean 3of5 decoder. Parameters and return documentation match ScannerTag_MetaProc
241
+ BOOL Set_Us4State_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for US 4 State decoder. Parameters and return documentation match ScannerTag_MetaProc
242
+ BOOL Set_webcode_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Webcode decoder. Parameters and return documentation match ScannerTag_MetaProc
243
+ BOOL Set_uspostnet_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for US Postnet decoder. Parameters and return documentation match ScannerTag_MetaProc
244
+ BOOL Set_usplanet_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for US Planet decoder. Parameters and return documentation match ScannerTag_MetaProc
245
+ BOOL Set_ukpostal_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for UK Postal decoder. Parameters and return documentation match ScannerTag_MetaProc
246
+ BOOL Set_tlc39_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for TLC39 decoder. Parameters and return documentation match ScannerTag_MetaProc
247
+ BOOL Set_signature_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Signature decoder. Parameters and return documentation match ScannerTag_MetaProc
248
+ BOOL Set_rsslim_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for GS1 Databar Limited decoder. Parameters and return documentation match ScannerTag_MetaProc
249
+ BOOL Set_rssexp_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for GS1 Databar expanded decoder. Parameters and return documentation match ScannerTag_MetaProc
250
+ BOOL Set_rss14_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for GS1 Databar decoder. Parameters and return documentation match ScannerTag_MetaProc
251
+ BOOL Set_qrcode_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for QR Code decoder. Parameters and return documentation match ScannerTag_MetaProc
252
+ BOOL Set_micropdf_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Micro PDf decoder. Parameters and return documentation match ScannerTag_MetaProc
253
+ BOOL Set_maxicode_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Maxicode decoder. Parameters and return documentation match ScannerTag_MetaProc
254
+ BOOL Set_macropdf_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for MacroPDF decoder. Parameters and return documentation match ScannerTag_MetaProc
255
+ BOOL Set_macromicropdf_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Macro Micro PDF decoder. Parameters and return documentation match ScannerTag_MetaProc
256
+ BOOL Set_jappostal_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for JapPostal decoder. Parameters and return documentation match ScannerTag_MetaProc
257
+ BOOL Set_ean13_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for EAN 13 decoder. Parameters and return documentation match ScannerTag_MetaProc
258
+ BOOL Set_dutchpostal_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Dutchpostal decoder. Parameters and return documentation match ScannerTag_MetaProc
259
+ BOOL Set_datamatrix_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Datamatrix decoder. Parameters and return documentation match ScannerTag_MetaProc
260
+ BOOL Set_composit_c_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Composite C decoder. Parameters and return documentation match ScannerTag_MetaProc
261
+ BOOL Set_composit_ab_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Composite AB decoder. Parameters and return documentation match ScannerTag_MetaProc
262
+ BOOL Set_canpostal_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for CanPostal decoder. Parameters and return documentation match ScannerTag_MetaProc
263
+ BOOL Set_auspostal_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for AusPostal decoder. Parameters and return documentation match ScannerTag_MetaProc
264
+ BOOL Set_upce1_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for UPCE 1 decoder. Parameters and return documentation match ScannerTag_MetaProc
265
+ BOOL Set_upce0_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for UPCE 0 decoder. Parameters and return documentation match ScannerTag_MetaProc
266
+ BOOL Set_upca_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for UPCA decoder. Parameters and return documentation match ScannerTag_MetaProc
267
+ BOOL Set_upc_ean_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for UPC EAN decoder. Parameters and return documentation match ScannerTag_MetaProc
268
+ BOOL Set_trioptic39_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Trioptic 39 decoder. Parameters and return documentation match ScannerTag_MetaProc
269
+ BOOL Set_msi_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for MSI decoder. Parameters and return documentation match ScannerTag_MetaProc
270
+ BOOL Set_i2of5_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for I 2of 5 decoder. Parameters and return documentation match ScannerTag_MetaProc
271
+ BOOL Set_ean8_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for EAN 8 decoder. Parameters and return documentation match ScannerTag_MetaProc
272
+ BOOL Set_d2of5_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for D 2of5 decoder. Parameters and return documentation match ScannerTag_MetaProc
273
+ BOOL Set_code93_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Code 93 decoder. Parameters and return documentation match ScannerTag_MetaProc
274
+ BOOL Set_code39_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Code 39 decoder. Parameters and return documentation match ScannerTag_MetaProc
275
+ BOOL Set_code11_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Code 11 decoder. Parameters and return documentation match ScannerTag_MetaProc
276
+ BOOL Set_code128_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Code 128 decoder. Parameters and return documentation match ScannerTag_MetaProc
277
+ BOOL Set_codabar_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Codabar decoder. Parameters and return documentation match ScannerTag_MetaProc
278
+ BOOL Set_matrix2of5_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for Matrix 2of5 decoder. Parameters and return documentation match ScannerTag_MetaProc
279
+ BOOL Set_Us4StateFics_MetaProc (LPCTSTR szPropertyName, LPCTSTR szPropertyValue); ///< EMML Tag handler for US 4State FICS decoder. Parameters and return documentation match ScannerTag_MetaProc
280
+
281
+ /////////////////////////////
282
+ // EMML Tag Handlers (Get)
283
+ // These functions get the specified scanner properties. Implemented
284
+ // in GetScannerProperties.cpp and RSM.cpp
285
+ /////////////////////////////
286
+
287
+ /**
288
+ * EMML Tag retrieval for top level Scanner tags such as event declaration,
289
+ * and enabled / disabled.
290
+ * \param szPropertyName The name of the property to retrieve
291
+ * \param szParameterValue [out] Buffer into which the retrieved
292
+ * parameter's value is stored. Specify NULL to just retrieve the length being returned.
293
+ * \return The length of the value being returned (including the terminating NULL character)
294
+ */
295
+ int ScannerTag_GetPropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue);
296
+
297
+ /**
298
+ * EMML Parser retrieval for Scanner tags which were formerly configuration parameters
299
+ * such as decodeVolume and decodeDuration.
300
+ * \param szPropertyName The name of the property to get
301
+ * \param szParameterValue [out] Buffer into which the retrieved
302
+ * parameter's value is stored. Specify NULL to just retrieve the length being returned.
303
+ * \return The length of the value being returned (including the terminating NULL character)
304
+ */
305
+ int ScannerBeeper_GetPropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue);
306
+
307
+ /**
308
+ * EMML Tag retrieval for Reader settings such as raster mode and aim mode.
309
+ * \param szPropertyName The name of the property to get
310
+ * \param szParameterValue [out] Buffer into which the retrieved
311
+ * parameter's value is stored. Specify NULL to just retrieve the length being returned.
312
+ * \return The length of the value being returned (including the terminating NULL character)
313
+ */
314
+ int ScannerReaderTag_GetPropertyValue(LPCTSTR szPropertyName, WCHAR* szPropertyValue);
315
+
316
+ /**
317
+ * EMML Tag retrieval for Bluetooth related tags (not RSM), such as connection
318
+ * idle timeout. These relate to the SSI specific scanner interface.
319
+ * \param szPropertyName The name of the property to get
320
+ * \param szParameterValue [out] Buffer into which the retrieved
321
+ * parameter's value is stored. Specify NULL to just retrieve the length being returned.
322
+ * \return The length of the value being returned (including the terminating NULL character)
323
+ */
324
+ int ScannerBluetoothTag_GetPropertyValue(LPCTSTR szPropertyName, WCHAR* szPropertyValue);
325
+
326
+ /**
327
+ * EMML Tag retrieval for RSM tags such as MarkForRetrievalScanLineWidth and RSMGetEvent.
328
+ * \param szPropertyName The name of the property to get
329
+ * \param szParameterValue [out] Buffer into which the retrieved
330
+ * parameter's value is stored. Specify NULL to just retrieve the length being returned.
331
+ * \return The length of the value being returned (including the terminating NULL character)
332
+ */
333
+ int rsm_GetPropertyValue(LPCTSTR szPropertyName, WCHAR* szPropertyValue);
334
+
335
+ /////////////////////////////////
336
+ // EMML Tag Handlers (Get Decoder and Decoder Properties).
337
+ // Defined in GetDecoderProperties.cpp
338
+ ////////////////////////////////
339
+ int GetSimpleDecoder (BYTE cDecoder, LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve properties for decoders which just have Enable / Disable.
340
+ int Get_all_decoders_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: All_Decoders. Parameters and return documentation match ScannerTag_Get_PropertyValue
341
+ int Get_pdf417_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: PDF417 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
342
+ int Get_Chinese_2Of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Chinese 2of5 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
343
+ int Get_AZTEC_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Aztec decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
344
+ int Get_MicroQR_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Micro QR decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
345
+ int Get_Korean_3Of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Korean 3of5 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
346
+ int Get_Us4State_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: US 4 State decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
347
+ int Get_webcode_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Webcode decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
348
+ int Get_uspostnet_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: US Postnet decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
349
+ int Get_usplanet_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: US Planet decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
350
+ int Get_ukpostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: UK Postal decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
351
+ int Get_tlc39_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: TLC39 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
352
+ int Get_signature_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Signature decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
353
+ int Get_rsslim_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: GS1 Databar Limited decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
354
+ int Get_rssexp_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: GS1 Databar expanded decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
355
+ int Get_rss14_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: GS1 Databar decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
356
+ int Get_qrcode_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: QR Code decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
357
+ int Get_micropdf_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Micro PDf decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
358
+ int Get_maxicode_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Maxicode decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
359
+ int Get_macropdf_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: MacroPDF decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
360
+ int Get_macromicropdf_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Macro Micro PDF decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
361
+ int Get_jappostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: JapPostal decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
362
+ int Get_ean13_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: EAN 13 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
363
+ int Get_dutchpostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Dutchpostal decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
364
+ int Get_datamatrix_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Datamatrix decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
365
+ int Get_composit_c_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Composite C decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
366
+ int Get_composit_ab_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Composite AB decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
367
+ int Get_canpostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: CanPostal decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
368
+ int Get_auspostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: AusPostal decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
369
+ int Get_upce1_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: UPCE 1 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
370
+ int Get_upce0_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: UPCE 0 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
371
+ int Get_upca_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: UPCA decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
372
+ int Get_upc_ean_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: UPC EAN decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
373
+ int Get_trioptic39_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Trioptic 39 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
374
+ int Get_msi_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: MSI decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
375
+ int Get_i2of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: I 2of 5 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
376
+ int Get_ean8_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: EAN 8 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
377
+ int Get_d2of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: D 2of5 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
378
+ int Get_code93_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Code 93 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
379
+ int Get_code39_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Code 39 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
380
+ int Get_code11_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Code 11 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
381
+ int Get_code128_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Code 128 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
382
+ int Get_codabar_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Codabar decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
383
+ int Get_matrix2of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: Matrix 2of5 decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
384
+ int Get_Us4StateFics_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue); ///< Retrieve value for property: US 4State FICS decoder. Parameters and return documentation match ScannerTag_Get_PropertyValue
385
+
386
+ ////////////////////////////////
387
+ // EMDK Interface
388
+ ////////////////////////////////
389
+
390
+ /**
391
+ * Loads the EMDK Scanner DLL into memory and maps the function pointers to the
392
+ * exported functions.
393
+ * \return FALSE if there was a problem loading or mapping to the DLL, all errors
394
+ * will be logged.
395
+ */
396
+ BOOL LoadEMDK();
397
+
398
+ /**
399
+ * Unloads the EMDK Scanning library and resets all the pointers to the
400
+ * exported functions
401
+ * \return TRUE if the unloading was successful.
402
+ */
403
+ BOOL UnloadEMDK();
404
+
405
+ ////////////////////////
406
+ // Initialisation functions. Provide additional initialisation and are called from
407
+ // the Public Function 'Initialise()'.
408
+ ////////////////////////
409
+
410
+ /**
411
+ * Nullify all the pointers to functions exported by the EMDK Scanner DLL
412
+ */
413
+ void InitialiseEMDKFunctionPointers();
414
+
415
+ /**
416
+ * metaTagsSetFunctions is a map of EMML Properties to functions which will
417
+ * set those properties. The scanner deals with too many properties to be
418
+ * handled efficiently in a traditional case statement. This function
419
+ * initialises the metaTagsSetFunctions with all EMML Properties and their
420
+ * corresponding parse functions.
421
+ */
422
+ void InitialiseMETATagMapForSet();
423
+
424
+ /**
425
+ * metaTagsGetFunctions is a map of EMML Properties to functions which will
426
+ * retrieve those properties.
427
+ * \todo Implement Scanner property retrieval
428
+ */
429
+ void InitialiseMETATagMapForGet();
430
+
431
+ /**
432
+ * decoderStrings is a hash map of EMDK Decoders (bytes) to the string
433
+ * representations of those decoders. decoderStrings is populated by
434
+ * this function.
435
+ */
436
+ void InitialiseDecoderStringMap();
437
+
438
+ ///////////////////////////////////////
439
+ // Meta Tag Queue Control. These functions are responsible for managing
440
+ // the meta tag queue, buffering properties which can not be set
441
+ // during navigation or until the Scanner is enabled.
442
+ ///////////////////////////////////////
443
+
444
+ /**
445
+ * Add the specified property and value to the queue of EMML tags to be
446
+ * parsed when the scanner is ready. This queue is only concerned with
447
+ * setting properties. Memory allocation for queue entries takes place here.
448
+ * \param szPropertyName The Property to be set.
449
+ * \param szPropertyValue The value of the property being set.
450
+ * \param hQueueToAddTo Message queue to which the meta tag should be added.
451
+ * \return Whether or not the EMML tag was successfully written to the queue.
452
+ */
453
+ BOOL AddMetaTagToQueue(HANDLE hQueueToAddTo, LPCTSTR szPropertyName, LPCTSTR szPropertyValue);
454
+
455
+ /**
456
+ * Process the queue of meta tags which are pending either the naviagtion
457
+ * to finish or the scanner to be enabled. The scanner will only call this
458
+ * function when it is enabled and ready to receive EMML tags. Memory
459
+ * deallocation for queue entries takes place here.
460
+ * \param hQueueToProcess read Handle to the message queue of meta tags which
461
+ * should be parsed.
462
+ * \param bParseTags If set to true the meta tags will be parsed and applied
463
+ * to the scanner. Specifying bParseTags to be false will just empty
464
+ * the queue.
465
+ */
466
+ void ActionPendingMetaTags(HANDLE hQueueToProcess, bool bParseTags);
467
+
468
+ ////////////////////////////////////////////////
469
+ // Scanner Control Functions. The following functions control
470
+ // the high level scanner operations such as enabling and disabling it.
471
+ ////////////////////////////////////////////////
472
+
473
+ /**
474
+ * Open an interface to the specified scanner, this is a prerequisite
475
+ * for any other scanner operation and populates m_hScanner, the handle
476
+ * to the Scanner. Only one scanner can be disabled at any one time on a
477
+ * single device. If it has been requested to open a different scanner
478
+ * to the one already opened (by this CScanner instance) the existing
479
+ * scanner is closed and the new one opened.
480
+ * \param szScannerName Scanner device to open, e.g. SCN1, SCN2. If
481
+ * NULL then the default scanner will be opened (SCN1 or SCN2 if
482
+ there is no SCN1 on the device)
483
+ * \return Whether or not the Scanner was successfully opened.
484
+ */
485
+ BOOL OpenScanner(LPCTSTR szScannerName);
486
+
487
+ /**
488
+ * Determines if the specified scanner is present on the device.
489
+ * \param szScannerName The name of the scanner to test exists, e.g. SCN1, SCN2
490
+ * \param bIsBluetoothScanner [out] Set to true or false depending on
491
+ * whether or not the requested scanner was a BT scanner.
492
+ * \param szFriendlyName [out] set to the Friendly name for the specified Scanner.
493
+ can be NULL to not do this.
494
+ * \return Whether or not the scanner was found.
495
+ */
496
+ BOOL FindScanner(LPCTSTR szScannerName, bool* bIsBluetoothScanner, WCHAR* szFriendlyName);
497
+
498
+ /**
499
+ * Shut down all communication with the Scanner,
500
+ * equivilent to ScanTerm() in PB3. Also frees all memory associated
501
+ * with the open scanner interface. To use the scanner again it is
502
+ * necessary to open the scanner.
503
+ * \return Whether or not the Scanner was successfully closed.
504
+ */
505
+ BOOL CloseScanner();
506
+
507
+ /**
508
+ * Called in response to the user requesting the Scanner to be Enabled,
509
+ * the scanner is opened (if closed) and an EnableScannerThread thread
510
+ * is spawned so the Scanner can be enabled in a separate thread.
511
+ * \return TRUE
512
+ */
513
+ BOOL EnableScanner();
514
+
515
+ /**
516
+ * Enables the scanner if it is not already (though under normal operation
517
+ * it will be) and create a SubmitReadThread Thread to send a
518
+ * read request to the scanner. The read request must be posted in
519
+ * a separate thread as it will block, waiting for the read to complete.
520
+ * \return TRUE
521
+ */
522
+ BOOL SubmitRead();
523
+
524
+ /**
525
+ * After a successful scan the data associated with that scan is placed
526
+ * in a scan buffer. This function converts the data in the scan
527
+ * buffer into a user friendly format for use in the decode event. Binary
528
+ * data is encoded to base 64, the timestamp is modified accordingly and
529
+ * any auxiliary data in the barcode is appended if appropriate.
530
+ * \return TRUE
531
+ */
532
+ BOOL RetrieveDataFromScanBuffer();
533
+
534
+ /**
535
+ * Deallocates the scan buffer, used to hold the result of the last scan.
536
+ * This is required when changing the type of the buffer between
537
+ * text (default) and binary.
538
+ * \return If the buffer deallocation was successful
539
+ */
540
+ BOOL ResetScanBuffer();
541
+
542
+ /**
543
+ * Switches the "Scan Type" in response to a user request. The scan
544
+ * type is required to allow multiple instances of CScanner to co-exist
545
+ * harmoneously. See the help file for more information on interaction
546
+ * between Scanner types.
547
+ * \param scanType The type of scan to change to
548
+ * \return Whether the read type was successfully changed.
549
+ */
550
+ BOOL ChangeReadType(tagSCANTYPE scanType); // Change between a foreground / background and monitor read
551
+
552
+
553
+ //////////////////////////////////////////////
554
+ // User Interface Routines. These functions assist in returning
555
+ // information back to the user.
556
+ //////////////////////////////////////////////
557
+
558
+ /**
559
+ * Informs the application that a Bluetooth Scanner
560
+ * has become connected or disconnected. The logic for communicating the
561
+ * status to the user is handled by the 'InformUserOfBTEvent' thread.
562
+ * \param bConnected Whether the scanner has become connected or disconnected.
563
+ */
564
+ void SetBluetoothStatus(BOOL bConnected);
565
+
566
+ /**
567
+ * The scanner has a number of events for which the user can register,
568
+ * the logic for allocating the memory for these events is handled by
569
+ * this function.
570
+ * \param szUserDefinedEvent The URI the user has requested be associated
571
+ * with the event, e.g. Javascript:doScan(%json)
572
+ * \param szScannerMemberVariable [out] Pointer to the scanner's member variable
573
+ * which is being set, e.g. to set the decode event, pass in
574
+ * &m_szEventDecode. Memory is allocated / deallocated from within
575
+ * the function.
576
+ */
577
+ BOOL SetScannerEvent(LPCTSTR szUserDefinedEvent, WCHAR** szScannerMemberVariable);
578
+
579
+ ////////////////////////////////////////
580
+ // Threads. Since the scanner class interfaces with hardware, multiple threads
581
+ // are employed to ensure the user interface is not blocked.
582
+ ////////////////////////////////////////
583
+
584
+ /**
585
+ * Enables the currently open scanner and perform any other initialisation
586
+ * such as registering for BT events (from BT scanners) and customising the
587
+ * scanner parameters, e.g. to disable the EMDK scanner beeper. If there is
588
+ * a problem enabling the scanner then the specified scanner will be closed
589
+ * and must be reopened again. Once enabled and configured a read is submitted
590
+ * to the scanner to commence scanning. The scanner must be enabled in a
591
+ * separate thread as it may block, especially true of BT scanners which will
592
+ * block whilst the BT connection is established.
593
+ * \param lParam Pointer to the CScanner object which started the thread
594
+ * \return 0 if the scanner enabled successfully
595
+ */
596
+ static DWORD EnableScannerThread(LPVOID lParam);
597
+
598
+ /**
599
+ * Submits a read to the scanner and waits for that read to be satisfied.
600
+ * Once complete the scanned data will be returned to the user via a decodeEvent.
601
+ * A named event is used to alert the class when the read is complete, the name
602
+ * of this event is unique for each CScanner instance.
603
+ * \param lParam Pointer to the CScanner object which started the thread.
604
+ * \return 0 if the scan was successful and the data was read
605
+ */
606
+ static DWORD SubmitReadThread(LPVOID lParam);
607
+
608
+ /**
609
+ * Causes the DeviceCapabilitiesEvent to be sent to the application, this
610
+ * contains the supported decoders, capabilities of the scanner and
611
+ * version of the firmware. This needs to be done in a separate thread
612
+ * for the same reason as enumScannerEvent.
613
+ * \param lParam Pointer to the CScanner object which started the thread.
614
+ * \return 0
615
+ */
616
+ static DWORD DeviceCapabilitiesToApplication(LPVOID lParam);
617
+
618
+ /**
619
+ * Notify the user via a Bluetooth Status Event that the BT scanner has
620
+ * become connected or disconnected. Note that the BluetoothStatusEvent
621
+ * was only introduced in RhoElements 1.x, in order to be backwardly
622
+ * compatible with Browser, if the user has not registered for
623
+ * the event then a decodeEvent is fired instead.
624
+ * \param lParam Pointer to the CScanner object which started the thread.
625
+ * \return 0
626
+ */
627
+ static DWORD InformUserOfBTEvent(LPVOID lParam);
628
+
629
+ /**
630
+ * When a user wants to obtain the values of RSM Attributes they mark them
631
+ * for retrieval using the appropriate method (e.g. markForRetrievalModelNumber).
632
+ * Registering for a RSMGetEvent will cause the queued attributes to be
633
+ * returned to the user, this thread is responsible for both:
634
+ * 1) Retrieving the value of the specified RSM attribute and adding it to a
635
+ * queue to return and 2) Processing that queue and assembling the JS array to
636
+ * return once an RSMGetEvent is registered.
637
+ * This function is defined in RSM.cpp
638
+ * \param lParam Pointer to the CScanner object which started the thread.
639
+ * \return 0
640
+ */
641
+ //static DWORD ProcessRSMGetQueue(LPVOID lParam);
642
+
643
+ /**
644
+ * If the user has configured the scanner to disable when the battery power
645
+ * gets too low (via RhoElements configuration) this thread is spawned and is
646
+ * responsible for disabling the scanner when power gets low. This was a
647
+ * specific addition requested by a single customer back in Browser 2.x
648
+ * \param lParam Pointer to the CScanner object which started the thread.
649
+ * \return 0
650
+ */
651
+ static DWORD LowBatteryScanThread(LPVOID lParam);
652
+
653
+ /**
654
+ * The only way of retrieving BT Connected / Disconnected events from the EMDK
655
+ * is to register to be told so via a Windows Message. When the BT scanner is
656
+ * enabled a hidden window is created to receive the connected / disconnected
657
+ * events, this thread is the WNDPROC for the hidden window.
658
+ * \param hwnd Window which posted the message
659
+ * \param message The message, we are only interested in WM_SCAN_EVENT_RHOELEMENTS.
660
+ * \param wparam The WPARAM of the message, we are only concerned
661
+ * with SCAN_EVENT_BT_CONNECTION_STATE_CHANGE
662
+ * \param lparam The LPARAM of the message
663
+ * \return Result from the default WNDPROC
664
+ */
665
+ static LRESULT CALLBACK HiddenWindowProc (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
666
+
667
+
668
+ /////////////////////////////////////////////////////
669
+ // Reader Parameters. The following functions are declared in EMDKInterfaceAbstraction.cpp
670
+ // and abstract the EMDK to present a higher level interface for handling the scanner parameters.
671
+ /////////////////////////////////////////////////////
672
+
673
+ /**
674
+ * Obtains the current reader params from the EMDK scanner driver, this structure
675
+ * is technically laser or Imager specific but many of the parameters are shared
676
+ * between the two, these parameters map to EMML Tags under Scanner, e.g.
677
+ * "Scanner" "aimType:trigger". It is intended that the caller calls
678
+ * ReadScannerParameters before using the retrieved paraters to in a call to
679
+ * SetScannerParameters.
680
+ * \param pReaderParams [out] pointer to a READER_PARAMS Structure, populated with
681
+ * current scanner settings.
682
+ * \return Whether the Scanner parameters were successfully retrieved.
683
+ */
684
+ BOOL RetrieveScannerParameters(READER_PARAMS* pReaderParams);
685
+
686
+ /**
687
+ * Sets the current reader params at the EMDK layer. It is intended that the caller calls
688
+ * RetrieveScannerParameters before using the retrieved paraters to in a call to
689
+ * SetScannerParameters.
690
+ * \param pReaderParams [out] pointer to a READER_PARAMS Structure, populated with
691
+ * desired scanner settings.
692
+ * \param dwSize size (bytes) of the structure being set.
693
+ * \return Whether the Scanner Parameters were successfully set.
694
+ */
695
+ BOOL SetScannerParameters(READER_PARAMS* pReaderParams, DWORD dwSize);
696
+
697
+ /**
698
+ * Retrieves the "interface specific" parameters from the EMDK Scanner driver,
699
+ * applicable to the type of scanner attached (and enabled). RhoElements 1.x
700
+ * only supported Bluetooth specific parameters. These parameters are applicable
701
+ * to all open application instances.
702
+ * \param pInterfaceParams [out] pointer to the INTERFACE_PARAMS structure,
703
+ * populated with current scanner interface settings.
704
+ * \return Whether the Scanner Interface parameters were successfully retrieved.
705
+ */
706
+ BOOL RetrieveScannerInterfaceParameters(INTERFACE_PARAMS* pInterfaceParams);
707
+
708
+ /**
709
+ * Sets the current scanner interface parameters at the EMDK scanner layer. It is
710
+ * intended that the caller calls RetrieveScannerInterfaceParameters before
711
+ * modifying them and applying them with SetScannerInterfaceParameters.
712
+ * \param pInterfaceParams pointer to the INTERFACE_PARAMS structure.
713
+ * \param dwSize size (bytes) of the structure being set.
714
+ * \return Whether the Scanner Interface parameters were successfully set.
715
+ */
716
+ BOOL SetScannerInterfaceParameters(INTERFACE_PARAMS* pInterfaceParams, DWORD dwSize);
717
+
718
+
719
+ //////////////////////////////////////////////////////////
720
+ // Decoder Functions. The following functions are declared in EMDKInterfaceAbstraction.cpp
721
+ // and abstract the EMDK to present a higher level interface for handling decoders.
722
+ //////////////////////////////////////////////////////////
723
+
724
+ /**
725
+ * Returns a 1 dimensional javascript array of the decoders supported by the current
726
+ * enabled scanner.
727
+ * \param szSupportedDecodersArray String populated with the 1D Javascript array
728
+ * of decoders, sufficient memory must be allocated by the caller.
729
+ */
730
+ BOOL RetrieveSupportedDecoders(WCHAR* szSupportedDecodersArray);
731
+
732
+ /**
733
+ * Returns whether or not the specified decoder is supported by the enabled
734
+ * Scanner.
735
+ * \param cDecoder The EMDK representation of the decoder (as a BYTE)
736
+ * \return Whether or not the decoder is supported
737
+ */
738
+ BOOL IsDecoderSupported(BYTE cDecoder);
739
+
740
+ /**
741
+ * Enable the specified decoder if it is not already enabled. Attempting to
742
+ * enable an enabled decoder will log a message.
743
+ * \param cDecoder The EMDK representation of the decoder (as a BYTE)
744
+ * \return Whether or not the decoder was successfully enabled.
745
+ */
746
+ BOOL EnableDecoder(BYTE cDecoder);
747
+
748
+ /**
749
+ * Disable the specified decoder if it is not already disabled. Attempting to
750
+ * disable a disabled decoder will log a message.
751
+ * \param cDecoder The EMDK representation of the decoder (as a BYTE)
752
+ * \return Whether or not the decoder was successfully disabled.
753
+ */
754
+ BOOL DisableDecoder(BYTE cDecoder);
755
+
756
+ /**
757
+ * Retrieve the parameters associated with the specified decoder, e.g.
758
+ * Codabar has ClsiEditing, maxlength, minlength, notisediting and
759
+ * redundancy.
760
+ * \param cDecoder The EMDK representation of the decoder whos parameters
761
+ * are to be obtained.
762
+ * \param lpvParams [out] Pointer to a structure which will be populated
763
+ * with the decoder parameters. Memory must be allocated by the
764
+ * caller. Different decoders will return different structures.
765
+ * \param dwSize Size of lpvParams, since different Decoders require
766
+ * different numbers of parameters the size is specified here.
767
+ * \return Whether or not the decoder parameters were successfully retrieved.
768
+ */
769
+ BOOL RetrieveDecoderParams(BYTE cDecoder, LPVOID lpvParams, DWORD dwSize);
770
+
771
+ /**
772
+ * Set the parameters associated with a specific decoder, e.g.
773
+ * Codabar has ClsiEditing, maxlength, minlength, notisediting and
774
+ * redundancy.
775
+ * \param cDecoder The EMDK representation of the decoder whos parameters
776
+ * are to be set.
777
+ * \param lpvParams Pointer to a structure containing the parameters
778
+ * applicable to this decoder.
779
+ * \param dwSize size of lpvParams.
780
+ * \return Whether or not the decoder parameters were successfully set.
781
+ */
782
+ BOOL SetDecoderParams(BYTE cDecoder, LPVOID lpvParams, DWORD dwSize);
783
+
784
+ /**
785
+ * Sets the minimum or maximum length of the specified decoder.
786
+ * \param cDecoder The EMDK representation of the decoder whos parameters
787
+ * are to be set.
788
+ * \param iMinLength The minimum length to set the decoder to, specify
789
+ * this value as -1 to leave the minimum length unchanged.
790
+ * \param iMaxLength The maximum length to set the decoder to, specify
791
+ * this value as -1 to leave the maximum length unchanged.
792
+ * \return Whether or not the decoder lengths were successfully set.
793
+ */
794
+ BOOL SetDecoderLengths(BYTE cDecoder, int iMinLength, int iMaxLength);
795
+
796
+ /**
797
+ * Retrieves the maximum or minimum length of the specified decoder.
798
+ * \param cDecoder The EMDK representation of the decoder whos parameters
799
+ * are to be set.
800
+ * \param bMinLength Set to true to return the minimum length, otherwise
801
+ * the maximum length is returned.
802
+ * \return The maximum or minimum length of the specified decoder
803
+ */
804
+ int GetDecoderLength(BYTE cDecoder, bool bMinLength);
805
+
806
+ /**
807
+ * Retrieves the current values for UPC EAN params, because UPC EAN parameters
808
+ * do not apply to a specific decoder they are handled separately by
809
+ * the EMDK and appear at the top level "Scanner" tag in EMML, e.g.
810
+ * "Scanner" "UpcEanBookland:true".
811
+ * \param lpParams [out] Pointer to the UPCEAN PARAMS structure to be
812
+ * populated with the current values.
813
+ * \return Whether or not the UPC EAN parameters were successfully
814
+ * obtained.
815
+ */
816
+ BOOL RetrieveUPCEANParams(LPUPC_EAN_PARAMS lpParams);
817
+
818
+ /**
819
+ * Sets the values for UPC EAN parameters, it is intended that callers first
820
+ * call RetrieveUPCEANParams before calling SetUPCEANParams with modified
821
+ * values.
822
+ * \param lpParams Pointer to the UPCEAN PARAMS structure with the values
823
+ * to be set.
824
+ * \return Whether or not the UPC EAN Parameters were successfully set.
825
+ */
826
+ BOOL SetUPCEANParams(LPUPC_EAN_PARAMS lpParams);
827
+
828
+ ///////////////////////////////////////////////////
829
+ // RSM.
830
+ // These functions are declared in RSM.cpp
831
+ //////////////////////////////////////////////////
832
+
833
+ /**
834
+ * Retrieves all the RSM attributes supported by the currently enabled scanner.
835
+ * This populates the m_rsmSupportedAttributes array which is used when setting
836
+ * and retrieving RSM attributes.
837
+ * This function is called when the scanner is enabled.
838
+ * \return Whether or not the RSM parameters could be successfully obtained.
839
+ */
840
+ BOOL RSMGetSupportedAttributes();
841
+
842
+ /**
843
+ * Places the specified RSM attribute in the queue of attributes to return
844
+ * when the user specifies an RSMGetEvent.
845
+ * \param attribute Identifier of the attribue whose value is to be retrieved.
846
+ * \return Whether or not the attribute was successfully written to the queue.
847
+ */
848
+ // BOOL MarkRSMForRetrieval(ATTRIB_NUMBER attribute);
849
+
850
+ /**
851
+ * Perform checks to ensure the attribute is appropriate to retrieve and populate the
852
+ * m_szRSMValuesToReturn array with 'unsupported' or 'failed to get' if it is not appropriate
853
+ * to retrieve the value. If the value is retrievable the function
854
+ * RetrieveRSMAttributeValueAsString is called.
855
+ * \param rsmAttribute RSM attribute whose value is to be obtained.
856
+ * \param szValueBuffer Memory buffer into which the RSM attribute value will be placed
857
+ * (memory allocated by the caller). Can be NULL to just return the length of
858
+ * string required.
859
+ * \return -1 if the value could not be retrieved, else the length of the string
860
+ * returned.
861
+ */
862
+ int RetrieveRSMAttributeValue(LPRSM_ATTRIB rsmAttribute, WCHAR* szValueBuffer);
863
+
864
+ /**
865
+ * Convert the specified attribute's value to a string and add it
866
+ * to m_szRSMValuesToReturn, which contains the values to be returned in
867
+ * the RSMGetEvent.
868
+ * \param rsmAttribute The RSM attribute whose value is to be retrieved.
869
+ * \param szRSMValue [out] Parameter into which the RSM attribute will be copied.
870
+ * specify this parameter as NULL to just retrieve the size of the string
871
+ * being returned. This memory must be allocated by the caller.
872
+ * \return The length of the parameter copied into szRSMValue (or -1 if error). If
873
+ * szRSMValue is NULL this value will be the number of characters required
874
+ * to be allocated by the caller (including NULL)
875
+ */
876
+ int RetrieveRSMAttributeValueAsString(LPRSM_ATTRIB rsmAttribute, WCHAR* szRSMValue);
877
+
878
+ /**
879
+ * Set the specified RSM attribute to the specified value. The value is converted
880
+ * into a value recognisable by the EMDK layer (i.e. RhoElements specifies
881
+ * strings but most of the EMDK uses flags or byte values for RSM). RSM parameters
882
+ * contain more data then just the values, they also have R/W properties and types;
883
+ * all those are set by this function.
884
+ * \param rsmAttributeID RSM 'number' (as defined at the EMDK) of the RSM
885
+ * attribute whose value is being set.
886
+ * \param szValue String representation of value to set the attribute's value to.
887
+ */
888
+ BOOL SetRSMValue(ATTRIB_NUMBER rsmAttributeID, LPCTSTR szValue);
889
+
890
+
891
+ //////////////////////////////////
892
+ // Utility Functions,
893
+ // Implemented in Utilities.cpp
894
+ //////////////////////////////////
895
+
896
+ /**
897
+ * Case insensitive comparison operator for two strings
898
+ * \param tc1 String 1 to compare
899
+ * \param tc2 String 2 to compare
900
+ * \return TRUE if the two strings are the same, regardless of case
901
+ */
902
+ BOOL cmp(LPCTSTR tc1, LPCTSTR tc2);
903
+
904
+ /**
905
+ * Method to convert a string to an integer. This function is safe to call with NULL
906
+ * \param szInString String to convert to an integer (or NULL)
907
+ * \return Integer representation of the string (or 0 if NULL)
908
+ */
909
+ int StringToInt(LPCTSTR szInString);
910
+
911
+ /**
912
+ * Method to abstract the enabled property. Eases backwards compatibility with
913
+ * Enable / Enabled
914
+ * \param szParameter Parameter to determine whether or not it represents 'enabled'.
915
+ * \return Whether or not the specified parameter represents 'enabled'.
916
+ */
917
+ BOOL EnabledValue(LPCTSTR szParameter);
918
+
919
+ /**
920
+ * Method to abstract the disabled property. Eases backwards compatibility with
921
+ * Disable / Disabled
922
+ * \param szParameter Parameter to determine whether or not it represents 'disabled'.
923
+ * \return Whether or not the specified parameter represents 'disabled'.
924
+ */
925
+ BOOL DisabledValue(LPCTSTR szParameter);
926
+
927
+ /**
928
+ * Given a number this function will return the number of digits in it, so
929
+ * given 100, this function will return 3; given 56739 this function will return 5
930
+ * \param iNumber Number whose length is to be returned
931
+ * \return Length of passed number.
932
+ */
933
+ unsigned int StringLength(DWORD iNumber);
934
+
935
+ /**
936
+ * If the Scanner needs to return a string parameter to the user this function takes care
937
+ * of checking there is sufficient memory and determining the length of the returned string
938
+ * \param szPropertyValue The value to be returned to the user
939
+ * \param szPropertyBuffer Buffer into which the value is to be placed, allocated by the
940
+ * calling function. If set to NULL this function will just return the number of
941
+ * characters required.
942
+ * \return Length of the string being returned (including terminating NULL character)
943
+ */
944
+ int ProcessDecoderPropertyForReturn(LPCTSTR szPropertyValue, WCHAR* szPropertyBuffer);
945
+
946
+ /**
947
+ * If the Scanner needs to return an integer parameter to the user this function takes care
948
+ * of checking there is sufficient memory and determining the length of the returned string
949
+ * \param iPropertyValue The value to be returned to the user
950
+ * \param szPropertyBuffer Buffer into which the value is to be placed, allocated by the
951
+ * calling function. If set to NULL this function will just return the number of
952
+ * characters required.
953
+ * \return Length of the string being returned (including terminating NULL character)
954
+ */
955
+ int ProcessDecoderPropertyForReturn(DWORD iPropertyValue, WCHAR* szPropertyBuffer);
956
+
957
+ /**
958
+ * Converts a Hexadecimal string to an Integer
959
+ * \param value String representation of a hex number
960
+ */
961
+ int _httoi(const TCHAR *value);
962
+
963
+ /**
964
+ * Encodes the specified byte array into base64 encoding, this is used for
965
+ * DataURI encoding.
966
+ * \param bytes_to_encode The byte array to encode to base64
967
+ * \param iLen The length of the bytes to be encoded
968
+ * \param szEncodedData [out] Buffer into which encoded data is put. This MUST
969
+ * be allocated by the caller and must be of an appropriate length,
970
+ * note: base 64 encoded data is about 1/3 larger than the byte equivilent
971
+ */
972
+ void EncodeToBase64(unsigned char const* bytes_to_encode, unsigned int iLen, char* szEncodedData);
973
+
974
+ ///////////////////////
975
+ // Attributes
976
+ ///////////////////////
977
+ int m_iInstanceID; ///< Id of this CScanner instance (provided by the framework)
978
+ int m_iInstanceID2; ///< Second Id of this CScanner instance (provided by the framework)
979
+ HMODULE m_hScnAPIDLL; ///< HMODULE of the loaded EMDK Scanner DLL
980
+ bool g_bShuttingDown; ///< Flag that we're currently shutting down
981
+ std::map<const WCHAR*, fnMetaTagParse, wcharCmp> metaTagsSetFunctions; ///< Map of Meta tags to functions used to action those, parsed meta tags
982
+ /// And the corresponding iterator
983
+ std::map<const WCHAR*, fnMetaTagParse, wcharCmp>::iterator metaTagsSetIterator;
984
+ std::map<const WCHAR*, fnEMMLTagGet, wcharCmp> metaTagsGetFunctions; ///< Map of Meta tags to functions to retrieve those tags
985
+ /// And the corresponding iterator
986
+ std::map<const WCHAR*, fnEMMLTagGet, wcharCmp>::iterator metaTagsGetIterator;
987
+ std::map<const BYTE, const WCHAR*, byteCmp>decoderStrings; ///< Map of Scanner decoders to their string equivilents ('Img)
988
+ bool m_bScannerEnabled; ///< Set to true if the Scanner is currently enabled
989
+ bool m_bScannerBeingEnabled; ///< Set to true if the Scanner is currently being enabled, required because scanners take some finite time to enable
990
+ bool m_bScannerOpen; ///< Set to true if the Scanner is currently 'open', i.e. it must be closed before another scanner is open on the same device.
991
+ bool m_bApplicationActive; ///< Set to true if the Application housing the scanner is currently Active (In a Windows sense)
992
+ bool m_bTriggerConnected; ///< Whether or not the trigger will emit the scanner beam when the Scanner is enabled.
993
+ HANDLE m_hMetaMsgQRead; ///< Read handle to meta tag queue
994
+ HANDLE m_hMetaMsgQWrite; ///< Write handle to meta tag queue
995
+ // HANDLE m_hRSMMsgQRead; ///< Read Handle for RSM Retrieval Queue
996
+ // HANDLE m_hRSMMsgQWrite; ///< Write handle for RSM Retrieval Queue
997
+ HANDLE m_hTagsOnCurrentPageQRead; ///< Read Handle for queue of EMML tags on the current page.
998
+ HANDLE m_hTagsOnCurrentPageQWrite; ///< Write Handle for queue of EMML tags on the current page.
999
+ WCHAR* m_szUserSpecifiedScanner; ///< Scanner Name requested by User
1000
+ WCHAR* m_szCurrentlyOpenScanner; ///< String representation of the currently open scanner, used to determine if the user has requested a different scanner be enabled.
1001
+ bool m_bUsingBluetoothScanner; ///< Whether or not the connected scanner is a BT scanner
1002
+ HANDLE m_hScanner; ///< Handle to the open scanner
1003
+ ScannerState m_ScannerState; ///< Internal State of the Application, used to keep track of whether a Bluetooth scanner is connected or not
1004
+ LPSCAN_BUFFER m_lpScanBuffer; ///< Pointer to Scanner buffer which receives decoded data.
1005
+ HANDLE m_hReadComplete; ///< Named Event signalled when a scan is complete
1006
+ HANDLE m_hEnableForTakeComplete; ///< Named event signalled when the Scanner is enabled, used by Take method to know when it can proceed.
1007
+ HANDLE m_hUniqueEvent; ///< Handle used to determine a unique Scanner Instance
1008
+ DWORD m_dwRequestID; ///< Request ID for scanner read request
1009
+ tagScanData m_lastScannedData; ///< Stores Decoded data, the size of the data in this buffer is specified by the user.
1010
+ bool m_bResetScanBuffer; ///< Flag whether the Scan buffer should be reset after this scan (used for data type and buffer size changes)
1011
+ CKeyInjector* m_keyInjector; ///< Pointer to a KeyInjector Object to handle key sending;
1012
+ CDecodeNotifier* m_decodeNotifier; ///< Pointer to object to indicate bad / good scans to the user
1013
+ bool m_bCurrentlyNavigating; ///< Flag that we're currently navigating to a different page
1014
+ WCHAR m_szBluetoothStatus[30]; ///< Current Bluetooth Status, used in BluetoothStatusEvent
1015
+ eBTPairing m_iDisplayBTPairBarcode; ///< We need to maintain the state of whether the user has requested this as we need to apply it between Open and Enable
1016
+ DWORD m_dwEnableTimeout; ///< The maximum allowable time given for the Scanner to enable, only really useful when connecting to a BluetoothScanner which blocks to connect.
1017
+ bool m_bScannedDuringNavigate; ///< Set to true if the scanner read is not re-submitted during a navigation.
1018
+ // Scanner Events
1019
+ rho::apiGenerator::CMethodResult m_pDecodeEvent; ///< DecodeEvent
1020
+ rho::apiGenerator::CMethodResult m_pBluetoothStatusEvent;///< BluetoothStatusEvent (New for RhoElements)
1021
+ rho::apiGenerator::CMethodResult m_pRSMEvent; ///< RSM Get Event to return the RSM Attributes requested
1022
+ rho::apiGenerator::CMethodResult m_pDeviceCapabilities; ///< Not used
1023
+ rho::apiGenerator::CMethodResult m_pTakeCallback; ///< Callback for the take method
1024
+ // Scanner Properties
1025
+ bool m_bAutoEnter; ///< Set to true if the user has specified autoEnter.
1026
+ bool m_bAutoTab; ///< Set to true if the user has specified autoTab
1027
+ tagSCANTYPE m_currentScanType; ///< Holds the current type of scan, Foreground, Background or Monitor.
1028
+ DWORD m_iDataBufferSize; ///< The user requested size of the scan read buffer (which receives barcodes)
1029
+ eScanBufferDataFormat m_bufferFormat; ///< The format of the buffer to receive scans, either Text or Data
1030
+ // Configuration Settings
1031
+ DWORD m_dwDecodeVolume; ///< Volume of the device beeper on a decode
1032
+ DWORD m_dwDecodeFrequency; ///< Frequency of the device beeper on a good decode
1033
+ DWORD m_dwInvalidDecodeFrequency; ///< Frequency of the device beeper on a bad decode
1034
+ DWORD m_dwDecodeDuration; ///< Duration of the device beeper on a decode
1035
+ WCHAR* m_szScanDecodeWav; ///< Wave file to be played on a good decode (takes precedence over beeper)
1036
+ WCHAR* m_szScanInvalidWav; ///< Wave file to be played on a bad decode (takes precedence over beeper)
1037
+ bool m_bLowBatteryScan; ///< Flag to indicate that the scanner should be disabled when the battery gets low
1038
+ bool m_bLegacyNavBehaviour; ///< RhoElements disables the scanner when a page navigation occurs, if this attribute is set the scanner will just stop the current scan.
1039
+ // RhoElements Window
1040
+ WCHAR m_szHiddenWindowName[25]; ///< Name of the hidden window to receive Bluetooth events (instance specific)
1041
+ HWND m_hiddenWindow; ///< Handle of the hidden window to receive Bluetooth events.
1042
+ // RSM
1043
+ LPATTRIB_NUMBER m_rsmSupportedAttributes; ///< Array of RSM attributes supported by the attached scanner
1044
+ int m_iCountOfSupportedRSMAttributes; ///< Number of RSM Attributes that are supported.
1045
+ int m_iCountOfMarkedRSMAttributes; ///< Length of the array of attributes supported by the attached scannner
1046
+ TCHAR* m_szRSMValuesToReturn[MAX_RSM_READABLE_ATTRIBUTES]; ///< Array of strings to be returned for RSMGetNavigate
1047
+ // Viewfinder
1048
+ int m_iViewfinderRequestedLeft; ///< User requested left position of the viewfinder (for Camera scanners)
1049
+ int m_iViewfinderRequestedRight; ///< User requested right position of the viewfinder (for Camera scanners)
1050
+ int m_iViewfinderRequestedTop; ///< User requested top position of the viewfinder (for Camera scanners)
1051
+ int m_iViewfinderRequestedBottom; ///< User requested bottom position of the viewfinder (for Camera scanners)
1052
+ // Low Battery Scan
1053
+ HANDLE m_hPowerNotifications; ///< Handle for the thread which monitors for low power conditions.
1054
+ HANDLE m_hLowBatteryScanMessageQueueRead; ///< Handle of Queue that will receive power notifications
1055
+ HANDLE m_hLowBatteryScanMessageQueueWrite; ///< Handle of queue to allow us to inject power notification (to shut down the thread)
1056
+ CRITICAL_SECTION m_scanner_prop_cs;
1057
+
1058
+ //////////////////////////////
1059
+ // Instances of those Function Pointers to exported DLL functions
1060
+ //////////////////////////////
1061
+ LPFN_SCAN_ALLOCATEBUFFER_T lpfn_SCAN_AllocateBuffer; ///< function pointer to EMDK Scanner API SCAN_AllocateBuffer
1062
+ LPFN_SCAN_CANCELREAD_T lpfn_SCAN_CancelRead; ///< function pointer to EMDK Scanner API SCAN_CancelRead
1063
+ LPFN_SCAN_DEALLOCATEBUFFER_T lpfn_SCAN_DeallocateBuffer; ///< function pointer to EMDK Scanner API SCAN_DeallocateBuffer
1064
+ LPFN_SCAN_DISABLE_T lpfn_SCAN_Disable; ///< function pointer to EMDK Scanner API SCAN_Disable
1065
+ LPFN_SCAN_FLUSH_T lpfn_SCAN_Flush; ///< function pointer to EMDK Scanner API SCAN_Flush
1066
+ LPFN_SCAN_GETDECODERPARAMS_T lpfn_SCAN_GetDecoderParams; ///< function pointer to EMDK Scanner SCAN_GetDecoderParams
1067
+ LPFN_SCAN_GETENABLEDDECODERS_T lpfn_SCAN_GetEnabledDecoders; ///< function pointer to EMDK Scanner SCAN_GetEnabledDecoders
1068
+ LPFN_SCAN_GETREADERPARAMS_T lpfn_SCAN_GetReaderParams; ///< function pointer to EMDK Scanner SCAN_GetReaderParams
1069
+ LPFN_SCAN_GETSCANPARAMETERS_T lpfn_SCAN_GetScanParameters; ///< function pointer to EMDK Scanner SCAN_GetScanParameters
1070
+ LPFN_SCAN_GETSCANSTATUS_T lpfn_SCAN_GetScanStatus; ///< function pointer to EMDK Scanner SCAN_GetScanStatus
1071
+ LPFN_SCAN_GETSUPPORTEDDECODERS_T lpfn_SCAN_GetSupportedDecoders; ///< function pointer to EMDK Scanner SCAN_GetSupportedDecoders
1072
+ LPFN_SCAN_GETUPCEANPARAMS_T lpfn_SCAN_GetUPCEANParams; ///< function pointer to EMDK Scanner SCAN_GetUPCEANParams
1073
+ LPFN_SCAN_OPEN_T lpfn_SCAN_Open; ///< function pointer to EMDK Scanner SCAN_Open
1074
+ LPFN_SCAN_READLABELEVENT_T lpfn_SCAN_ReadLabelEvent; ///< function pointer to EMDK SCAN_ReadLabelEvent
1075
+ LPFN_SCAN_READLABELMSG_T lpfn_SCAN_ReadLabelMsg; ///< function pointer to EMDK SCAN_ReadLabelMsg
1076
+ LPFN_SCAN_RSMGETATTRIBUTE_T lpfn_SCAN_RSMGetAttribute; ///< function pointer to EMDK SCAN_RSMGetAttribute
1077
+ LPFN_SCAN_RSMGETSUPPORTEDATTRIBUTES_T lpfn_SCAN_RSMGetSupportedAttributes; ///< function pointer to EMDK API SCAN_RSMGetSupportedAttributes
1078
+ LPFN_SCAN_RSMSETATTRIBUTE_T lpfn_SCAN_RSMSetAttribute; ///< function pointer to EMDK API SCAN_RSMSetAttribute
1079
+ LPFN_SCAN_SETDECODERPARAMS_T lpfn_SCAN_SetDecoderParams; ///< function pointer to EMDK API SCAN_SetDecoderParams
1080
+ LPFN_SCAN_SETENABLEDDECODERS_T lpfn_SCAN_SetEnabledDecoders; ///< function pointer to EMDK API SCAN_SetEnabledDecoders
1081
+ LPFN_SCAN_SETREADERPARAMS_T lpfn_SCAN_SetReaderParams; ///< function pointer to EMDK API SCAN_SetReaderParams
1082
+ LPFN_SCAN_SETSCANPARAMETERS_T lpfn_SCAN_SetScanParameters; ///< function pointer to EMDK API SCAN_SetScanParameters
1083
+ LPFN_SCAN_SETSOFTTRIGGER_T lpfn_SCAN_SetSoftTrigger; ///< function pointer to EMDK API SCAN_SetSoftTrigger
1084
+ LPFN_SCAN_SETUPCEANPARAMS_T lpfn_SCAN_SetUPCEANParams; ///< function pointer to EMDK API SCAN_SetUPCEANParams
1085
+ LPFN_SCAN_CLOSE_T lpfn_SCAN_Close; ///< function pointer to EMDK API SCAN_Close
1086
+ LPFN_SCAN_ENABLE_T lpfn_SCAN_Enable; ///< function pointer to EMDK API SCAN_Enable
1087
+ LPFN_SCAN_REGISTERSCANMESSAGE_T lpfn_SCAN_RegisterScanMessage; ///< function pointer to EMDK API SCAN_RegisterScanMessage
1088
+ LPFN_SCAN_DEREGISTERSCANMESSAGE_T lpfn_SCAN_DeRegisterScanMessage;///< function pointer to EMDK API SCAN_DeRegisterScanMessage
1089
+ LPFN_SCAN_FINDFIRST_T lpfn_SCAN_FindFirst; ///< function pointer to EMDK API SCAN_FindFirst
1090
+ LPFN_SCAN_FINDNEXT_T lpfn_SCAN_FindNext; ///< function pointer to EMDK API SCAN_FindNext
1091
+ LPFN_SCAN_FINDCLOSE_T lpfn_SCAN_FindClose; ///< function pointer to EMDK API SCAN_FindClose
1092
+ LPFN_SCAN_GETINTERFACEPARAMS_T lpfn_SCAN_GetInterfaceParams; ///< function pointer to EMDK API SCAN_GetInterfaceParams
1093
+ LPFN_SCAN_SETINTERFACEPARAMS_T lpfn_SCAN_SetInterfaceParams; ///< function pointer to EMDK API SCAN_SetInterfaceParams
1094
+ LPFN_SCAN_GETDEVICEINFO_T lpfn_SCAN_GetDeviceInfo; ///< function pointer to EMDK API SCAN_GetDeviceInfo
1095
+ LPFN_SCAN_GETVERSIONINFO_T lpfn_SCAN_GetVersionInfo; ///< function pointer to EMDK API SCAN_GetVersionInfo
1096
+ };
1097
+
1098
+
1099
+