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,1195 @@
1
+ #include "Scanner.h"
2
+
3
+ int CScanner::Get_all_decoders_PropertyValue(LPCTSTR szPropertyName, WCHAR* szPropertyValue)
4
+ {
5
+ int iRetVal = -1;
6
+ DECODER_LIST supportedDecoderList;
7
+ memset(&supportedDecoderList, 0, sizeof(DECODER_LIST));
8
+ SI_INIT(&supportedDecoderList);
9
+ DECODER_LIST enabledDecoderList;
10
+ memset(&enabledDecoderList, 0, sizeof(DECODER_LIST));
11
+ SI_INIT(&enabledDecoderList);
12
+ DWORD dwResult;
13
+ // Retrieve the device's supported decoders
14
+ dwResult = lpfn_SCAN_GetSupportedDecoders(m_hScanner, &supportedDecoderList);
15
+ if (dwResult == E_SCN_SUCCESS)
16
+ {
17
+ for (unsigned int i = 0; i < supportedDecoderList.Decoders.dwDecoderCount; i++)
18
+ {
19
+ // Remove decoders unsupported by RhoElements. Note imaging barcodes must be
20
+ // received in a buffer allocated to hold binary data:
21
+ // scan_allocateBuffer(false, size)
22
+ if (supportedDecoderList.Decoders.byList[i] == (BYTE)*DECODER_POINTER ||
23
+ supportedDecoderList.Decoders.byList[i] == (BYTE)*DECODER_IMAGE ||
24
+ supportedDecoderList.Decoders.byList[i] == (BYTE)*DECODER_DOCCAP)
25
+ {
26
+ // Shift the decoder structure
27
+ memcpy(supportedDecoderList.Decoders.byList + i,
28
+ supportedDecoderList.Decoders.byList + (i + 1),
29
+ supportedDecoderList.Decoders.dwDecoderCount - i);
30
+ supportedDecoderList.Decoders.dwDecoderCount--;
31
+ i--;
32
+ }
33
+ }
34
+ dwResult = lpfn_SCAN_GetEnabledDecoders(m_hScanner, &enabledDecoderList);
35
+ if (dwResult == E_SCN_SUCCESS)
36
+ {
37
+ if (supportedDecoderList.Decoders.dwDecoderCount ==
38
+ enabledDecoderList.Decoders.dwDecoderCount)
39
+ {
40
+ // The number of enabled and supported decoders are the same
41
+ iRetVal = wcslen(L"true") + 1;
42
+ if (szPropertyValue)
43
+ if (wcscpy_s(szPropertyValue, iRetVal, L"true") == EINVAL)
44
+ iRetVal = -1;
45
+ }
46
+ else
47
+ {
48
+ // The number of enabled and supported decoders is different
49
+ iRetVal = wcslen(L"false") + 1;
50
+ if (szPropertyValue)
51
+ if (wcscpy_s(szPropertyValue, iRetVal, L"false") == EINVAL)
52
+ iRetVal = -1;
53
+ }
54
+ }
55
+ }
56
+ return iRetVal;
57
+ }
58
+
59
+ // Abstract Decoders which only have Enabled / Disabled to worry about (No Parameters)
60
+ int CScanner::GetSimpleDecoder(BYTE cDecoder, LPCTSTR szPropertyName, WCHAR* szPropertyValue)
61
+ {
62
+ int iRetVal = -1;
63
+ if (IsDecoderSupported(cDecoder))
64
+ {
65
+ DECODER_LIST decoderList;
66
+ DWORD dwResult;
67
+ // Mark entire buffer allocated, and not used
68
+ memset(&decoderList, 0, sizeof(DECODER_LIST));
69
+ SI_INIT(&decoderList);
70
+
71
+ // Get enabled decoder list
72
+ dwResult = lpfn_SCAN_GetEnabledDecoders(m_hScanner, &decoderList);
73
+ if (dwResult == E_SCN_SUCCESS)
74
+ {
75
+ // Search for our decoder in the list of enabled decoders
76
+ for(DWORD i = 0; i < decoderList.Decoders.dwDecoderCount; i++)
77
+ {
78
+ if (decoderList.Decoders.byList[i] == cDecoder)
79
+ {
80
+ // This decoder is enabled
81
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
82
+ }
83
+ }
84
+ if (iRetVal == -1)
85
+ {
86
+ // The decoder was disabled
87
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
88
+ }
89
+ }
90
+ else
91
+ {
92
+ // Unable to retrieve the enabled decoders
93
+ LOG(WARNING) + L"Unable to retrieve enabled decoders";
94
+ }
95
+ }
96
+ else
97
+ {
98
+ // Attempted to enable an unsupported decoder
99
+ WCHAR wLog[MAXLOG];
100
+ if (decoderStrings[cDecoder])
101
+ {
102
+ wsprintf(wLog, L"Decoder %s is not supported on this device, unable to retrive its status",
103
+ decoderStrings[cDecoder]);
104
+ LOG(WARNING) + wLog;
105
+ }
106
+ }
107
+ return iRetVal;
108
+ }
109
+
110
+ int CScanner::Get_pdf417_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
111
+ {
112
+ return GetSimpleDecoder((BYTE)*DECODER_PDF417, szPropertyName, szPropertyValue);
113
+ }
114
+
115
+ int CScanner::Get_Chinese_2Of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
116
+ {
117
+ return GetSimpleDecoder((BYTE)*DECODER_CHINESE_2OF5, szPropertyName, szPropertyValue);
118
+ }
119
+
120
+ int CScanner::Get_AZTEC_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
121
+ {
122
+ return GetSimpleDecoder((BYTE)*DECODER_AZTEC, szPropertyName, szPropertyValue);
123
+ }
124
+
125
+ int CScanner::Get_MicroQR_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
126
+ {
127
+ return GetSimpleDecoder((BYTE)*DECODER_MICROQR, szPropertyName, szPropertyValue);
128
+ }
129
+
130
+
131
+ int CScanner::Get_Korean_3Of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
132
+ {
133
+ int iRetVal = -1;
134
+ BYTE cCurrentDecoder = (BYTE)*DECODER_KOREAN_3OF5;
135
+ if (cmp(szPropertyName, L"korean3of5") ||
136
+ cmp(szPropertyName, L"korean_3of5"))
137
+ {
138
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
139
+ }
140
+ else
141
+ {
142
+ if (cmp(szPropertyName, L"korean_3of5Redundancy") ||
143
+ cmp(szPropertyName, L"korean3of5Redundancy"))
144
+ {
145
+ KOREAN_3OF5_PARAMS decoderParameters;
146
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
147
+ if (decoderParameters.bRedundancy)
148
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
149
+ else
150
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
151
+ }
152
+ else if (cmp(szPropertyName, L"korean_3of5MinLength") ||
153
+ cmp(szPropertyName, L"korean3of5MinLength"))
154
+ {
155
+ iRetVal = ProcessDecoderPropertyForReturn(
156
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
157
+ }
158
+ else if (cmp(szPropertyName, L"korean_3of5MaxLength") ||
159
+ cmp(szPropertyName, L"korean3of5MaxLength"))
160
+ {
161
+ iRetVal = ProcessDecoderPropertyForReturn(
162
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
163
+ }
164
+ }
165
+ return iRetVal;
166
+ }
167
+
168
+ int CScanner::Get_Us4State_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
169
+ {
170
+ return GetSimpleDecoder((BYTE)*DECODER_US4STATE, szPropertyName, szPropertyValue);
171
+ }
172
+
173
+ int CScanner::Get_webcode_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
174
+ {
175
+ int iRetVal = -1;
176
+ BYTE cCurrentDecoder = (BYTE)*DECODER_WEBCODE;
177
+ if (cmp(szPropertyName, L"webcode"))
178
+ {
179
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
180
+ }
181
+ else
182
+ {
183
+ WEBCODE_PARAMS decoderParameters;
184
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
185
+ if (cmp(szPropertyName, L"webcodeDecodeGtSubtype"))
186
+ {
187
+ if (decoderParameters.bGTWebcode)
188
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
189
+ else
190
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
191
+ }
192
+ }
193
+ return iRetVal;
194
+ }
195
+
196
+ int CScanner::Get_uspostnet_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
197
+ {
198
+ return GetSimpleDecoder((BYTE)*DECODER_USPOSTNET, szPropertyName, szPropertyValue);
199
+ }
200
+
201
+ int CScanner::Get_usplanet_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
202
+ {
203
+ return GetSimpleDecoder((BYTE)*DECODER_USPLANET, szPropertyName, szPropertyValue);
204
+ }
205
+
206
+ int CScanner::Get_ukpostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
207
+ {
208
+ return GetSimpleDecoder((BYTE)*DECODER_UKPOSTAL, szPropertyName, szPropertyValue);
209
+ }
210
+
211
+ int CScanner::Get_tlc39_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
212
+ {
213
+ return GetSimpleDecoder((BYTE)*DECODER_TLC39, szPropertyName, szPropertyValue);
214
+ }
215
+
216
+ int CScanner::Get_signature_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
217
+ {
218
+ int iRetVal = -1;
219
+ BYTE cCurrentDecoder = (BYTE)*DECODER_SIGNATURE;
220
+ if (cmp(szPropertyName, L"signature"))
221
+ {
222
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
223
+ }
224
+ else
225
+ {
226
+ SIGNATURE_PARAMS decoderParameters;
227
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
228
+ if (cmp(szPropertyName, L"signatureImageQuality"))
229
+ {
230
+ iRetVal = ProcessDecoderPropertyForReturn(
231
+ (int)decoderParameters.dwJpegImageQuality, szPropertyValue);
232
+ }
233
+ else if (cmp(szPropertyName, L"signatureImageSize"))
234
+ {
235
+ iRetVal = ProcessDecoderPropertyForReturn(
236
+ (int)decoderParameters.dwJpegImageSize, szPropertyValue);
237
+ }
238
+ else if (cmp(szPropertyName, L"signatureImageWidth"))
239
+ {
240
+ iRetVal = ProcessDecoderPropertyForReturn(
241
+ (int)decoderParameters.dwImageWidth, szPropertyValue);
242
+ }
243
+ else if (cmp(szPropertyName, L"SignatureImageHeight"))
244
+ {
245
+ iRetVal = ProcessDecoderPropertyForReturn(
246
+ (int)decoderParameters.dwImageHeight, szPropertyValue);
247
+ }
248
+ }
249
+ return iRetVal;
250
+ }
251
+
252
+ int CScanner::Get_rsslim_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
253
+ {
254
+ return GetSimpleDecoder((BYTE)*DECODER_RSSLIM, szPropertyName, szPropertyValue);
255
+ }
256
+
257
+ int CScanner::Get_rssexp_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
258
+ {
259
+ return GetSimpleDecoder((BYTE)*DECODER_RSSEXP, szPropertyName, szPropertyValue);
260
+ }
261
+
262
+ int CScanner::Get_rss14_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
263
+ {
264
+ return GetSimpleDecoder((BYTE)*DECODER_RSS14, szPropertyName, szPropertyValue);
265
+ }
266
+
267
+ int CScanner::Get_qrcode_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
268
+ {
269
+ return GetSimpleDecoder((BYTE)*DECODER_QRCODE, szPropertyName, szPropertyValue);
270
+ }
271
+
272
+ int CScanner::Get_micropdf_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
273
+ {
274
+ return GetSimpleDecoder((BYTE)*DECODER_MICROPDF, szPropertyName, szPropertyValue);
275
+ }
276
+
277
+ int CScanner::Get_maxicode_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
278
+ {
279
+ return GetSimpleDecoder((BYTE)*DECODER_MAXICODE, szPropertyName, szPropertyValue);
280
+ }
281
+
282
+ int CScanner::Get_macropdf_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
283
+ {
284
+ int iRetVal = -1;
285
+ BYTE cCurrentDecoder = (BYTE)*DECODER_MACROPDF;
286
+ if (cmp(szPropertyName, L"macroPdf"))
287
+ {
288
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
289
+ }
290
+ else
291
+ {
292
+ MACROPDF_PARAMS decoderParameters;
293
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
294
+ if (cmp(szPropertyName, L"macroPdfBufferLabels"))
295
+ {
296
+ if (decoderParameters.bBufferLabels)
297
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
298
+ else
299
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
300
+ }
301
+ else if (cmp(szPropertyName, L"macroPdfExclusive"))
302
+ {
303
+ if (decoderParameters.bExclusive)
304
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
305
+ else
306
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
307
+ }
308
+ else if (cmp(szPropertyName, L"macroPdfConvertToPdf417"))
309
+ {
310
+ if (decoderParameters.bConvertToPDF417)
311
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
312
+ else
313
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
314
+ }
315
+ }
316
+ return iRetVal;
317
+ }
318
+
319
+ int CScanner::Get_macromicropdf_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
320
+ {
321
+ int iRetVal = -1;
322
+ BYTE cCurrentDecoder = (BYTE)*DECODER_MACROMICROPDF;
323
+ if (cmp(szPropertyName, L"macroMicroPdf"))
324
+ {
325
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
326
+ }
327
+ else
328
+ {
329
+ MACROMICROPDF_PARAMS decoderParameters;
330
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
331
+ if (cmp(szPropertyName, L"macroMicroPdfReportAppendInfo"))
332
+ {
333
+ if (decoderParameters.bReportAppendInfo)
334
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
335
+ else
336
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
337
+ }
338
+ else if (cmp(szPropertyName, L"macroMicroPdfBufferLabels"))
339
+ {
340
+ if (decoderParameters.bBufferLabels)
341
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
342
+ else
343
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
344
+ }
345
+ else if (cmp(szPropertyName, L"macroMicroPdfExclusive"))
346
+ {
347
+ if (decoderParameters.bExclusive)
348
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
349
+ else
350
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
351
+ }
352
+ else if (cmp(szPropertyName, L"macroMicroPdfConvertToMicroPdf"))
353
+ {
354
+ if (decoderParameters.bConvertToMicroPDF)
355
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
356
+ else
357
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
358
+ }
359
+ }
360
+ return iRetVal;
361
+ }
362
+
363
+ int CScanner::Get_jappostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
364
+ {
365
+ return GetSimpleDecoder((BYTE)*DECODER_JAPPOSTAL, szPropertyName, szPropertyValue);
366
+ }
367
+
368
+ int CScanner::Get_ean13_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
369
+ {
370
+ return GetSimpleDecoder((BYTE)*DECODER_EAN13, szPropertyName, szPropertyValue);
371
+ }
372
+
373
+ int CScanner::Get_dutchpostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
374
+ {
375
+ return GetSimpleDecoder((BYTE)*DECODER_DUTCHPOSTAL, szPropertyName, szPropertyValue);
376
+ }
377
+
378
+ int CScanner::Get_datamatrix_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
379
+ {
380
+ return GetSimpleDecoder((BYTE)*DECODER_DATAMATRIX, szPropertyName, szPropertyValue);
381
+ }
382
+
383
+ int CScanner::Get_composit_c_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
384
+ {
385
+ return GetSimpleDecoder((BYTE)*DECODER_COMPOSITE_C, szPropertyName, szPropertyValue);
386
+ }
387
+
388
+ int CScanner::Get_composit_ab_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
389
+ {
390
+ int iRetVal = -1;
391
+ BYTE cCurrentDecoder = (BYTE)*DECODER_COMPOSITE_AB;
392
+ if (cmp(szPropertyName, L"compositeAb"))
393
+ {
394
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
395
+ }
396
+ else
397
+ {
398
+ COMPOSITE_AB_PARAMS decoderParameters;
399
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
400
+ if (cmp(szPropertyName, L"compositeAbUseUpcPreambleCheckDigitRules"))
401
+ {
402
+ if (decoderParameters.bUseUPCPreambleCheckDigitRules)
403
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
404
+ else
405
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
406
+ }
407
+ else if (cmp(szPropertyName, L"compositeAbUccLinkMode"))
408
+ {
409
+ if (decoderParameters.dwUCCLinkMode == UCC_NEVER)
410
+ iRetVal = ProcessDecoderPropertyForReturn(L"never", szPropertyValue);
411
+ else if (decoderParameters.dwUCCLinkMode == UCC_ALWAYS)
412
+ iRetVal = ProcessDecoderPropertyForReturn(L"always", szPropertyValue);
413
+ else if (decoderParameters.dwUCCLinkMode == UCC_AUTO)
414
+ iRetVal = ProcessDecoderPropertyForReturn(L"auto", szPropertyValue);
415
+ else
416
+ iRetVal = -1;
417
+ }
418
+ }
419
+ return iRetVal;
420
+ }
421
+
422
+ int CScanner::Get_canpostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
423
+ {
424
+ return GetSimpleDecoder((BYTE)*DECODER_CANPOSTAL, szPropertyName, szPropertyValue);
425
+ }
426
+
427
+ int CScanner::Get_auspostal_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
428
+ {
429
+ return GetSimpleDecoder((BYTE)*DECODER_AUSPOSTAL, szPropertyName, szPropertyValue);
430
+ }
431
+
432
+ int CScanner::Get_upce1_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
433
+ {
434
+ int iRetVal = -1;
435
+ BYTE cCurrentDecoder = (BYTE)*DECODER_UPCE1;
436
+ if (cmp(szPropertyName, L"upce1"))
437
+ {
438
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
439
+ }
440
+ else
441
+ {
442
+ UPCE1_PARAMS decoderParameters;
443
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
444
+ if (cmp(szPropertyName, L"upce1Preamble"))
445
+ {
446
+ if (decoderParameters.dwPreamble == PREAMBLE_NONE)
447
+ iRetVal = ProcessDecoderPropertyForReturn(L"none", szPropertyValue);
448
+ else if (decoderParameters.dwPreamble == PREAMBLE_SYSTEM_CHAR)
449
+ iRetVal = ProcessDecoderPropertyForReturn(L"systemChar", szPropertyValue);
450
+ else if (decoderParameters.dwPreamble == PREAMBLE_COUNTRY_AND_SYSTEM_CHARS)
451
+ iRetVal = ProcessDecoderPropertyForReturn(L"countryAndSystemChars", szPropertyValue);
452
+ else
453
+ iRetVal = -1;
454
+ }
455
+ else if (cmp(szPropertyName, L"upce1ReportCheckDigit"))
456
+ {
457
+ if (decoderParameters.bReportCheckDigit)
458
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
459
+ else
460
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
461
+ }
462
+ else if (cmp(szPropertyName, L"upce1ConvertToUPCA"))
463
+ {
464
+ if (decoderParameters.bConvertToUPCA)
465
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
466
+ else
467
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
468
+ }
469
+ }
470
+ return iRetVal;
471
+ }
472
+
473
+ int CScanner::Get_upce0_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
474
+ {
475
+ int iRetVal = -1;
476
+ BYTE cCurrentDecoder = (BYTE)*DECODER_UPCE0;
477
+ if (cmp(szPropertyName, L"upce0"))
478
+ {
479
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
480
+ }
481
+ else
482
+ {
483
+ UPCE0_PARAMS decoderParameters;
484
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
485
+ if (cmp(szPropertyName, L"upce0Preamble"))
486
+ {
487
+ if (decoderParameters.dwPreamble == PREAMBLE_NONE)
488
+ iRetVal = ProcessDecoderPropertyForReturn(L"none", szPropertyValue);
489
+ else if (decoderParameters.dwPreamble == PREAMBLE_SYSTEM_CHAR)
490
+ iRetVal = ProcessDecoderPropertyForReturn(L"systemChar", szPropertyValue);
491
+ else if (decoderParameters.dwPreamble == PREAMBLE_COUNTRY_AND_SYSTEM_CHARS)
492
+ iRetVal = ProcessDecoderPropertyForReturn(L"countryAndSystemChars", szPropertyValue);
493
+ else
494
+ iRetVal = -1;
495
+ }
496
+ else if (cmp(szPropertyName, L"upce0ReportCheckDigit"))
497
+ {
498
+ if (decoderParameters.bReportCheckDigit)
499
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
500
+ else
501
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
502
+ }
503
+ else if (cmp(szPropertyName, L"upce0ConvertToUPCA"))
504
+ {
505
+ if (decoderParameters.bConvertToUPCA)
506
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
507
+ else
508
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
509
+ }
510
+ }
511
+ return iRetVal;
512
+ }
513
+
514
+ int CScanner::Get_upca_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
515
+ {
516
+ int iRetVal = -1;
517
+ BYTE cCurrentDecoder = (BYTE)*DECODER_UPCA;
518
+ if (cmp(szPropertyName, L"upca"))
519
+ {
520
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
521
+ }
522
+ else
523
+ {
524
+ UPCA_PARAMS decoderParameters;
525
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
526
+ if (cmp(szPropertyName, L"upcaPreamble"))
527
+ {
528
+ if (decoderParameters.dwPreamble == PREAMBLE_NONE)
529
+ iRetVal = ProcessDecoderPropertyForReturn(L"none", szPropertyValue);
530
+ else if (decoderParameters.dwPreamble == PREAMBLE_SYSTEM_CHAR)
531
+ iRetVal = ProcessDecoderPropertyForReturn(L"systemChar", szPropertyValue);
532
+ else if (decoderParameters.dwPreamble == PREAMBLE_COUNTRY_AND_SYSTEM_CHARS)
533
+ iRetVal = ProcessDecoderPropertyForReturn(L"countryAndSystemChars", szPropertyValue);
534
+ else
535
+ iRetVal = -1;
536
+ }
537
+ else if (cmp(szPropertyName, L"upcaReportCheckDigit"))
538
+ {
539
+ if (decoderParameters.bReportCheckDigit)
540
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
541
+ else
542
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
543
+ }
544
+ }
545
+ return iRetVal;
546
+ }
547
+
548
+ int CScanner::Get_upc_ean_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
549
+ {
550
+ int iRetVal = -1;
551
+ UPC_EAN_PARAMS upceanParams;
552
+ RetrieveUPCEANParams(&upceanParams);
553
+ if (cmp(szPropertyName, L"upc_eanbookland") ||
554
+ cmp(szPropertyName, L"upceanbookland"))
555
+ {
556
+ if (upceanParams.bBookland)
557
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
558
+ else
559
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
560
+ }
561
+ else if (cmp(szPropertyName, L"upc_eanCoupon") ||
562
+ cmp(szPropertyName, L"upceanCoupon"))
563
+ {
564
+ if (upceanParams.bCoupon)
565
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
566
+ else
567
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
568
+ }
569
+ else if (cmp(szPropertyName, L"upc_eanLinearDecode") ||
570
+ cmp(szPropertyName, L"upceanLinearDecode"))
571
+ {
572
+ if (upceanParams.bLinearDecode)
573
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
574
+ else
575
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
576
+ }
577
+ else if (cmp(szPropertyName, L"upc_eanRandomWeightCheckDigit") ||
578
+ cmp(szPropertyName, L"upceanRandomWeightCheckDigit"))
579
+ {
580
+ if (upceanParams.bRandomWeightCheckDigit)
581
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
582
+ else
583
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
584
+ }
585
+ else if (cmp(szPropertyName, L"upc_eanSupplemental2") ||
586
+ cmp(szPropertyName, L"upceanSupplemental2"))
587
+ {
588
+ if (upceanParams.bSupplemental2)
589
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
590
+ else
591
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
592
+ }
593
+ else if (cmp(szPropertyName, L"upc_eanSupplemental5") ||
594
+ cmp(szPropertyName, L"upceanSupplemental5"))
595
+ {
596
+ if (upceanParams.bSupplemental5)
597
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
598
+ else
599
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
600
+ }
601
+ else if (cmp(szPropertyName, L"upc_eanConvertRSSToUpcean") ||
602
+ cmp(szPropertyName, L"upceanConvertRSSToUpcean") ||
603
+ cmp(szPropertyName, L"upcEanConvertGs1dataBarToUpcEan"))
604
+ {
605
+ if (upceanParams.bConvertRSSToUPCEAN)
606
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
607
+ else
608
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
609
+ }
610
+ else if (cmp(szPropertyName, L"upc_eanRetryCount") ||
611
+ cmp(szPropertyName, L"upceanRetryCount"))
612
+ {
613
+ iRetVal = ProcessDecoderPropertyForReturn(
614
+ (int)upceanParams.dwRetryCount, szPropertyValue);
615
+ }
616
+ else if (cmp(szPropertyName, L"upc_eanSecurityLevel") ||
617
+ cmp(szPropertyName, L"upceanSecurityLevel"))
618
+ {
619
+ // None, Ambiguous and All have been deprecated in the EMDK and replaced by numbers
620
+ iRetVal = ProcessDecoderPropertyForReturn(
621
+ (int)upceanParams.dwSecurityLevel, szPropertyValue);
622
+ }
623
+ else if (cmp(szPropertyName, L"upc_eanSupplementalMode") ||
624
+ cmp(szPropertyName, L"upceanSupplementalMode"))
625
+ {
626
+ if (upceanParams.dwSupplementalMode == SUPPLEMENTALS_NONE)
627
+ iRetVal = ProcessDecoderPropertyForReturn(L"none", szPropertyValue);
628
+ else if (upceanParams.dwSupplementalMode == SUPPLEMENTALS_ALWAYS)
629
+ iRetVal = ProcessDecoderPropertyForReturn(L"always", szPropertyValue);
630
+ else if (upceanParams.dwSupplementalMode == SUPPLEMENTALS_AUTO)
631
+ iRetVal = ProcessDecoderPropertyForReturn(L"auto", szPropertyValue);
632
+ else if (upceanParams.dwSupplementalMode == SUPPLEMENTALS_SMART)
633
+ iRetVal = ProcessDecoderPropertyForReturn(L"smart", szPropertyValue);
634
+ else if (upceanParams.dwSupplementalMode == SUPPLEMENTALS_378_379)
635
+ iRetVal = ProcessDecoderPropertyForReturn(L"378or379", szPropertyValue);
636
+ // Supplementals 978 has been deprecated in EMDK and also shares the same value as it's
637
+ // replacement
638
+ // else if (upceanParams.dwSupplementalMode == SUPPLEMENTALS_978)
639
+ // iRetVal = ProcessDecoderPropertyForReturn(L"978", szPropertyValue);
640
+ else if (upceanParams.dwSupplementalMode == SUPPLEMENTALS_978_979)
641
+ iRetVal = ProcessDecoderPropertyForReturn(L"978or979", szPropertyValue);
642
+ else if (upceanParams.dwSupplementalMode == SUPPLEMENTALS_977)
643
+ iRetVal = ProcessDecoderPropertyForReturn(L"977", szPropertyValue);
644
+ else if (upceanParams.dwSupplementalMode == SUPPLEMENTALS_414_419_434_439)
645
+ iRetVal = ProcessDecoderPropertyForReturn(L"414or419or434or439", szPropertyValue);
646
+ else
647
+ iRetVal = -1;
648
+ }
649
+ else if (cmp(szPropertyName, L"upc_eanBooklandFormat") ||
650
+ cmp(szPropertyName, L"upceanBooklandFormat"))
651
+ {
652
+ if (upceanParams.dwBooklandFormat == BOOKLAND_FORMAT_ISBN_10)
653
+ iRetVal = ProcessDecoderPropertyForReturn(L"isbn10", szPropertyValue);
654
+ else if (upceanParams.dwBooklandFormat == BOOKLAND_FORMAT_ISBN_13)
655
+ iRetVal = ProcessDecoderPropertyForReturn(L"isbn13", szPropertyValue);
656
+ else
657
+ iRetVal = -1;
658
+ }
659
+
660
+ return iRetVal;
661
+ }
662
+
663
+ int CScanner::Get_trioptic39_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
664
+ {
665
+ int iRetVal = -1;
666
+ BYTE cCurrentDecoder = (BYTE)*DECODER_TRIOPTIC39;
667
+ if (cmp(szPropertyName, L"trioptic39"))
668
+ {
669
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
670
+ }
671
+ else
672
+ {
673
+ TRIOPTIC39_PARAMS decoderParameters;
674
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
675
+ if (cmp(szPropertyName, L"trioptic39Redundancy"))
676
+ {
677
+ if (decoderParameters.bRedundancy)
678
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
679
+ else
680
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
681
+ }
682
+ }
683
+ return iRetVal;
684
+ }
685
+
686
+ int CScanner::Get_msi_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
687
+ {
688
+ int iRetVal = -1;
689
+ BYTE cCurrentDecoder = (BYTE)*DECODER_MSI;
690
+ if (cmp(szPropertyName, L"msi"))
691
+ {
692
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
693
+ }
694
+ else
695
+ {
696
+ MSI_PARAMS decoderParameters;
697
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
698
+ if (cmp(szPropertyName, L"msiCheckDigits"))
699
+ {
700
+ if (decoderParameters.dwCheckDigits == MSI_ONE_CHECK_DIGIT)
701
+ iRetVal = ProcessDecoderPropertyForReturn(L"one", szPropertyValue);
702
+ else if (decoderParameters.dwCheckDigits == MSI_TWO_CHECK_DIGIT)
703
+ iRetVal = ProcessDecoderPropertyForReturn(L"two", szPropertyValue);
704
+ else
705
+ iRetVal = -1;
706
+ }
707
+ else if (cmp(szPropertyName, L"msiCheckDigitScheme"))
708
+ {
709
+ if (decoderParameters.dwCheckDigitScheme == MSI_CHKDGT_MOD_11_10)
710
+ iRetVal = ProcessDecoderPropertyForReturn(L"mod11", szPropertyValue);
711
+ else if (decoderParameters.dwCheckDigitScheme == MSI_CHKDGT_MOD_10_10)
712
+ iRetVal = ProcessDecoderPropertyForReturn(L"mod10", szPropertyValue);
713
+ else
714
+ iRetVal = -1;
715
+ }
716
+ else if (cmp(szPropertyName, L"msiRedundancy"))
717
+ {
718
+ if (decoderParameters.bRedundancy)
719
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
720
+ else
721
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
722
+ }
723
+ else if (cmp(szPropertyName, L"msiReportCheckDigit"))
724
+ {
725
+ if (decoderParameters.bReportCheckDigit)
726
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
727
+ else
728
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
729
+ }
730
+ else if (cmp(szPropertyName, L"msiMinLength"))
731
+ {
732
+ iRetVal = ProcessDecoderPropertyForReturn(
733
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
734
+ }
735
+ else if (cmp(szPropertyName, L"msiMaxLength"))
736
+ {
737
+ iRetVal = ProcessDecoderPropertyForReturn(
738
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
739
+ }
740
+ }
741
+ return iRetVal;
742
+ }
743
+
744
+ int CScanner::Get_i2of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
745
+ {
746
+ int iRetVal = -1;
747
+ BYTE cCurrentDecoder = (BYTE)*DECODER_I2OF5;
748
+ if (cmp(szPropertyName, L"i2of5"))
749
+ {
750
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
751
+ }
752
+ else
753
+ {
754
+ I2OF5_PARAMS decoderParameters;
755
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
756
+ if (cmp(szPropertyName, L"I2of5Redundancy"))
757
+ {
758
+ if (decoderParameters.bRedundancy)
759
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
760
+ else
761
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
762
+ }
763
+ else if (cmp(szPropertyName, L"I2of5ConvertToEAN13"))
764
+ {
765
+ if (decoderParameters.bConvertToEAN13)
766
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
767
+ else
768
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
769
+ }
770
+ else if (cmp(szPropertyName, L"I2of5ReportCheckDigit"))
771
+ {
772
+ if (decoderParameters.bReportCheckDigit)
773
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
774
+ else
775
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
776
+ }
777
+ else if (cmp(szPropertyName, L"I2of5VerifyCheckDigit"))
778
+ {
779
+ if (decoderParameters.dwVerifyCheckDigit == I2OF5_NO_CHECK_DIGIT)
780
+ iRetVal = ProcessDecoderPropertyForReturn(L"none", szPropertyValue);
781
+ else if (decoderParameters.dwVerifyCheckDigit == I2OF5_USS_CHECK_DIGIT)
782
+ iRetVal = ProcessDecoderPropertyForReturn(L"uss", szPropertyValue);
783
+ else if (decoderParameters.dwVerifyCheckDigit == I2OF5_OPCC_CHECK_DIGIT)
784
+ iRetVal = ProcessDecoderPropertyForReturn(L"opcc", szPropertyValue);
785
+ else
786
+ iRetVal = -1;
787
+ }
788
+ else if (cmp(szPropertyName, L"I2of5Minlength"))
789
+ {
790
+ iRetVal = ProcessDecoderPropertyForReturn(
791
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
792
+ }
793
+ else if (cmp(szPropertyName, L"I2of5Maxlength"))
794
+ {
795
+ iRetVal = ProcessDecoderPropertyForReturn(
796
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
797
+ }
798
+ }
799
+ return iRetVal;
800
+ }
801
+
802
+ int CScanner::Get_ean8_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
803
+ {
804
+ int iRetVal = -1;
805
+ BYTE cCurrentDecoder = (BYTE)*DECODER_EAN8;
806
+ if (cmp(szPropertyName, L"ean8"))
807
+ {
808
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
809
+ }
810
+ else
811
+ {
812
+ EAN8_PARAMS decoderParameters;
813
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
814
+ if (cmp(szPropertyName, L"ean8ConvertToEan13"))
815
+ {
816
+ if (decoderParameters.bConvertToEAN13)
817
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
818
+ else
819
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
820
+ }
821
+ }
822
+ return iRetVal;
823
+ }
824
+
825
+ int CScanner::Get_d2of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
826
+ {
827
+ int iRetVal = -1;
828
+ BYTE cCurrentDecoder = (BYTE)*DECODER_D2OF5;
829
+ if (cmp(szPropertyName, L"d2of5"))
830
+ {
831
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
832
+ }
833
+ else
834
+ {
835
+ D2OF5_PARAMS decoderParameters;
836
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
837
+ if (cmp(szPropertyName, L"D2of5Redundancy"))
838
+ {
839
+ if (decoderParameters.bRedundancy)
840
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
841
+ else
842
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
843
+ }
844
+ else if (cmp(szPropertyName, L"D2of5Minlength"))
845
+ {
846
+ iRetVal = ProcessDecoderPropertyForReturn(
847
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
848
+ }
849
+ else if (cmp(szPropertyName, L"D2of5Maxlength"))
850
+ {
851
+ iRetVal = ProcessDecoderPropertyForReturn(
852
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
853
+ }
854
+ }
855
+ return iRetVal;
856
+ }
857
+
858
+ int CScanner::Get_code93_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
859
+ {
860
+ int iRetVal = -1;
861
+ BYTE cCurrentDecoder = (BYTE)*DECODER_CODE93;
862
+ if (cmp(szPropertyName, L"code93"))
863
+ {
864
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
865
+ }
866
+ else
867
+ {
868
+ CODE93_PARAMS decoderParameters;
869
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
870
+ if (cmp(szPropertyName, L"Code93Redundancy"))
871
+ {
872
+ if (decoderParameters.bRedundancy)
873
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
874
+ else
875
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
876
+ }
877
+ else if (cmp(szPropertyName, L"Code93MinLength"))
878
+ {
879
+ iRetVal = ProcessDecoderPropertyForReturn(
880
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
881
+ }
882
+ else if (cmp(szPropertyName, L"Code93MaxLength"))
883
+ {
884
+ iRetVal = ProcessDecoderPropertyForReturn(
885
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
886
+ }
887
+ }
888
+ return iRetVal;
889
+ }
890
+
891
+ int CScanner::Get_code39_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
892
+ {
893
+ int iRetVal = -1;
894
+ BYTE cCurrentDecoder = (BYTE)*DECODER_CODE39;
895
+ if (cmp(szPropertyName, L"code39"))
896
+ {
897
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
898
+ }
899
+ else
900
+ {
901
+ CODE39_PARAMS decoderParameters;
902
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
903
+ if (cmp(szPropertyName, L"Code39Redundancy"))
904
+ {
905
+ if (decoderParameters.bRedundancy)
906
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
907
+ else
908
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
909
+ }
910
+ else if (cmp(szPropertyName, L"Code39ReportCheckDigit"))
911
+ {
912
+ if (decoderParameters.bReportCheckDigit)
913
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
914
+ else
915
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
916
+ }
917
+ else if (cmp(szPropertyName, L"Code39VerifyCheckDigit"))
918
+ {
919
+ if (decoderParameters.bVerifyCheckDigit)
920
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
921
+ else
922
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
923
+ }
924
+ else if (cmp(szPropertyName, L"Code39Code32Prefix"))
925
+ {
926
+ if (decoderParameters.bCode32Prefix)
927
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
928
+ else
929
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
930
+ }
931
+ else if (cmp(szPropertyName, L"Code39Concatenation"))
932
+ {
933
+ if (decoderParameters.bConcatenation)
934
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
935
+ else
936
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
937
+ }
938
+ else if (cmp(szPropertyName, L"Code39ConvertToCode32"))
939
+ {
940
+ if (decoderParameters.bConvertToCode32)
941
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
942
+ else
943
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
944
+ }
945
+ else if (cmp(szPropertyName, L"Code39FullAscii"))
946
+ {
947
+ if (decoderParameters.bFullAscii)
948
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
949
+ else
950
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
951
+ }
952
+ else if (cmp(szPropertyName, L"Code39SecurityLevel"))
953
+ {
954
+ iRetVal = ProcessDecoderPropertyForReturn(
955
+ (int)decoderParameters.dwSecurityLevel, szPropertyValue);
956
+ }
957
+ else if (cmp(szPropertyName, L"Code39MinLength"))
958
+ {
959
+ iRetVal = ProcessDecoderPropertyForReturn(
960
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
961
+ }
962
+ else if (cmp(szPropertyName, L"Code39MaxLength"))
963
+ {
964
+ iRetVal = ProcessDecoderPropertyForReturn(
965
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
966
+ }
967
+ }
968
+ return iRetVal;
969
+ }
970
+
971
+ int CScanner::Get_code11_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
972
+ {
973
+ int iRetVal = -1;
974
+ BYTE cCurrentDecoder = (BYTE)*DECODER_CODE11;
975
+ if (cmp(szPropertyName, L"code11"))
976
+ {
977
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
978
+ }
979
+ else
980
+ {
981
+ CODE11_PARAMS decoderParameters;
982
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
983
+ if (cmp(szPropertyName, L"Code11Redundancy"))
984
+ {
985
+ if (decoderParameters.bRedundancy)
986
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
987
+ else
988
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
989
+ }
990
+ else if (cmp(szPropertyName, L"Code11ReportCheckDigit"))
991
+ {
992
+ if (decoderParameters.bReportCheckDigit)
993
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
994
+ else
995
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
996
+ }
997
+ else if (cmp(szPropertyName, L"Code11CheckDigitCount"))
998
+ {
999
+ if (decoderParameters.dwCheckDigitCount == CODE11_NO_CHECK_DIGIT)
1000
+ iRetVal = ProcessDecoderPropertyForReturn(L"none", szPropertyValue);
1001
+ else if (decoderParameters.dwCheckDigitCount == CODE11_ONE_CHECK_DIGIT)
1002
+ iRetVal = ProcessDecoderPropertyForReturn(L"one", szPropertyValue);
1003
+ else if (decoderParameters.dwCheckDigitCount == CODE11_TWO_CHECK_DIGIT)
1004
+ iRetVal = ProcessDecoderPropertyForReturn(L"two", szPropertyValue);
1005
+ else
1006
+ iRetVal = -1;
1007
+ }
1008
+ else if (cmp(szPropertyName, L"Code11MinLength"))
1009
+ {
1010
+ iRetVal = ProcessDecoderPropertyForReturn(
1011
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
1012
+ }
1013
+ else if (cmp(szPropertyName, L"Code11MaxLength"))
1014
+ {
1015
+ iRetVal = ProcessDecoderPropertyForReturn(
1016
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
1017
+ }
1018
+ }
1019
+ return iRetVal;
1020
+ }
1021
+
1022
+ int CScanner::Get_code128_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
1023
+ {
1024
+ int iRetVal = -1;
1025
+ BYTE cCurrentDecoder = (BYTE)*DECODER_CODE128;
1026
+ if (cmp(szPropertyName, L"code128"))
1027
+ {
1028
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
1029
+ }
1030
+ else
1031
+ {
1032
+ CODE128_PARAMS decoderParameters;
1033
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
1034
+ if (cmp(szPropertyName, L"Code128Redundancy"))
1035
+ {
1036
+ if (decoderParameters.bRedundancy)
1037
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1038
+ else
1039
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1040
+ }
1041
+ else if (cmp(szPropertyName, L"Code128ean128"))
1042
+ {
1043
+ if (decoderParameters.bEAN128)
1044
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1045
+ else
1046
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1047
+ }
1048
+ else if (cmp(szPropertyName, L"Code128isBt128"))
1049
+ {
1050
+ if (decoderParameters.bISBT128)
1051
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1052
+ else
1053
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1054
+ }
1055
+ else if (cmp(szPropertyName, L"Code128Other128"))
1056
+ {
1057
+ if (decoderParameters.bOther128)
1058
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1059
+ else
1060
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1061
+ }
1062
+ else if (cmp(szPropertyName, L"Code128checkIsBtTable"))
1063
+ {
1064
+ if (decoderParameters.bCheckISBTTable)
1065
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1066
+ else
1067
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1068
+ }
1069
+ else if (cmp(szPropertyName, L"Code128isBt128ConcatMode"))
1070
+ {
1071
+ if (decoderParameters.dwISBT128ConcatMode == ISBT128_CONCAT_MODE_NEVER)
1072
+ iRetVal = ProcessDecoderPropertyForReturn(L"never", szPropertyValue);
1073
+ else if (decoderParameters.dwISBT128ConcatMode == ISBT128_CONCAT_MODE_ALWAYS)
1074
+ iRetVal = ProcessDecoderPropertyForReturn(L"always", szPropertyValue);
1075
+ else if (decoderParameters.dwISBT128ConcatMode == ISBT128_CONCAT_MODE_AUTO)
1076
+ iRetVal = ProcessDecoderPropertyForReturn(L"auto", szPropertyValue);
1077
+ else
1078
+ iRetVal = -1;
1079
+ }
1080
+ else if (cmp(szPropertyName, L"Code128SecurityLevel"))
1081
+ {
1082
+ iRetVal = ProcessDecoderPropertyForReturn(
1083
+ (int)decoderParameters.dwSecurityLevel, szPropertyValue);
1084
+ }
1085
+ else if (cmp(szPropertyName, L"Code128MinLength"))
1086
+ {
1087
+ iRetVal = ProcessDecoderPropertyForReturn(
1088
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
1089
+ }
1090
+ else if (cmp(szPropertyName, L"Code128MaxLength"))
1091
+ {
1092
+ iRetVal = ProcessDecoderPropertyForReturn(
1093
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
1094
+ }
1095
+ }
1096
+ return iRetVal;
1097
+ }
1098
+
1099
+ int CScanner::Get_codabar_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
1100
+ {
1101
+ int iRetVal = -1;
1102
+ BYTE cCurrentDecoder = (BYTE)*DECODER_CODABAR;
1103
+ if (cmp(szPropertyName, L"codabar"))
1104
+ {
1105
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
1106
+ }
1107
+ else
1108
+ {
1109
+ CODABAR_PARAMS decoderParameters;
1110
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
1111
+ if (cmp(szPropertyName, L"CodabarRedundancy"))
1112
+ {
1113
+ // Codabar Redundancy
1114
+ if (decoderParameters.bRedundancy)
1115
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1116
+ else
1117
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1118
+ }
1119
+ else if (cmp(szPropertyName, L"CodabarCLSIEditing"))
1120
+ {
1121
+ // Codabar CLSI Editing
1122
+ if (decoderParameters.bClsiEditing)
1123
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1124
+ else
1125
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1126
+ }
1127
+ else if (cmp(szPropertyName, L"CodabarNotisEditing"))
1128
+ {
1129
+ // Codabar Notis Editing
1130
+ if (decoderParameters.bNotisEditing)
1131
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1132
+ else
1133
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1134
+ }
1135
+ else if (cmp(szPropertyName, L"CodabarMinLength"))
1136
+ {
1137
+ // Codabar Min Length
1138
+ iRetVal = ProcessDecoderPropertyForReturn(
1139
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
1140
+ }
1141
+ else if (cmp(szPropertyName, L"CodabarMaxLength"))
1142
+ {
1143
+ // Codabar Max Length
1144
+ iRetVal = ProcessDecoderPropertyForReturn(
1145
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
1146
+ }
1147
+ }
1148
+ return iRetVal;
1149
+ }
1150
+
1151
+ int CScanner::Get_matrix2of5_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
1152
+ {
1153
+ int iRetVal = -1;
1154
+ BYTE cCurrentDecoder = (BYTE)*DECODER_MATRIX_2OF5;
1155
+ if (cmp(szPropertyName, L"matrix2of5"))
1156
+ {
1157
+ iRetVal = GetSimpleDecoder(cCurrentDecoder, szPropertyName, szPropertyValue);
1158
+ }
1159
+ else
1160
+ {
1161
+ MATRIX_2OF5_PARAMS decoderParameters;
1162
+ RetrieveDecoderParams(cCurrentDecoder, &decoderParameters, sizeof(decoderParameters));
1163
+ if (cmp(szPropertyName, L"Matrix2of5ReportCheckDigit"))
1164
+ {
1165
+ if (decoderParameters.bReportCheckDigit)
1166
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1167
+ else
1168
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1169
+ }
1170
+ else if (cmp(szPropertyName, L"Matrix2of5VerifyCheckDigit"))
1171
+ {
1172
+ if (decoderParameters.bVerifyCheckDigit)
1173
+ iRetVal = ProcessDecoderPropertyForReturn(L"true", szPropertyValue);
1174
+ else
1175
+ iRetVal = ProcessDecoderPropertyForReturn(L"false", szPropertyValue);
1176
+ }
1177
+ else if (cmp(szPropertyName, L"Matrix2of5Minlength"))
1178
+ {
1179
+ iRetVal = ProcessDecoderPropertyForReturn(
1180
+ GetDecoderLength(cCurrentDecoder, true), szPropertyValue);
1181
+ }
1182
+ else if (cmp(szPropertyName, L"Matrix2of5Maxlength"))
1183
+ {
1184
+ iRetVal = ProcessDecoderPropertyForReturn(
1185
+ GetDecoderLength(cCurrentDecoder, false), szPropertyValue);
1186
+ }
1187
+ }
1188
+ return iRetVal;
1189
+ }
1190
+
1191
+ int CScanner::Get_Us4StateFics_PropertyValue (LPCTSTR szPropertyName, WCHAR* szPropertyValue)
1192
+ {
1193
+ return GetSimpleDecoder((BYTE)*DECODER_US4STATE_FICS, szPropertyName, szPropertyValue);
1194
+ }
1195
+