rhodes 2.3.2 → 2.4.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (623) hide show
  1. data/CHANGELOG +18 -0
  2. data/CREDITS +38 -0
  3. data/README.md +2 -2
  4. data/Rakefile +60 -2
  5. data/bin/set-rhodes-sdk.bat +1 -0
  6. data/doc/application.txt +11 -0
  7. data/doc/build.txt +156 -39
  8. data/doc/configuration.txt +1 -10
  9. data/doc/connect-to-web-services.txt +6 -6
  10. data/doc/device-caps.txt +48 -5
  11. data/doc/extensions.txt +8 -1
  12. data/doc/rhom.txt +16 -0
  13. data/doc/synchronization.txt +56 -14
  14. data/doc/ui.txt +23 -2
  15. data/installer/instant-rhodes.nsi +6 -6
  16. data/lib/extensions/barcode/ext/barcode/platform/iphone/Barcode.xcodeproj/project.pbxproj +4 -2
  17. data/lib/extensions/barcode/ext/barcode/platform/wm/Rakefile +1 -1
  18. data/lib/extensions/digest-md5/ext/Rakefile +3 -3
  19. data/lib/extensions/digest-md5/ext/build +0 -1
  20. data/lib/extensions/digest-sha1/ext/Rakefile +1 -1
  21. data/lib/extensions/digest-sha1/ext/build +0 -1
  22. data/lib/extensions/digest/ext/Rakefile +3 -3
  23. data/lib/extensions/digest/ext/build +0 -1
  24. data/lib/extensions/fcntl/ext/Rakefile +1 -1
  25. data/lib/extensions/mspec/mspec/guards/guard.rb +4 -0
  26. data/lib/extensions/mspec/mspec/helpers/environment.rb +4 -0
  27. data/lib/extensions/nfc/ext.yml +2 -0
  28. data/lib/extensions/nfc/ext/build +12 -0
  29. data/lib/extensions/nfc/ext/build.bat +8 -0
  30. data/lib/extensions/nfc/ext/nfc/platform/android/AndroidManifest.xml +25 -0
  31. data/lib/extensions/nfc/ext/nfc/platform/android/Rakefile +94 -0
  32. data/lib/extensions/nfc/ext/nfc/platform/android/ext_build.files +4 -0
  33. data/lib/extensions/nfc/ext/nfc/platform/android/jni/src/nfc.cpp +404 -0
  34. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/nfc/Nfc.java +138 -0
  35. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/nfc/NfcMessage.java +34 -0
  36. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/nfc/NfcMessagePack.java +33 -0
  37. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/nfc/NfcRecord.java +149 -0
  38. data/lib/extensions/nfc/ext/nfc/shared/ruby/nfc.i +22 -0
  39. data/lib/extensions/nfc/ext/nfc/shared/ruby/nfc_wrap.c +2034 -0
  40. data/lib/extensions/nfc/nfc.rb +120 -0
  41. data/lib/extensions/rholang/{lang_ca.rb → rholang/lang_ca.rb} +0 -0
  42. data/lib/extensions/rholang/{lang_cf.rb → rholang/lang_cf.rb} +0 -0
  43. data/lib/extensions/rholang/{lang_chef.rb → rholang/lang_chef.rb} +0 -0
  44. data/lib/extensions/rholang/{lang_cs.rb → rholang/lang_cs.rb} +0 -0
  45. data/lib/extensions/rholang/{lang_da.rb → rholang/lang_da.rb} +0 -0
  46. data/lib/extensions/rholang/{lang_de.rb → rholang/lang_de.rb} +0 -0
  47. data/lib/extensions/rholang/{lang_es.rb → rholang/lang_es.rb} +0 -0
  48. data/lib/extensions/rholang/{lang_es_ar.rb → rholang/lang_es_ar.rb} +0 -0
  49. data/lib/extensions/rholang/{lang_fi.rb → rholang/lang_fi.rb} +0 -0
  50. data/lib/extensions/rholang/{lang_fr.rb → rholang/lang_fr.rb} +0 -0
  51. data/lib/extensions/rholang/{lang_it.rb → rholang/lang_it.rb} +0 -0
  52. data/lib/extensions/rholang/{lang_ko.rb → rholang/lang_ko.rb} +0 -0
  53. data/lib/extensions/rholang/{lang_nl.rb → rholang/lang_nl.rb} +0 -0
  54. data/lib/extensions/rholang/{lang_no.rb → rholang/lang_no.rb} +0 -0
  55. data/lib/extensions/rholang/{lang_pt.rb → rholang/lang_pt.rb} +0 -0
  56. data/lib/extensions/rholang/{lang_pt_br.rb → rholang/lang_pt_br.rb} +0 -0
  57. data/lib/extensions/rholang/{lang_ru.rb → rholang/lang_ru.rb} +0 -0
  58. data/lib/extensions/rholang/{lang_se.rb → rholang/lang_se.rb} +0 -0
  59. data/lib/extensions/rholang/{lang_sr.rb → rholang/lang_sr.rb} +0 -0
  60. data/lib/extensions/rholang/{rhoerror_ru.rb → rholang/rhoerror_ru.rb} +0 -0
  61. data/lib/extensions/rholang/{rhomsg_ru.rb → rholang/rhomsg_ru.rb} +0 -0
  62. data/lib/framework/date/format.rb +2 -0
  63. data/lib/framework/dateOrig.rb +17 -8
  64. data/lib/framework/rational18.rb +532 -0
  65. data/lib/framework/res/back_btn.wp7.png +0 -0
  66. data/lib/framework/res/blue_pushpin.wp7.png +0 -0
  67. data/lib/framework/res/blue_pushpin_small.wp7.png +0 -0
  68. data/lib/framework/res/callout.wp7.png +0 -0
  69. data/lib/framework/res/callout_link.wp7.png +0 -0
  70. data/lib/framework/res/esri.wp7.png +0 -0
  71. data/lib/framework/res/forward_btn.wp7.png +0 -0
  72. data/lib/framework/res/home_btn.wp7.png +0 -0
  73. data/lib/framework/res/options_btn.wp7.png +0 -0
  74. data/lib/framework/res/refresh_btn.wp7.png +0 -0
  75. data/lib/framework/rho/render.rb +8 -1
  76. data/lib/framework/rho/rho.rb +30 -7
  77. data/lib/framework/rho/rhoapplication.rb +9 -4
  78. data/lib/framework/rho/rhofsconnector.rb +5 -1
  79. data/lib/framework/rho/rhotabbar.rb +8 -0
  80. data/lib/framework/rho/rhotoolbar.rb +1 -1
  81. data/lib/framework/rho/rhoviewhelpers.rb +18 -1
  82. data/lib/framework/rhodes.rb +1 -1
  83. data/lib/framework/rhoframework.rb +46 -1
  84. data/lib/framework/rholang/localization_simplified.rb +17 -16
  85. data/lib/framework/rhom/rhom_db_adapter.rb +2 -2
  86. data/lib/framework/rhom/rhom_object_factory.rb +115 -12
  87. data/lib/framework/rhosystem.rb +135 -0
  88. data/lib/framework/version.rb +1 -1
  89. data/lib/rhodes.rb +1 -1
  90. data/lib/test/apps/rhoconfig.txt +23 -23
  91. data/platform/android/Rhodes/AndroidManifest.full.xml +101 -0
  92. data/platform/android/Rhodes/AndroidManifest.xml +10 -15
  93. data/platform/android/Rhodes/default.properties +11 -0
  94. data/platform/android/Rhodes/gen/com/rhomobile/rhodes/R.java +59 -53
  95. data/platform/android/Rhodes/jni/include/rhodes.h +1 -0
  96. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_RhodesApplication.h +21 -0
  97. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_alert_PopupActivity.h +21 -0
  98. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_file_RhoFileApi.h +10 -2
  99. data/platform/android/Rhodes/jni/src/alert.cpp +2 -1
  100. data/platform/android/Rhodes/jni/src/datetimepicker.cpp +2 -0
  101. data/platform/android/Rhodes/jni/src/fileapi.cpp +671 -84
  102. data/platform/android/Rhodes/jni/src/nativebar.cpp +18 -0
  103. data/platform/android/Rhodes/jni/src/rhodes.cpp +92 -1
  104. data/platform/android/Rhodes/res/values/styles.xml +7 -0
  105. data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +35 -2
  106. data/platform/android/Rhodes/src/com/rhomobile/rhodes/Capabilities.java +12 -13
  107. data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +130 -0
  108. data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeBar.java +6 -0
  109. data/platform/android/Rhodes/src/com/rhomobile/rhodes/PushReceiver.java +5 -1
  110. data/platform/android/Rhodes/src/com/rhomobile/rhodes/PushService.java +6 -2
  111. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMenu.java +7 -36
  112. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +43 -20
  113. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +2 -0
  114. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +63 -28
  115. data/platform/android/Rhodes/src/com/rhomobile/rhodes/Utils.java +2 -2
  116. data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +6 -2
  117. data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/Alert.java +19 -282
  118. data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/PopupActivity.java +354 -0
  119. data/platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePickerScreen.java +4 -0
  120. data/platform/android/Rhodes/src/com/rhomobile/rhodes/event/EventStore.java +1 -2
  121. data/platform/android/Rhodes/src/com/rhomobile/rhodes/file/RhoFileApi.java +71 -5
  122. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +107 -37
  123. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +10 -7
  124. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +156 -56
  125. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapView.java +0 -1
  126. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessorNew.java +40 -32
  127. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/SignatureView.java +1 -0
  128. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/ExternalHttpHandler.java +14 -6
  129. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/LocalFileHandler.java +46 -0
  130. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/MailUriHandler.java +4 -24
  131. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/UriHandler.java +3 -1
  132. data/platform/android/build/RhodesSRC_build.files +28 -25
  133. data/platform/android/build/android.rake +230 -54
  134. data/platform/android/build/androidcommon.rb +1 -1
  135. data/platform/android/build/librhocommon_build.files +1 -0
  136. data/platform/bb/Hsqldb/BlackBerry_App_Descriptor.xml +20 -0
  137. data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBResult.java +1 -5
  138. data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBStorage.java +6 -1
  139. data/platform/bb/Hsqldb/src/org/hsqldb/rowio/RowOutputBase.java +1 -1
  140. data/platform/bb/Hsqldb/src/org/hsqldb/rowio/RowOutputBinary.java +1 -1
  141. data/platform/bb/RubyVM/BlackBerry_App_Descriptor.xml +20 -0
  142. data/platform/bb/RubyVM/src/com/rho/IRhoRubyHelper.java +2 -0
  143. data/platform/bb/RubyVM/src/com/rho/RhoLogOutputSink.java +0 -1
  144. data/platform/bb/RubyVM/src/com/rho/RhoLogger.java +12 -10
  145. data/platform/bb/RubyVM/src/com/rho/RhoThread.java +16 -0
  146. data/platform/bb/RubyVM/src/com/rho/RhoTimer.java +89 -0
  147. data/platform/bb/RubyVM/src/com/rho/RhodesApp.java +20 -13
  148. data/platform/bb/RubyVM/src/com/rho/SplashScreen.java +1 -2
  149. data/platform/bb/RubyVM/src/com/rho/ThreadQueue.java +2 -2
  150. data/platform/bb/RubyVM/src/com/rho/TimeInterval.java +5 -0
  151. data/platform/bb/RubyVM/src/com/rho/db/DBAdapter.java +54 -48
  152. data/platform/bb/RubyVM/src/com/rho/db/IDBResult.java +0 -1
  153. data/platform/bb/RubyVM/src/com/rho/db/IDBStorage.java +1 -0
  154. data/platform/bb/RubyVM/src/com/rho/net/AsyncHttp.java +1 -1
  155. data/platform/bb/RubyVM/src/com/rho/sync/ClientRegister.java +1 -1
  156. data/platform/bb/RubyVM/src/com/rho/sync/JSONStructIterator.java +1 -1
  157. data/platform/bb/RubyVM/src/com/rho/sync/SyncEngine.java +16 -8
  158. data/platform/bb/RubyVM/src/com/rho/sync/SyncNotify.java +2 -2
  159. data/platform/bb/RubyVM/src/com/rho/sync/SyncSource.java +52 -29
  160. data/platform/bb/RubyVM/src/com/rho/sync/SyncThread.java +1 -3
  161. data/platform/bb/build/RubyVM_build.files +1 -0
  162. data/platform/bb/build/bb.rake +29 -9
  163. data/platform/bb/rhodes/BlackBerry_App_Descriptor.xml +23 -0
  164. data/platform/bb/rhodes/platform/5.0/com/rho/RhodesApplicationPlatform.java +1 -1
  165. data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteCopyResult.java +0 -4
  166. data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteResult.java +13 -20
  167. data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteStorage.java +183 -157
  168. data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +22 -0
  169. data/platform/bb/rhodes/src/com/rho/RhodesApplicationPlatform.java +1 -1
  170. data/platform/bb/rhodes/src/com/rho/db/SqliteCopyResult.java +0 -4
  171. data/platform/bb/rhodes/src/com/rho/db/SqliteResult.java +13 -20
  172. data/platform/bb/rhodes/src/com/rho/db/SqliteStorage.java +183 -157
  173. data/platform/bb/rhodes/src/com/rho/rubyext/System.java +46 -1
  174. data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +8 -1
  175. data/platform/bb/rhodes/src/rhomobile/camera/CameraFilesListener.java +13 -3
  176. data/platform/iphone/Classes/AppManager/AppManager.h +5 -1
  177. data/platform/iphone/Classes/AppManager/AppManager.m +170 -7
  178. data/platform/iphone/Classes/DateTimePicker.m +14 -1
  179. data/platform/iphone/Classes/DateTimePickerDelegate.h +2 -0
  180. data/platform/iphone/Classes/DateTimePickerDelegate.m +36 -2
  181. data/platform/iphone/Classes/NativeBar.h +1 -0
  182. data/platform/iphone/Classes/NativeBar.m +15 -3
  183. data/platform/iphone/Classes/Phonebook/phonebook.m +8 -9
  184. data/platform/iphone/Classes/Rhodes.m +50 -6
  185. data/platform/iphone/Classes/SimpleMainView.m +7 -6
  186. data/platform/iphone/Classes/SplitView/RightViewController.h +3 -1
  187. data/platform/iphone/Classes/SplitView/RightViewController.m +14 -1
  188. data/platform/iphone/Classes/TabbedMainView.h +4 -0
  189. data/platform/iphone/Classes/TabbedMainView.m +43 -26
  190. data/platform/iphone/Info.plist +1 -1
  191. data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +4 -0
  192. data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +3 -3
  193. data/platform/iphone/rbuild/iphone.rake +168 -119
  194. data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +4 -2
  195. data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +3 -3
  196. data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +2 -2
  197. data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +3 -3
  198. data/platform/shared/SyncClient/SyncClient.cpp +20 -8
  199. data/platform/shared/SyncClient/SyncClient.h +2 -1
  200. data/platform/shared/common/RhoDefs.h +4 -0
  201. data/platform/shared/common/RhoPort.h +22 -0
  202. data/platform/shared/common/RhoStd.h +5 -0
  203. data/platform/shared/common/RhoTime.cpp +73 -0
  204. data/platform/shared/common/RhoTime.h +26 -53
  205. data/platform/shared/common/RhodesApp.cpp +29 -28
  206. data/platform/shared/common/RhodesApp.h +4 -1
  207. data/platform/shared/common/StringConverter.h +37 -10
  208. data/platform/shared/common/app_build_capabilities.h +2 -0
  209. data/platform/shared/common/rhoparams.cpp +25 -12
  210. data/platform/shared/common/rhoparams.h +10 -8
  211. data/platform/shared/db/DBAdapter.cpp +0 -22
  212. data/platform/shared/json/RJSONTokener.c +15 -23
  213. data/platform/shared/net/AsyncHttp.cpp +9 -8
  214. data/platform/shared/net/HttpServer.cpp +61 -19
  215. data/platform/shared/net/HttpServer.h +2 -0
  216. data/platform/shared/ruby/ext/datetimepicker/datetimepicker.i +3 -0
  217. data/platform/shared/ruby/ext/datetimepicker/datetimepicker_wrap.c +151 -402
  218. data/platform/shared/ruby/ext/nativebar/nativebar.i +3 -0
  219. data/platform/shared/ruby/ext/nativebar/nativebar_wrap.c +154 -403
  220. data/platform/shared/ruby/ext/rho/rhoruby.c +4 -0
  221. data/platform/shared/ruby/ext/rho/rhoruby.h +2 -0
  222. data/platform/shared/ruby/ext/system/system.i +8 -0
  223. data/platform/shared/ruby/ext/system/system_wrap.c +80 -5
  224. data/platform/shared/ruby/file.c +6 -4
  225. data/platform/shared/ruby/gc.c +1 -1
  226. data/platform/shared/ruby/linux/ruby/config.h +7 -2
  227. data/platform/shared/ruby/missing/acosh.c +3 -3
  228. data/platform/shared/ruby/wince/_time.h +1 -1
  229. data/platform/shared/ruby/wince/stdlib.c +1 -1
  230. data/platform/shared/ruby/wince/string_wce.c +2 -2
  231. data/platform/shared/ruby/wince/sys/timeb.c +1 -0
  232. data/platform/shared/ruby/wince/time_wce.c +8 -0
  233. data/platform/shared/ruby/wince/wince.c +7 -7
  234. data/platform/shared/ruby/wince/wince.h +22 -0
  235. data/platform/shared/rubyext/System.cpp +19 -1
  236. data/platform/shared/sqlite/sqlite3.c +18993 -8129
  237. data/platform/shared/sqlite/sqlite3.h +953 -358
  238. data/platform/shared/sqlite/sqlite3ext.h +42 -0
  239. data/platform/shared/sync/SyncEngine.cpp +10 -0
  240. data/platform/shared/sync/SyncSource.cpp +41 -19
  241. data/platform/shared/sync/SyncSource.h +1 -1
  242. data/platform/shared/tcmalloc/rhomem.h +7 -2
  243. data/platform/shared/tcmalloc/windows/port.h +2 -0
  244. data/platform/shared/unzip/unzip.cpp +1 -0
  245. data/platform/shared/xruby/src/com/xruby/compiler/parser/RubyParser.java +11 -1
  246. data/platform/wm/RhoLib/RhoLib.vcproj +182 -24
  247. data/platform/wm/build/wm.rake +16 -3
  248. data/platform/wm/rhodes.sln +106 -113
  249. data/platform/wm/rhodes/Alert.cpp +6 -7
  250. data/platform/wm/rhodes/AppManager.cpp +8 -17
  251. data/platform/wm/rhodes/DateTimePicker.cpp +3 -0
  252. data/platform/wm/rhodes/DateTimePicker.h +2 -0
  253. data/platform/wm/rhodes/MainWindow.cpp +36 -16
  254. data/platform/wm/rhodes/MainWindow.h +6 -3
  255. data/platform/wm/rhodes/OutlookApp.cpp +3 -3
  256. data/platform/wm/rhodes/Rhodes.cpp +46 -27
  257. data/platform/wm/rhodes/Rhodes.rc +16 -3
  258. data/platform/wm/rhodes/RingtoneManager.cpp +7 -7
  259. data/platform/wm/rhodes/RingtoneManager.h +1 -1
  260. data/platform/wm/rhodes/Utils.cpp +2 -1
  261. data/platform/wm/rhodes/bluetooth/Bluetooth.cpp +1 -13
  262. data/platform/wm/rhodes/bluetooth/Bluetooth.h +1 -2
  263. data/platform/wm/rhodes/camera/Camera.cpp +6 -12
  264. data/platform/wm/rhodes/phonebook/phonebook.cpp +11 -11
  265. data/platform/wm/rhodes/phonebook/phonebook.h +1 -1
  266. data/platform/wm/rhodes/resource.h +3 -1
  267. data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +7 -5
  268. data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.cpp +6 -6
  269. data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.h +1 -1
  270. data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +6 -1
  271. data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +84 -19
  272. data/platform/wm/rhodes/rho/rubyext/calendar.cpp +2 -2
  273. data/platform/wm/rhodes/rhodes.vcproj +316 -73
  274. data/platform/wm/rhodes/signature/Signature.cpp +336 -6
  275. data/platform/wm/rhodes/signature/Signature.h +55 -0
  276. data/platform/wm/rhodes/stdafx.h +7 -4
  277. data/platform/wm/rubylib/rubylib.vcproj +261 -91
  278. data/platform/wm/sqlite3/sqlite3.vcproj +223 -69
  279. data/platform/wm/syncengine/syncengine.vcproj +220 -66
  280. data/platform/wm/tcmalloc/tcmalloc.vcproj +197 -43
  281. data/platform/wp7/IronRuby/Languages/Ruby/Ruby/Builtins/ConsoleStream.cs +107 -0
  282. data/platform/wp7/IronRuby/Languages/Ruby/Ruby/Runtime/Loader.cs +1037 -0
  283. data/platform/wp7/IronRuby/Languages/Ruby/Ruby/Runtime/RubyUtils.cs +1476 -0
  284. data/platform/wp7/RhoAppRunner/Program.cs +55 -0
  285. data/platform/wp7/RhoAppRunner/Properties/AssemblyInfo.cs +36 -0
  286. data/platform/wp7/RhoAppRunner/RhoAppRunner.csproj +69 -0
  287. data/platform/wp7/RhoRubyExtGen/GenerateInitializers.cmd +7 -0
  288. data/platform/wp7/RhoRubyExtGen/Properties/AssemblyInfo.cs +36 -0
  289. data/platform/wp7/RhoRubyExtGen/RhoAsyncHttp.cs +38 -0
  290. data/platform/wp7/RhoRubyExtGen/RhoDatabase.cs +93 -0
  291. data/platform/wp7/RhoRubyExtGen/RhoJSON.cs +37 -0
  292. data/platform/wp7/RhoRubyExtGen/RhoNativeBar.cs +106 -0
  293. data/platform/wp7/RhoRubyExtGen/RhoRubyExtGen.csproj +75 -0
  294. data/platform/wp7/RhoRubyExtGen/RhoSyncEngine.cs +123 -0
  295. data/platform/wp7/RhoRubyExtGen/RhoWebView.cs +42 -0
  296. data/platform/wp7/RhoRubyLib/Initializers.Generated.cs +309 -0
  297. data/platform/wp7/RhoRubyLib/Properties/AssemblyInfo.cs +36 -0
  298. data/platform/wp7/RhoRubyLib/RhoAppAdapter.cs +96 -0
  299. data/platform/wp7/RhoRubyLib/RhoRuby.cs +296 -0
  300. data/platform/wp7/RhoRubyLib/RhoRubyLib.csproj +155 -0
  301. data/platform/wp7/RhoRubyLib/WP_PlatformAdaptationLayer.cs +107 -0
  302. data/platform/wp7/RhoRubyLib/common/IInputStream.cs +21 -0
  303. data/platform/wp7/RhoRubyLib/common/Mutex.cs +30 -0
  304. data/platform/wp7/RhoRubyLib/common/RhoConf.cs +389 -0
  305. data/platform/wp7/RhoRubyLib/common/RhoEmptyProfiler.cs +27 -0
  306. data/platform/wp7/RhoRubyLib/common/RhoFile.cs +332 -0
  307. data/platform/wp7/RhoRubyLib/common/RhoFilePath.cs +89 -0
  308. data/platform/wp7/RhoRubyLib/common/RhoParamArray.cs +33 -0
  309. data/platform/wp7/RhoRubyLib/common/RhoParams.cs +66 -0
  310. data/platform/wp7/RhoRubyLib/common/RhoProfiler.cs +145 -0
  311. data/platform/wp7/RhoRubyLib/common/RhoResourceMap.cs +68 -0
  312. data/platform/wp7/RhoRubyLib/common/RhoStd.cs +205 -0
  313. data/platform/wp7/RhoRubyLib/common/RhoThread.cs +114 -0
  314. data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +504 -0
  315. data/platform/wp7/RhoRubyLib/common/ThreadQueue.cs +199 -0
  316. data/platform/wp7/RhoRubyLib/common/TimeInterval.cs +56 -0
  317. data/platform/wp7/RhoRubyLib/common/Tokenizer.cs +52 -0
  318. data/platform/wp7/RhoRubyLib/db/DBAdapter.cs +1129 -0
  319. data/platform/wp7/RhoRubyLib/db/DBAttrManager.cs +92 -0
  320. data/platform/wp7/RhoRubyLib/db/DBException.cs +35 -0
  321. data/platform/wp7/RhoRubyLib/db/IDBCallback.cs +10 -0
  322. data/platform/wp7/RhoRubyLib/db/IDBResult.cs +33 -0
  323. data/platform/wp7/RhoRubyLib/db/IDBStorage.cs +32 -0
  324. data/platform/wp7/RhoRubyLib/db/SqliteCopyResult.cs +79 -0
  325. data/platform/wp7/RhoRubyLib/db/SqliteResult.cs +267 -0
  326. data/platform/wp7/RhoRubyLib/db/SqliteStorage.cs +319 -0
  327. data/platform/wp7/RhoRubyLib/json/JSONArrayIterator.cs +63 -0
  328. data/platform/wp7/RhoRubyLib/json/JSONEntry.cs +96 -0
  329. data/platform/wp7/RhoRubyLib/json/JSONStructIterator.cs +77 -0
  330. data/platform/wp7/RhoRubyLib/json/JsonParser.cs +483 -0
  331. data/platform/wp7/RhoRubyLib/json/RJSONTokener.cs +406 -0
  332. data/platform/wp7/RhoRubyLib/logging/IRhoLogSink.cs +12 -0
  333. data/platform/wp7/RhoRubyLib/logging/RhoLogConf.cs +161 -0
  334. data/platform/wp7/RhoRubyLib/logging/RhoLogFileSink.cs +174 -0
  335. data/platform/wp7/RhoRubyLib/logging/RhoLogger.cs +320 -0
  336. data/platform/wp7/RhoRubyLib/net/AsyncHttp.cs +362 -0
  337. data/platform/wp7/RhoRubyLib/net/HttpServer.cs +466 -0
  338. data/platform/wp7/RhoRubyLib/net/NetRequest.cs +717 -0
  339. data/platform/wp7/RhoRubyLib/net/NetResponse.cs +64 -0
  340. data/platform/wp7/RhoRubyLib/net/URI.cs +187 -0
  341. data/platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs +43 -0
  342. data/platform/wp7/RhoRubyLib/rubyext/RhoDatabase.cs +177 -0
  343. data/platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs +39 -0
  344. data/platform/wp7/RhoRubyLib/rubyext/RhoKernelOps.cs +19 -0
  345. data/platform/wp7/RhoRubyLib/rubyext/RhoNativeBar.cs +117 -0
  346. data/platform/wp7/RhoRubyLib/rubyext/RhoSyncEngine.cs +199 -0
  347. data/platform/wp7/RhoRubyLib/rubyext/RhoWebView.cs +49 -0
  348. data/platform/wp7/RhoRubyLib/sync/ClientRegister.cs +142 -0
  349. data/platform/wp7/RhoRubyLib/sync/ISyncProtocol.cs +23 -0
  350. data/platform/wp7/RhoRubyLib/sync/ISyncStatusListener.cs +10 -0
  351. data/platform/wp7/RhoRubyLib/sync/SyncEngine.cs +1051 -0
  352. data/platform/wp7/RhoRubyLib/sync/SyncNotify.cs +651 -0
  353. data/platform/wp7/RhoRubyLib/sync/SyncProtocol_3.cs +79 -0
  354. data/platform/wp7/RhoRubyLib/sync/SyncSource.cs +1105 -0
  355. data/platform/wp7/RhoRubyLib/sync/SyncThread.cs +301 -0
  356. data/platform/wp7/WPApplication.sln +50 -0
  357. data/platform/wp7/WPApplication/App.xaml +19 -0
  358. data/platform/wp7/WPApplication/App.xaml.cs +211 -0
  359. data/platform/wp7/WPApplication/ApplicationIcon.png +0 -0
  360. data/platform/wp7/WPApplication/Background.png +0 -0
  361. data/platform/wp7/WPApplication/MainPage.xaml +44 -0
  362. data/platform/wp7/WPApplication/MainPage.xaml.cs +132 -0
  363. data/platform/wp7/WPApplication/Properties/AppManifest.xml +6 -0
  364. data/platform/wp7/WPApplication/Properties/AssemblyInfo.cs +35 -0
  365. data/platform/wp7/WPApplication/Properties/WMAppManifest.xml +32 -0
  366. data/platform/wp7/WPApplication/SplashScreenImage.jpg +0 -0
  367. data/platform/wp7/WPApplication/WPApplication.csproj +201 -0
  368. data/platform/wp7/WPApplication/WP_PlatformAdaptationLayer.cs +88 -0
  369. data/platform/wp7/WPApplication/app_manifest.txt +1 -0
  370. data/platform/wp7/WPApplication/readme.htm +40 -0
  371. data/platform/wp7/WPApplication/readme2.htm +37 -0
  372. data/platform/wp7/WPApplication/rho/apps/app/Model1/edit.bb.erb +29 -0
  373. data/platform/wp7/WPApplication/rho/apps/app/Model1/edit.erb +32 -0
  374. data/platform/wp7/WPApplication/rho/apps/app/Model1/index.bb.erb +21 -0
  375. data/platform/wp7/WPApplication/rho/apps/app/Model1/index.erb +26 -0
  376. data/platform/wp7/WPApplication/rho/apps/app/Model1/model1.rb +10 -0
  377. data/platform/wp7/WPApplication/rho/apps/app/Model1/model1_controller.rb +58 -0
  378. data/platform/wp7/WPApplication/rho/apps/app/Model1/new.bb.erb +29 -0
  379. data/platform/wp7/WPApplication/rho/apps/app/Model1/new.erb +31 -0
  380. data/platform/wp7/WPApplication/rho/apps/app/Model1/show.bb.erb +26 -0
  381. data/platform/wp7/WPApplication/rho/apps/app/Model1/show.erb +28 -0
  382. data/platform/wp7/WPApplication/rho/apps/app/Settings/controller.rb +75 -0
  383. data/platform/wp7/WPApplication/rho/apps/app/Settings/home.bb.erb +17 -0
  384. data/platform/wp7/WPApplication/rho/apps/app/Settings/home.erb +20 -0
  385. data/platform/wp7/WPApplication/rho/apps/app/Settings/index.bb.erb +32 -0
  386. data/platform/wp7/WPApplication/rho/apps/app/Settings/index.erb +30 -0
  387. data/platform/wp7/WPApplication/rho/apps/app/Settings/login.bb.erb +35 -0
  388. data/platform/wp7/WPApplication/rho/apps/app/Settings/login.erb +27 -0
  389. data/platform/wp7/WPApplication/rho/apps/app/Settings/reset.bb.erb +15 -0
  390. data/platform/wp7/WPApplication/rho/apps/app/Settings/reset.erb +17 -0
  391. data/platform/wp7/WPApplication/rho/apps/app/Settings/wait.bb.erb +3 -0
  392. data/platform/wp7/WPApplication/rho/apps/app/Settings/wait.erb +5 -0
  393. data/platform/wp7/WPApplication/rho/apps/app/application.rb +16 -0
  394. data/platform/wp7/WPApplication/rho/apps/app/helpers/application_helper.rb +126 -0
  395. data/platform/wp7/WPApplication/rho/apps/app/helpers/browser_helper.rb +18 -0
  396. data/platform/wp7/WPApplication/rho/apps/app/index.bb.erb +26 -0
  397. data/platform/wp7/WPApplication/rho/apps/app/index.erb +26 -0
  398. data/platform/wp7/WPApplication/rho/apps/app/layout.erb +45 -0
  399. data/platform/wp7/WPApplication/rho/apps/app/loading.html +11 -0
  400. data/platform/wp7/WPApplication/rho/apps/app_manifest.txt +1 -0
  401. data/platform/wp7/WPApplication/rho/apps/public/css/android.css +330 -0
  402. data/platform/wp7/WPApplication/rho/apps/public/css/blackberry.css +115 -0
  403. data/platform/wp7/WPApplication/rho/apps/public/css/iphone.css +410 -0
  404. data/platform/wp7/WPApplication/rho/apps/public/css/windows_mobile.css +222 -0
  405. data/platform/wp7/WPApplication/rho/apps/public/images/IUI_LICENSE.txt +21 -0
  406. data/platform/wp7/WPApplication/rho/apps/public/images/android/btn_check_off.png +0 -0
  407. data/platform/wp7/WPApplication/rho/apps/public/images/android/btn_check_on.png +0 -0
  408. data/platform/wp7/WPApplication/rho/apps/public/images/android/btn_radio_off.png +0 -0
  409. data/platform/wp7/WPApplication/rho/apps/public/images/android/btn_radio_on.png +0 -0
  410. data/platform/wp7/WPApplication/rho/apps/public/images/android/disclosure.png +0 -0
  411. data/platform/wp7/WPApplication/rho/apps/public/images/android/ic_menu_more.png +0 -0
  412. data/platform/wp7/WPApplication/rho/apps/public/images/backButton.png +0 -0
  413. data/platform/wp7/WPApplication/rho/apps/public/images/blueButton.png +0 -0
  414. data/platform/wp7/WPApplication/rho/apps/public/images/cancel.png +0 -0
  415. data/platform/wp7/WPApplication/rho/apps/public/images/grayButton.png +0 -0
  416. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/disclosure.png +0 -0
  417. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/disclosure_detail.png +0 -0
  418. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/backButton.png +0 -0
  419. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/blueButton.png +0 -0
  420. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/cancel.png +0 -0
  421. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/chevron.png +0 -0
  422. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/grayButton.png +0 -0
  423. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/listArrowSel.png +0 -0
  424. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/listGroup.png +0 -0
  425. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/loading.gif +0 -0
  426. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/on_off.png +0 -0
  427. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/pinstripes.png +0 -0
  428. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/selection.png +0 -0
  429. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/thumb.png +0 -0
  430. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toggle.png +0 -0
  431. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toggleOn.png +0 -0
  432. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toolButton.png +0 -0
  433. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toolbar.png +0 -0
  434. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/whiteButton.png +0 -0
  435. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/radiobutton.png +0 -0
  436. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/select.png +0 -0
  437. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/switch.png +0 -0
  438. data/platform/wp7/WPApplication/rho/apps/public/images/iui-logo-touch-icon.png +0 -0
  439. data/platform/wp7/WPApplication/rho/apps/public/images/listArrow.png +0 -0
  440. data/platform/wp7/WPApplication/rho/apps/public/images/listArrowDown.png +0 -0
  441. data/platform/wp7/WPApplication/rho/apps/public/images/listArrowSel.png +0 -0
  442. data/platform/wp7/WPApplication/rho/apps/public/images/listGroup.png +0 -0
  443. data/platform/wp7/WPApplication/rho/apps/public/images/loading.gif +0 -0
  444. data/platform/wp7/WPApplication/rho/apps/public/images/pinstripes.png +0 -0
  445. data/platform/wp7/WPApplication/rho/apps/public/images/right_button.png +0 -0
  446. data/platform/wp7/WPApplication/rho/apps/public/images/selection.png +0 -0
  447. data/platform/wp7/WPApplication/rho/apps/public/images/thumb.png +0 -0
  448. data/platform/wp7/WPApplication/rho/apps/public/images/toggle.png +0 -0
  449. data/platform/wp7/WPApplication/rho/apps/public/images/toggleOn.png +0 -0
  450. data/platform/wp7/WPApplication/rho/apps/public/images/toolButton.png +0 -0
  451. data/platform/wp7/WPApplication/rho/apps/public/images/toolButton_new.png +0 -0
  452. data/platform/wp7/WPApplication/rho/apps/public/images/toolbar.png +0 -0
  453. data/platform/wp7/WPApplication/rho/apps/public/images/whiteButton.png +0 -0
  454. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch-iphone.css +9 -0
  455. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.css +374 -0
  456. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.js +742 -0
  457. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.transitions.js +60 -0
  458. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jquery.1.3.2.min.js +19 -0
  459. data/platform/wp7/WPApplication/rho/apps/public/js/application.js +1 -0
  460. data/platform/wp7/WPApplication/rho/apps/public/js/rho.js +4 -0
  461. data/platform/wp7/WPApplication/rho/apps/public/js/rhogeolocation-wm.js +59 -0
  462. data/platform/wp7/WPApplication/rho/apps/public/js/rhogeolocation.js +11 -0
  463. data/platform/wp7/WPApplication/rho/apps/rhoconfig.txt +32 -0
  464. data/platform/wp7/WPApplication/rhoconfig.txt +32 -0
  465. data/platform/wp7/WPApplication/windows_mobile.css +222 -0
  466. data/platform/wp7/build/wp.rake +261 -0
  467. data/platform/wp7/rhodes.sln +79 -0
  468. data/platform/wp7/rhodes/App.xaml +19 -0
  469. data/platform/wp7/rhodes/App.xaml.cs +144 -0
  470. data/platform/wp7/rhodes/Background.png +0 -0
  471. data/platform/wp7/rhodes/MainPage.xaml +44 -0
  472. data/platform/wp7/rhodes/MainPage.xaml.cs +98 -0
  473. data/platform/wp7/rhodes/Properties/AppManifest.xml +6 -0
  474. data/platform/wp7/rhodes/Properties/AssemblyInfo.cs +35 -0
  475. data/platform/wp7/rhodes/Properties/WMAppManifest.xml +31 -0
  476. data/platform/wp7/rhodes/Rhodes.csproj +127 -0
  477. data/platform/wp7/rhodes/SplashScreenImage.jpg +0 -0
  478. data/platform/wp7/rhodes/icon.png +0 -0
  479. data/platform/wp7/sqlite3/Properties/AssemblyInfo.cs +35 -0
  480. data/platform/wp7/sqlite3/SQLiteClient.cs +550 -0
  481. data/platform/wp7/sqlite3/SqliteWrapper/BtreeInt_h.cs +774 -0
  482. data/platform/wp7/sqlite3/SqliteWrapper/Btree_h.cs +280 -0
  483. data/platform/wp7/sqlite3/SqliteWrapper/ClassDiagram1.cd +1306 -0
  484. data/platform/wp7/sqlite3/SqliteWrapper/Delagates.cs +365 -0
  485. data/platform/wp7/sqlite3/SqliteWrapper/Hash_h.cs +133 -0
  486. data/platform/wp7/sqlite3/SqliteWrapper/VdbeInt_h.cs +620 -0
  487. data/platform/wp7/sqlite3/SqliteWrapper/Vdbe_h.cs +302 -0
  488. data/platform/wp7/sqlite3/SqliteWrapper/_Custom.cs +449 -0
  489. data/platform/wp7/sqlite3/SqliteWrapper/alter_c.cs +872 -0
  490. data/platform/wp7/sqlite3/SqliteWrapper/analyze_c.cs +757 -0
  491. data/platform/wp7/sqlite3/SqliteWrapper/attach_c.cs +628 -0
  492. data/platform/wp7/sqlite3/SqliteWrapper/auth_c.cs +268 -0
  493. data/platform/wp7/sqlite3/SqliteWrapper/backup_c.cs +737 -0
  494. data/platform/wp7/sqlite3/SqliteWrapper/bitvec_c.cs +509 -0
  495. data/platform/wp7/sqlite3/SqliteWrapper/btmutex_c.cs +379 -0
  496. data/platform/wp7/sqlite3/SqliteWrapper/btree_c.cs +9138 -0
  497. data/platform/wp7/sqlite3/SqliteWrapper/build_c.cs +4189 -0
  498. data/platform/wp7/sqlite3/SqliteWrapper/callback_c.cs +548 -0
  499. data/platform/wp7/sqlite3/SqliteWrapper/complete_c.cs +342 -0
  500. data/platform/wp7/sqlite3/SqliteWrapper/ctime_cs.cs +408 -0
  501. data/platform/wp7/sqlite3/SqliteWrapper/date_c.cs +1317 -0
  502. data/platform/wp7/sqlite3/SqliteWrapper/delete_c.cs +726 -0
  503. data/platform/wp7/sqlite3/SqliteWrapper/expr_c.cs +4406 -0
  504. data/platform/wp7/sqlite3/SqliteWrapper/fault_c.cs +115 -0
  505. data/platform/wp7/sqlite3/SqliteWrapper/fkey_c.cs +1330 -0
  506. data/platform/wp7/sqlite3/SqliteWrapper/func_c.cs +2025 -0
  507. data/platform/wp7/sqlite3/SqliteWrapper/global_c.cs +228 -0
  508. data/platform/wp7/sqlite3/SqliteWrapper/hash_c.cs +351 -0
  509. data/platform/wp7/sqlite3/SqliteWrapper/hwtime_c.cs +101 -0
  510. data/platform/wp7/sqlite3/SqliteWrapper/insert_c.cs +2122 -0
  511. data/platform/wp7/sqlite3/SqliteWrapper/journal_c.cs +247 -0
  512. data/platform/wp7/sqlite3/SqliteWrapper/keywordhash_h.cs +302 -0
  513. data/platform/wp7/sqlite3/SqliteWrapper/legacy_c.cs +223 -0
  514. data/platform/wp7/sqlite3/SqliteWrapper/loadext_c.cs +683 -0
  515. data/platform/wp7/sqlite3/SqliteWrapper/main_c.cs +2716 -0
  516. data/platform/wp7/sqlite3/SqliteWrapper/malloc_c.cs +977 -0
  517. data/platform/wp7/sqlite3/SqliteWrapper/mem_Pool.cs +394 -0
  518. data/platform/wp7/sqlite3/SqliteWrapper/memjournal_c.cs +315 -0
  519. data/platform/wp7/sqlite3/SqliteWrapper/mutex_c.cs +182 -0
  520. data/platform/wp7/sqlite3/SqliteWrapper/mutex_h.cs +91 -0
  521. data/platform/wp7/sqlite3/SqliteWrapper/mutex_noop_c.cs +202 -0
  522. data/platform/wp7/sqlite3/SqliteWrapper/mutex_w32.cs +344 -0
  523. data/platform/wp7/sqlite3/SqliteWrapper/notify_c.cs +347 -0
  524. data/platform/wp7/sqlite3/SqliteWrapper/opcodes_c.cs +171 -0
  525. data/platform/wp7/sqlite3/SqliteWrapper/opcodes_h.cs +346 -0
  526. data/platform/wp7/sqlite3/SqliteWrapper/os_c.cs +367 -0
  527. data/platform/wp7/sqlite3/SqliteWrapper/os_common_h.cs +174 -0
  528. data/platform/wp7/sqlite3/SqliteWrapper/os_h.cs +295 -0
  529. data/platform/wp7/sqlite3/SqliteWrapper/os_win_c.cs +1255 -0
  530. data/platform/wp7/sqlite3/SqliteWrapper/pager_c.cs +6078 -0
  531. data/platform/wp7/sqlite3/SqliteWrapper/pager_h.cs +188 -0
  532. data/platform/wp7/sqlite3/SqliteWrapper/parse_c.cs +4045 -0
  533. data/platform/wp7/sqlite3/SqliteWrapper/parse_h.cs +331 -0
  534. data/platform/wp7/sqlite3/SqliteWrapper/pcache1_c.cs +969 -0
  535. data/platform/wp7/sqlite3/SqliteWrapper/pcache_c.cs +712 -0
  536. data/platform/wp7/sqlite3/SqliteWrapper/pcache_h.cs +213 -0
  537. data/platform/wp7/sqlite3/SqliteWrapper/pragma_c.cs +1767 -0
  538. data/platform/wp7/sqlite3/SqliteWrapper/prepare_c.cs +1015 -0
  539. data/platform/wp7/sqlite3/SqliteWrapper/printf_c.cs +1300 -0
  540. data/platform/wp7/sqlite3/SqliteWrapper/random_c.cs +201 -0
  541. data/platform/wp7/sqlite3/SqliteWrapper/resolve_c.cs +1396 -0
  542. data/platform/wp7/sqlite3/SqliteWrapper/rowset_c.cs +519 -0
  543. data/platform/wp7/sqlite3/SqliteWrapper/select_c.cs +4878 -0
  544. data/platform/wp7/sqlite3/SqliteWrapper/sqlite3_h.cs +6253 -0
  545. data/platform/wp7/sqlite3/SqliteWrapper/sqlite3ext_h.cs +397 -0
  546. data/platform/wp7/sqlite3/SqliteWrapper/sqliteInt_h.cs +4075 -0
  547. data/platform/wp7/sqlite3/SqliteWrapper/sqliteLimit_h.cs +214 -0
  548. data/platform/wp7/sqlite3/SqliteWrapper/sqliteicu_h.cs +39 -0
  549. data/platform/wp7/sqlite3/SqliteWrapper/status_c.cs +155 -0
  550. data/platform/wp7/sqlite3/SqliteWrapper/table_c.cs +222 -0
  551. data/platform/wp7/sqlite3/SqliteWrapper/tokenize_c.cs +673 -0
  552. data/platform/wp7/sqlite3/SqliteWrapper/trigger_c.cs +1219 -0
  553. data/platform/wp7/sqlite3/SqliteWrapper/update_c.cs +766 -0
  554. data/platform/wp7/sqlite3/SqliteWrapper/utf_c.cs +612 -0
  555. data/platform/wp7/sqlite3/SqliteWrapper/util_c.cs +1476 -0
  556. data/platform/wp7/sqlite3/SqliteWrapper/vacuum_c.cs +382 -0
  557. data/platform/wp7/sqlite3/SqliteWrapper/vdbe_c.cs +6566 -0
  558. data/platform/wp7/sqlite3/SqliteWrapper/vdbeapi_c.cs +1557 -0
  559. data/platform/wp7/sqlite3/SqliteWrapper/vdbeaux_c.cs +4019 -0
  560. data/platform/wp7/sqlite3/SqliteWrapper/vdbeblob_c.cs +396 -0
  561. data/platform/wp7/sqlite3/SqliteWrapper/vdbemem_c.cs +1480 -0
  562. data/platform/wp7/sqlite3/SqliteWrapper/vdbetrace_c.cs +181 -0
  563. data/platform/wp7/sqlite3/SqliteWrapper/vtab_c.cs +957 -0
  564. data/platform/wp7/sqlite3/SqliteWrapper/walker_c.cs +174 -0
  565. data/platform/wp7/sqlite3/SqliteWrapper/where_c.cs +4651 -0
  566. data/platform/wp7/sqlite3/sqlite3.csproj +155 -0
  567. data/rakefile.rb +60 -2
  568. data/res/build-tools/7za.exe +0 -0
  569. data/res/build-tools/RhoAppRunner.exe +0 -0
  570. data/res/build-tools/xruby-0.3.3.jar +0 -0
  571. data/res/generators/rhogen.rb +9 -1
  572. data/res/generators/templates/application/app/Settings/reset.erb +1 -1
  573. data/res/generators/templates/application/app/layout.erb +17 -10
  574. data/res/generators/templates/application/build.yml +5 -3
  575. data/res/generators/templates/application/public/jqtouch/changes.txt +20 -0
  576. data/res/generators/templates/application/public/jqtouch/jqtouch.js +12 -4
  577. data/res/generators/templates/application/public/jqtouch/jquery.1.3.2.min.js +1 -1
  578. data/res/generators/templates/application/public/js/wp7.js +7 -0
  579. data/res/generators/templates/model/controller.rb +5 -6
  580. data/rhobuild.yml.example +1 -0
  581. data/rhodes.gemspec +2 -1
  582. data/spec/framework_spec/app/spec/core/dir/close_spec.rb +1 -1
  583. data/spec/framework_spec/app/spec/core/dir/shared/pwd.rb +13 -11
  584. data/spec/framework_spec/app/spec/core/env/shared/store.rb +12 -10
  585. data/spec/framework_spec/app/spec/core/env/update_spec.rb +1 -0
  586. data/spec/framework_spec/app/spec/core/file/expand_path_spec.rb +3 -2
  587. data/spec/framework_spec/app/spec/core/file/fixtures/file_types.rb +7 -1
  588. data/spec/framework_spec/app/spec/core/file/flock_spec.rb +8 -1
  589. data/spec/framework_spec/app/spec/core/file/ftype_spec.rb +5 -3
  590. data/spec/framework_spec/app/spec/core/file/lchmod_spec.rb +1 -1
  591. data/spec/framework_spec/app/spec/core/file/setgid_spec.rb +1 -1
  592. data/spec/framework_spec/app/spec/core/file/setuid_spec.rb +1 -1
  593. data/spec/framework_spec/app/spec/core/file/stat/ftype_spec.rb +6 -4
  594. data/spec/framework_spec/app/spec/core/file/truncate_spec.rb +5 -1
  595. data/spec/framework_spec/app/spec/core/float/to_s_spec.rb +1 -1
  596. data/spec/framework_spec/app/spec/core/process/gid_spec.rb +5 -3
  597. data/spec/framework_spec/app/spec/core/process/groups_spec.rb +11 -9
  598. data/spec/framework_spec/app/spec/core/process/uid_spec.rb +5 -3
  599. data/spec/framework_spec/app/spec/language/execution_spec.rb +10 -6
  600. data/spec/framework_spec/app/spec/shared/file/directory.rb +6 -1
  601. data/spec/framework_spec/app/spec/shared/file/executable.rb +7 -1
  602. data/spec/framework_spec/app/spec/shared/file/file.rb +6 -1
  603. data/spec/framework_spec/app/spec/shared/file/readable.rb +13 -4
  604. data/spec/framework_spec/app/spec/shared/file/writable.rb +6 -1
  605. data/spec/phone_spec/app/spec/rho_controller_spec.rb +11 -0
  606. data/spec/phone_spec/app/spec/rho_spec.rb +11 -0
  607. data/spec/phone_spec/app/spec/rhom_object_spec.rb +102 -6
  608. data/spec/phone_spec/app/spec/string/end_with_spec.rb +4 -1
  609. data/spec/phone_spec/app/spec/string/slice_spec.rb +5 -1
  610. data/spec/phone_spec/app/spec/string/start_with_spec.rb +4 -0
  611. data/spec/phone_spec/app/spec/syncengine_spec.rb +73 -6
  612. data/spec/phone_spec/app/spec_runner.rb +7 -3
  613. metadata +380 -41
  614. data/Manifest.txt +0 -5819
  615. data/platform/bb/Hsqldb/Hsqldb.cso +0 -5
  616. data/platform/bb/Hsqldb/Hsqldb.jdp +0 -197
  617. data/platform/bb/RhoBundle/RhoBundle.cso +0 -5
  618. data/platform/bb/RhoBundle/RhoBundle.jdp +0 -42
  619. data/platform/bb/RubyVM/RubyVM.cso +0 -5
  620. data/platform/bb/RubyVM/RubyVM.jdp +0 -467
  621. data/platform/bb/rhodes/rhodes.csl +0 -3
  622. data/platform/bb/rhodes/rhodes.cso +0 -5
  623. data/platform/bb/rhodes/rhodes.jdp +0 -104
@@ -20,6 +20,8 @@ extern void create_native_tabbar(int bar_type, rho_param *p);
20
20
  extern void remove_native_tabbar();
21
21
  extern void native_tabbar_switch_tab(int index);
22
22
  extern void native_tabbar_set_tab_badge(int index,char *val);
23
+
24
+ extern int native_tabbar_get_current_tab();
23
25
  %}
24
26
 
25
27
  %typemap(in) (rho_param *p) {
@@ -43,3 +45,4 @@ extern void create_native_tabbar(int bar_type, rho_param *p);
43
45
  extern void remove_native_tabbar();
44
46
  extern void native_tabbar_switch_tab(int index);
45
47
  extern void native_tabbar_set_tab_badge(int index,char *val);
48
+ extern int native_tabbar_get_current_tab();
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.0
3
+ * Version 1.3.31
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -9,7 +9,6 @@
9
9
  * ----------------------------------------------------------------------------- */
10
10
 
11
11
  #define SWIGRUBY
12
-
13
12
  /* -----------------------------------------------------------------------------
14
13
  * This section contains generic SWIG labels for method/variable
15
14
  * declarations/attributes, and other compiler dependent labels.
@@ -17,14 +16,14 @@
17
16
 
18
17
  /* template workaround for compilers that cannot correctly implement the C++ standard */
19
18
  #ifndef SWIGTEMPLATEDISAMBIGUATOR
20
- # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
21
- # define SWIGTEMPLATEDISAMBIGUATOR template
22
- # elif defined(__HP_aCC)
23
- /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
24
- /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
25
- # define SWIGTEMPLATEDISAMBIGUATOR template
19
+ # if defined(__SUNPRO_CC)
20
+ # if (__SUNPRO_CC <= 0x560)
21
+ # define SWIGTEMPLATEDISAMBIGUATOR template
22
+ # else
23
+ # define SWIGTEMPLATEDISAMBIGUATOR
24
+ # endif
26
25
  # else
27
- # define SWIGTEMPLATEDISAMBIGUATOR
26
+ # define SWIGTEMPLATEDISAMBIGUATOR
28
27
  # endif
29
28
  #endif
30
29
 
@@ -52,12 +51,6 @@
52
51
  # endif
53
52
  #endif
54
53
 
55
- #ifndef SWIG_MSC_UNSUPPRESS_4505
56
- # if defined(_MSC_VER)
57
- # pragma warning(disable : 4505) /* unreferenced local function has been removed */
58
- # endif
59
- #endif
60
-
61
54
  #ifndef SWIGUNUSEDPARM
62
55
  # ifdef __cplusplus
63
56
  # define SWIGUNUSEDPARM(p)
@@ -113,12 +106,6 @@
113
106
  # define _CRT_SECURE_NO_DEPRECATE
114
107
  #endif
115
108
 
116
- /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
117
- #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
118
- # define _SCL_SECURE_NO_DEPRECATE
119
- #endif
120
-
121
-
122
109
  /* -----------------------------------------------------------------------------
123
110
  * This section contains generic SWIG labels for method/variable
124
111
  * declarations/attributes, and other compiler dependent labels.
@@ -126,14 +113,14 @@
126
113
 
127
114
  /* template workaround for compilers that cannot correctly implement the C++ standard */
128
115
  #ifndef SWIGTEMPLATEDISAMBIGUATOR
129
- # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
130
- # define SWIGTEMPLATEDISAMBIGUATOR template
131
- # elif defined(__HP_aCC)
132
- /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
133
- /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
134
- # define SWIGTEMPLATEDISAMBIGUATOR template
116
+ # if defined(__SUNPRO_CC)
117
+ # if (__SUNPRO_CC <= 0x560)
118
+ # define SWIGTEMPLATEDISAMBIGUATOR template
119
+ # else
120
+ # define SWIGTEMPLATEDISAMBIGUATOR
121
+ # endif
135
122
  # else
136
- # define SWIGTEMPLATEDISAMBIGUATOR
123
+ # define SWIGTEMPLATEDISAMBIGUATOR
137
124
  # endif
138
125
  #endif
139
126
 
@@ -161,12 +148,6 @@
161
148
  # endif
162
149
  #endif
163
150
 
164
- #ifndef SWIG_MSC_UNSUPPRESS_4505
165
- # if defined(_MSC_VER)
166
- # pragma warning(disable : 4505) /* unreferenced local function has been removed */
167
- # endif
168
- #endif
169
-
170
151
  #ifndef SWIGUNUSEDPARM
171
152
  # ifdef __cplusplus
172
153
  # define SWIGUNUSEDPARM(p)
@@ -222,22 +203,16 @@
222
203
  # define _CRT_SECURE_NO_DEPRECATE
223
204
  #endif
224
205
 
225
- /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
226
- #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
227
- # define _SCL_SECURE_NO_DEPRECATE
228
- #endif
229
-
230
-
231
206
  /* -----------------------------------------------------------------------------
232
207
  * swigrun.swg
233
208
  *
234
- * This file contains generic C API SWIG runtime support for pointer
209
+ * This file contains generic CAPI SWIG runtime support for pointer
235
210
  * type checking.
236
211
  * ----------------------------------------------------------------------------- */
237
212
 
238
213
  /* This should only be incremented when either the layout of swig_type_info changes,
239
214
  or for whatever reason, the runtime changes incompatibly */
240
- #define SWIG_RUNTIME_VERSION "4"
215
+ #define SWIG_RUNTIME_VERSION "3"
241
216
 
242
217
  /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
243
218
  #ifdef SWIG_TYPE_TABLE
@@ -250,11 +225,11 @@
250
225
 
251
226
  /*
252
227
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
253
- creating a static or dynamic library from the SWIG runtime code.
254
- In 99.9% of the cases, SWIG just needs to declare them as 'static'.
228
+ creating a static or dynamic library from the swig runtime code.
229
+ In 99.9% of the cases, swig just needs to declare them as 'static'.
255
230
 
256
- But only do this if strictly necessary, ie, if you have problems
257
- with your compiler or suchlike.
231
+ But only do this if is strictly necessary, ie, if you have problems
232
+ with your compiler or so.
258
233
  */
259
234
 
260
235
  #ifndef SWIGRUNTIME
@@ -272,7 +247,6 @@
272
247
 
273
248
  /* Flags for pointer conversions */
274
249
  #define SWIG_POINTER_DISOWN 0x1
275
- #define SWIG_CAST_NEW_MEMORY 0x2
276
250
 
277
251
  /* Flags for new pointer objects */
278
252
  #define SWIG_POINTER_OWN 0x1
@@ -281,14 +255,14 @@
281
255
  /*
282
256
  Flags/methods for returning states.
283
257
 
284
- The SWIG conversion methods, as ConvertPtr, return and integer
258
+ The swig conversion methods, as ConvertPtr, return and integer
285
259
  that tells if the conversion was successful or not. And if not,
286
260
  an error code can be returned (see swigerrors.swg for the codes).
287
261
 
288
262
  Use the following macros/flags to set or process the returning
289
263
  states.
290
264
 
291
- In old versions of SWIG, code such as the following was usually written:
265
+ In old swig versions, you usually write code as:
292
266
 
293
267
  if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
294
268
  // success code
@@ -296,7 +270,7 @@
296
270
  //fail code
297
271
  }
298
272
 
299
- Now you can be more explicit:
273
+ Now you can be more explicit as:
300
274
 
301
275
  int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
302
276
  if (SWIG_IsOK(res)) {
@@ -305,7 +279,7 @@
305
279
  // fail code
306
280
  }
307
281
 
308
- which is the same really, but now you can also do
282
+ that seems to be the same, but now you can also do
309
283
 
310
284
  Type *ptr;
311
285
  int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
@@ -323,7 +297,7 @@
323
297
 
324
298
  I.e., now SWIG_ConvertPtr can return new objects and you can
325
299
  identify the case and take care of the deallocation. Of course that
326
- also requires SWIG_ConvertPtr to return new result values, such as
300
+ requires also to SWIG_ConvertPtr to return new result values, as
327
301
 
328
302
  int SWIG_ConvertPtr(obj, ptr,...) {
329
303
  if (<obj is ok>) {
@@ -341,7 +315,7 @@
341
315
 
342
316
  Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
343
317
  more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
344
- SWIG errors code.
318
+ swig errors code.
345
319
 
346
320
  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
347
321
  allows to return the 'cast rank', for example, if you have this
@@ -355,8 +329,9 @@
355
329
  fooi(1) // cast rank '0'
356
330
 
357
331
  just use the SWIG_AddCast()/SWIG_CheckState()
358
- */
359
332
 
333
+
334
+ */
360
335
  #define SWIG_OK (0)
361
336
  #define SWIG_ERROR (-1)
362
337
  #define SWIG_IsOK(r) (r >= 0)
@@ -381,6 +356,7 @@
381
356
  #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
382
357
  #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
383
358
 
359
+
384
360
  /* Cast-Rank Mode */
385
361
  #if defined(SWIG_CASTRANK_MODE)
386
362
  # ifndef SWIG_TypeRank
@@ -403,16 +379,18 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
403
379
  #endif
404
380
 
405
381
 
382
+
383
+
406
384
  #include <string.h>
407
385
 
408
386
  #ifdef __cplusplus
409
387
  extern "C" {
410
388
  #endif
411
389
 
412
- typedef void *(*swig_converter_func)(void *, int *);
390
+ typedef void *(*swig_converter_func)(void *);
413
391
  typedef struct swig_type_info *(*swig_dycast_func)(void **);
414
392
 
415
- /* Structure to store information on one type */
393
+ /* Structure to store inforomation on one type */
416
394
  typedef struct swig_type_info {
417
395
  const char *name; /* mangled name of this type */
418
396
  const char *str; /* human readable name of this type */
@@ -457,7 +435,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1,
457
435
  while ((*f2 == ' ') && (f2 != l2)) ++f2;
458
436
  if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
459
437
  }
460
- return (int)((l1 - f1) - (l2 - f2));
438
+ return (l1 - f1) - (l2 - f2);
461
439
  }
462
440
 
463
441
  /*
@@ -499,66 +477,48 @@ SWIG_TypeCompare(const char *nb, const char *tb) {
499
477
  }
500
478
 
501
479
 
480
+ /* think of this as a c++ template<> or a scheme macro */
481
+ #define SWIG_TypeCheck_Template(comparison, ty) \
482
+ if (ty) { \
483
+ swig_cast_info *iter = ty->cast; \
484
+ while (iter) { \
485
+ if (comparison) { \
486
+ if (iter == ty->cast) return iter; \
487
+ /* Move iter to the top of the linked list */ \
488
+ iter->prev->next = iter->next; \
489
+ if (iter->next) \
490
+ iter->next->prev = iter->prev; \
491
+ iter->next = ty->cast; \
492
+ iter->prev = 0; \
493
+ if (ty->cast) ty->cast->prev = iter; \
494
+ ty->cast = iter; \
495
+ return iter; \
496
+ } \
497
+ iter = iter->next; \
498
+ } \
499
+ } \
500
+ return 0
501
+
502
502
  /*
503
503
  Check the typename
504
504
  */
505
505
  SWIGRUNTIME swig_cast_info *
506
506
  SWIG_TypeCheck(const char *c, swig_type_info *ty) {
507
- if (ty) {
508
- swig_cast_info *iter = ty->cast;
509
- while (iter) {
510
- if (strcmp(iter->type->name, c) == 0) {
511
- if (iter == ty->cast)
512
- return iter;
513
- /* Move iter to the top of the linked list */
514
- iter->prev->next = iter->next;
515
- if (iter->next)
516
- iter->next->prev = iter->prev;
517
- iter->next = ty->cast;
518
- iter->prev = 0;
519
- if (ty->cast) ty->cast->prev = iter;
520
- ty->cast = iter;
521
- return iter;
522
- }
523
- iter = iter->next;
524
- }
525
- }
526
- return 0;
507
+ SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
527
508
  }
528
509
 
529
- /*
530
- Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
531
- */
510
+ /* Same as previous function, except strcmp is replaced with a pointer comparison */
532
511
  SWIGRUNTIME swig_cast_info *
533
- SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
534
- if (ty) {
535
- swig_cast_info *iter = ty->cast;
536
- while (iter) {
537
- if (iter->type == from) {
538
- if (iter == ty->cast)
539
- return iter;
540
- /* Move iter to the top of the linked list */
541
- iter->prev->next = iter->next;
542
- if (iter->next)
543
- iter->next->prev = iter->prev;
544
- iter->next = ty->cast;
545
- iter->prev = 0;
546
- if (ty->cast) ty->cast->prev = iter;
547
- ty->cast = iter;
548
- return iter;
549
- }
550
- iter = iter->next;
551
- }
552
- }
553
- return 0;
512
+ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
513
+ SWIG_TypeCheck_Template(iter->type == from, into);
554
514
  }
555
515
 
556
516
  /*
557
517
  Cast a pointer up an inheritance hierarchy
558
518
  */
559
519
  SWIGRUNTIMEINLINE void *
560
- SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
561
- return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
520
+ SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
521
+ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
562
522
  }
563
523
 
564
524
  /*
@@ -831,33 +791,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
831
791
 
832
792
  #include <ruby.h>
833
793
 
834
- /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
835
- * breaks using rb_intern as an lvalue, as SWIG does. We work around this
836
- * issue for now by disabling this.
837
- * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
838
- */
839
- #ifdef rb_intern
840
- # undef rb_intern
841
- #endif
842
-
843
- /* Remove global macros defined in Ruby's win32.h */
844
- #ifdef write
845
- # undef write
846
- #endif
847
- #ifdef read
848
- # undef read
849
- #endif
850
- #ifdef bind
851
- # undef bind
852
- #endif
853
- #ifdef close
854
- # undef close
855
- #endif
856
- #ifdef connect
857
- # undef connect
858
- #endif
859
-
860
-
861
794
  /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
862
795
  #ifndef NUM2LL
863
796
  #define NUM2LL(x) NUM2LONG((x))
@@ -886,44 +819,12 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
886
819
  #ifndef RSTRING_PTR
887
820
  # define RSTRING_PTR(x) RSTRING(x)->ptr
888
821
  #endif
889
- #ifndef RSTRING_END
890
- # define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
891
- #endif
892
822
  #ifndef RARRAY_LEN
893
823
  # define RARRAY_LEN(x) RARRAY(x)->len
894
824
  #endif
895
825
  #ifndef RARRAY_PTR
896
826
  # define RARRAY_PTR(x) RARRAY(x)->ptr
897
827
  #endif
898
- #ifndef RFLOAT_VALUE
899
- # define RFLOAT_VALUE(x) RFLOAT(x)->value
900
- #endif
901
- #ifndef DOUBLE2NUM
902
- # define DOUBLE2NUM(x) rb_float_new(x)
903
- #endif
904
- #ifndef RHASH_TBL
905
- # define RHASH_TBL(x) (RHASH(x)->tbl)
906
- #endif
907
- #ifndef RHASH_ITER_LEV
908
- # define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
909
- #endif
910
- #ifndef RHASH_IFNONE
911
- # define RHASH_IFNONE(x) (RHASH(x)->ifnone)
912
- #endif
913
- #ifndef RHASH_SIZE
914
- # define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
915
- #endif
916
- #ifndef RHASH_EMPTY_P
917
- # define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
918
- #endif
919
- #ifndef RSTRUCT_LEN
920
- # define RSTRUCT_LEN(x) RSTRUCT(x)->len
921
- #endif
922
- #ifndef RSTRUCT_PTR
923
- # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
924
- #endif
925
-
926
-
927
828
 
928
829
  /*
929
830
  * Need to be very careful about how these macros are defined, especially
@@ -985,7 +886,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
985
886
  #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
986
887
  #endif
987
888
 
988
- static VALUE _mSWIG = Qnil;
989
889
 
990
890
  /* -----------------------------------------------------------------------------
991
891
  * error manipulation
@@ -1076,73 +976,12 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
1076
976
  }
1077
977
 
1078
978
 
1079
- /* This function is called when a user inputs a wrong argument to
1080
- a method.
1081
- */
1082
- SWIGINTERN
1083
- const char* Ruby_Format_TypeError( const char* msg,
1084
- const char* type,
1085
- const char* name,
1086
- const int argn,
1087
- VALUE input )
1088
- {
1089
- char buf[128];
1090
- VALUE str;
1091
- VALUE asStr;
1092
- if ( msg && *msg )
1093
- {
1094
- str = rb_str_new2(msg);
1095
- }
1096
- else
1097
- {
1098
- str = rb_str_new(NULL, 0);
1099
- }
1100
979
 
1101
- str = rb_str_cat2( str, "Expected argument " );
1102
- sprintf( buf, "%d of type ", argn-1 );
1103
- str = rb_str_cat2( str, buf );
1104
- str = rb_str_cat2( str, type );
1105
- str = rb_str_cat2( str, ", but got " );
1106
- str = rb_str_cat2( str, rb_obj_classname(input) );
1107
- str = rb_str_cat2( str, " " );
1108
- asStr = rb_inspect(input);
1109
- if ( RSTRING_LEN(asStr) > 30 )
1110
- {
1111
- str = rb_str_cat( str, StringValuePtr(asStr), 30 );
1112
- str = rb_str_cat2( str, "..." );
1113
- }
1114
- else
1115
- {
1116
- str = rb_str_append( str, asStr );
1117
- }
1118
-
1119
- if ( name )
1120
- {
1121
- str = rb_str_cat2( str, "\n\tin SWIG method '" );
1122
- str = rb_str_cat2( str, name );
1123
- str = rb_str_cat2( str, "'" );
1124
- }
1125
-
1126
- return StringValuePtr( str );
1127
- }
1128
-
1129
- /* This function is called when an overloaded method fails */
1130
- SWIGINTERN
1131
- void Ruby_Format_OverloadedError(
1132
- const int argc,
1133
- const int maxargs,
1134
- const char* method,
1135
- const char* prototypes
1136
- )
1137
- {
1138
- const char* msg = "Wrong # of arguments";
1139
- if ( argc <= maxargs ) msg = "Wrong arguments";
1140
- rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
1141
- "Possible C/C++ prototypes are:\n%s",
1142
- msg, method, prototypes);
1143
- }
1144
980
 
1145
981
  /* -----------------------------------------------------------------------------
982
+ * See the LICENSE file for information on copyright, usage and redistribution
983
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
984
+ *
1146
985
  * rubytracking.swg
1147
986
  *
1148
987
  * This file contains support for tracking mappings from
@@ -1155,51 +994,23 @@ void Ruby_Format_OverloadedError(
1155
994
  extern "C" {
1156
995
  #endif
1157
996
 
1158
- /* Ruby 1.8 actually assumes the first case. */
1159
- #if SIZEOF_VOIDP == SIZEOF_LONG
1160
- # define SWIG2NUM(v) LONG2NUM((unsigned long)v)
1161
- # define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
1162
- #elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
1163
- # define SWIG2NUM(v) LL2NUM((unsigned long long)v)
1164
- # define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
1165
- #else
1166
- # error sizeof(void*) is not the same as long or long long
1167
- #endif
1168
-
1169
997
 
1170
998
  /* Global Ruby hash table to store Trackings from C/C++
1171
- structs to Ruby Objects.
1172
- */
1173
- static VALUE swig_ruby_trackings = Qnil;
999
+ structs to Ruby Objects. */
1000
+ static VALUE swig_ruby_trackings;
1174
1001
 
1175
1002
  /* Global variable that stores a reference to the ruby
1176
1003
  hash table delete function. */
1177
- static ID swig_ruby_hash_delete;
1004
+ static ID swig_ruby_hash_delete = 0;
1178
1005
 
1179
1006
  /* Setup a Ruby hash table to store Trackings */
1180
1007
  SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
1181
1008
  /* Create a ruby hash table to store Trackings from C++
1182
- objects to Ruby objects. */
1183
-
1184
- /* Try to see if some other .so has already created a
1185
- tracking hash table, which we keep hidden in an instance var
1186
- in the SWIG module.
1187
- This is done to allow multiple DSOs to share the same
1188
- tracking table.
1189
- */
1190
- ID trackings_id = rb_intern( "@__trackings__" );
1191
- VALUE verbose = rb_gv_get("VERBOSE");
1192
- rb_gv_set("VERBOSE", Qfalse);
1193
- swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
1194
- rb_gv_set("VERBOSE", verbose);
1195
-
1196
- /* No, it hasn't. Create one ourselves */
1197
- if ( swig_ruby_trackings == Qnil )
1198
- {
1199
- swig_ruby_trackings = rb_hash_new();
1200
- rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
1201
- }
1202
-
1009
+ objects to Ruby objects. Also make sure to tell
1010
+ the garabage collector about the hash table. */
1011
+ swig_ruby_trackings = rb_hash_new();
1012
+ rb_gc_register_address(&swig_ruby_trackings);
1013
+
1203
1014
  /* Now store a reference to the hash table delete function
1204
1015
  so that we only have to look it up once.*/
1205
1016
  swig_ruby_hash_delete = rb_intern("delete");
@@ -1212,7 +1023,8 @@ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
1212
1023
  a Ruby number object. */
1213
1024
 
1214
1025
  /* Convert the pointer to a Ruby number */
1215
- return SWIG2NUM(ptr);
1026
+ unsigned long value = (unsigned long) ptr;
1027
+ return LONG2NUM(value);
1216
1028
  }
1217
1029
 
1218
1030
  /* Get a Ruby number to reference an object */
@@ -1222,7 +1034,8 @@ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
1222
1034
  a Ruby number object. */
1223
1035
 
1224
1036
  /* Convert the Object to a Ruby number */
1225
- return SWIG2NUM(object);
1037
+ unsigned long value = (unsigned long) object;
1038
+ return LONG2NUM(value);
1226
1039
  }
1227
1040
 
1228
1041
  /* Get a Ruby object from a previously stored reference */
@@ -1230,8 +1043,9 @@ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
1230
1043
  /* The provided Ruby number object is a reference
1231
1044
  to the Ruby object we want.*/
1232
1045
 
1233
- /* Convert the Ruby number to a Ruby object */
1234
- return NUM2SWIG(reference);
1046
+ /* First convert the Ruby number to a C number */
1047
+ unsigned long value = NUM2LONG(reference);
1048
+ return (VALUE) value;
1235
1049
  }
1236
1050
 
1237
1051
  /* Add a Tracking from a C/C++ struct to a Ruby object */
@@ -1323,21 +1137,15 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1323
1137
  return target;
1324
1138
  }
1325
1139
 
1326
- /* For ruby1.8.4 and earlier. */
1327
- #ifndef RUBY_INIT_STACK
1328
- RUBY_EXTERN void Init_stack(VALUE* addr);
1329
- # define RUBY_INIT_STACK \
1330
- VALUE variable_in_this_stack_frame; \
1331
- Init_stack(&variable_in_this_stack_frame);
1332
- #endif
1333
-
1334
-
1335
1140
  #ifdef __cplusplus
1336
1141
  }
1337
1142
  #endif
1338
1143
 
1339
1144
 
1340
1145
  /* -----------------------------------------------------------------------------
1146
+ * See the LICENSE file for information on copyright, usage and redistribution
1147
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
1148
+ *
1341
1149
  * rubyrun.swg
1342
1150
  *
1343
1151
  * This file contains the runtime support for Ruby modules
@@ -1381,7 +1189,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1381
1189
  /* Error manipulation */
1382
1190
 
1383
1191
  #define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
1384
- #define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
1192
+ #define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
1385
1193
  #define SWIG_fail goto fail
1386
1194
 
1387
1195
 
@@ -1393,7 +1201,6 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1393
1201
  #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
1394
1202
  #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
1395
1203
 
1396
- #include "assert.h"
1397
1204
 
1398
1205
  /* -----------------------------------------------------------------------------
1399
1206
  * pointers/data manipulation
@@ -1401,6 +1208,9 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1401
1208
 
1402
1209
  #ifdef __cplusplus
1403
1210
  extern "C" {
1211
+ #if 0
1212
+ } /* cc-mode */
1213
+ #endif
1404
1214
  #endif
1405
1215
 
1406
1216
  typedef struct {
@@ -1412,44 +1222,10 @@ typedef struct {
1412
1222
  } swig_class;
1413
1223
 
1414
1224
 
1415
- /* Global pointer used to keep some internal SWIG stuff */
1225
+ static VALUE _mSWIG = Qnil;
1416
1226
  static VALUE _cSWIG_Pointer = Qnil;
1417
1227
  static VALUE swig_runtime_data_type_pointer = Qnil;
1418
1228
 
1419
- /* Global IDs used to keep some internal SWIG stuff */
1420
- static ID swig_arity_id = 0;
1421
- static ID swig_call_id = 0;
1422
-
1423
- /*
1424
- If your swig extension is to be run within an embedded ruby and has
1425
- director callbacks, you should set -DRUBY_EMBEDDED during compilation.
1426
- This will reset ruby's stack frame on each entry point from the main
1427
- program the first time a virtual director function is invoked (in a
1428
- non-recursive way).
1429
- If this is not done, you run the risk of Ruby trashing the stack.
1430
- */
1431
-
1432
- #ifdef RUBY_EMBEDDED
1433
-
1434
- # define SWIG_INIT_STACK \
1435
- if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
1436
- ++swig_virtual_calls;
1437
- # define SWIG_RELEASE_STACK --swig_virtual_calls;
1438
- # define Ruby_DirectorTypeMismatchException(x) \
1439
- rb_raise( rb_eTypeError, "%s", x ); return c_result;
1440
-
1441
- static unsigned int swig_virtual_calls = 0;
1442
-
1443
- #else /* normal non-embedded extension */
1444
-
1445
- # define SWIG_INIT_STACK
1446
- # define SWIG_RELEASE_STACK
1447
- # define Ruby_DirectorTypeMismatchException(x) \
1448
- throw Swig::DirectorTypeMismatchException( x );
1449
-
1450
- #endif /* RUBY_EMBEDDED */
1451
-
1452
-
1453
1229
  SWIGRUNTIME VALUE
1454
1230
  getExceptionClass(void) {
1455
1231
  static int init = 0;
@@ -1481,8 +1257,6 @@ SWIG_Ruby_InitRuntime(void)
1481
1257
  {
1482
1258
  if (_mSWIG == Qnil) {
1483
1259
  _mSWIG = rb_define_module("SWIG");
1484
- swig_call_id = rb_intern("call");
1485
- swig_arity_id = rb_intern("arity");
1486
1260
  }
1487
1261
  }
1488
1262
 
@@ -1506,7 +1280,7 @@ SWIGRUNTIME VALUE
1506
1280
  SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1507
1281
  {
1508
1282
  int own = flags & SWIG_POINTER_OWN;
1509
- int track;
1283
+
1510
1284
  char *klass_name;
1511
1285
  swig_class *sklass;
1512
1286
  VALUE klass;
@@ -1519,15 +1293,14 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1519
1293
  sklass = (swig_class *) type->clientdata;
1520
1294
 
1521
1295
  /* Are we tracking this class and have we already returned this Ruby object? */
1522
- track = sklass->trackObjects;
1523
- if (track) {
1296
+ if (sklass->trackObjects) {
1524
1297
  obj = SWIG_RubyInstanceFor(ptr);
1525
1298
 
1526
1299
  /* Check the object's type and make sure it has the correct type.
1527
1300
  It might not in cases where methods do things like
1528
1301
  downcast methods. */
1529
1302
  if (obj != Qnil) {
1530
- VALUE value = rb_iv_get(obj, "@__swigtype__");
1303
+ VALUE value = rb_iv_get(obj, "__swigtype__");
1531
1304
  char* type_name = RSTRING_PTR(value);
1532
1305
 
1533
1306
  if (strcmp(type->name, type_name) == 0) {
@@ -1537,13 +1310,10 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1537
1310
  }
1538
1311
 
1539
1312
  /* Create a new Ruby object */
1540
- obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
1541
- ( own ? VOIDFUNC(sklass->destroy) :
1542
- (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
1543
- ), ptr);
1313
+ obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), (own ? VOIDFUNC(sklass->destroy) : 0), ptr);
1544
1314
 
1545
1315
  /* If tracking is on for this class then track this object. */
1546
- if (track) {
1316
+ if (sklass->trackObjects) {
1547
1317
  SWIG_RubyAddTracking(ptr, obj);
1548
1318
  }
1549
1319
  } else {
@@ -1553,7 +1323,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1553
1323
  free((void *) klass_name);
1554
1324
  obj = Data_Wrap_Struct(klass, 0, 0, ptr);
1555
1325
  }
1556
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1326
+ rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
1557
1327
 
1558
1328
  return obj;
1559
1329
  }
@@ -1565,7 +1335,7 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
1565
1335
  VALUE obj;
1566
1336
  swig_class *sklass = (swig_class *) type->clientdata;
1567
1337
  obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
1568
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1338
+ rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
1569
1339
  return obj;
1570
1340
  }
1571
1341
 
@@ -1573,7 +1343,7 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
1573
1343
  SWIGRUNTIMEINLINE char *
1574
1344
  SWIG_Ruby_MangleStr(VALUE obj)
1575
1345
  {
1576
- VALUE stype = rb_iv_get(obj, "@__swigtype__");
1346
+ VALUE stype = rb_iv_get(obj, "__swigtype__");
1577
1347
  return StringValuePtr(stype);
1578
1348
  }
1579
1349
 
@@ -1655,11 +1425,8 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1655
1425
  tc = SWIG_TypeCheck(c, ty);
1656
1426
  if (!tc) {
1657
1427
  return SWIG_ERROR;
1658
- } else {
1659
- int newmemory = 0;
1660
- *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
1661
- assert(!newmemory); /* newmemory handling not yet implemented */
1662
1428
  }
1429
+ *ptr = SWIG_TypeCast(tc, vptr);
1663
1430
  } else {
1664
1431
  *ptr = vptr;
1665
1432
  }
@@ -1740,42 +1507,10 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
1740
1507
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
1741
1508
  }
1742
1509
 
1743
- /* This function can be used to check whether a proc or method or similarly
1744
- callable function has been passed. Usually used in a %typecheck, like:
1745
-
1746
- %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
1747
- $result = SWIG_Ruby_isCallable( $input );
1748
- }
1749
- */
1750
- SWIGINTERN
1751
- int SWIG_Ruby_isCallable( VALUE proc )
1752
- {
1753
- if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
1754
- return 1;
1755
- return 0;
1756
- }
1757
-
1758
- /* This function can be used to check the arity (number of arguments)
1759
- a proc or method can take. Usually used in a %typecheck.
1760
- Valid arities will be that equal to minimal or those < 0
1761
- which indicate a variable number of parameters at the end.
1762
- */
1763
- SWIGINTERN
1764
- int SWIG_Ruby_arity( VALUE proc, int minimal )
1765
- {
1766
- if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
1767
- {
1768
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
1769
- int arity = NUM2INT(num);
1770
- if ( arity < 0 && (arity+1) < -minimal ) return 1;
1771
- if ( arity == minimal ) return 1;
1772
- return 1;
1773
- }
1774
- return 0;
1775
- }
1776
-
1777
-
1778
1510
  #ifdef __cplusplus
1511
+ #if 0
1512
+ { /* cc-mode */
1513
+ #endif
1779
1514
  }
1780
1515
  #endif
1781
1516
 
@@ -1803,11 +1538,7 @@ static swig_module_info swig_module = {swig_types, 2, 0, 0, 0, 0};
1803
1538
 
1804
1539
  static VALUE mNativeBar;
1805
1540
 
1806
- #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1807
- #define SWIG_RUBY_THREAD_END_BLOCK
1808
-
1809
-
1810
- #define SWIGVERSION 0x020000
1541
+ #define SWIGVERSION 0x010331
1811
1542
  #define SWIG_VERSION SWIGVERSION
1812
1543
 
1813
1544
 
@@ -1835,14 +1566,18 @@ extern void remove_native_tabbar();
1835
1566
  extern void native_tabbar_switch_tab(int index);
1836
1567
  extern void native_tabbar_set_tab_badge(int index,char *val);
1837
1568
 
1569
+ extern int native_tabbar_get_current_tab();
1570
+
1838
1571
 
1839
1572
  #include <limits.h>
1840
- #if !defined(SWIG_NO_LLONG_MAX)
1841
- # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1842
- # define LLONG_MAX __LONG_LONG_MAX__
1843
- # define LLONG_MIN (-LLONG_MAX - 1LL)
1844
- # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1845
- # endif
1573
+ #ifndef LLONG_MIN
1574
+ # define LLONG_MIN LONG_LONG_MIN
1575
+ #endif
1576
+ #ifndef LLONG_MAX
1577
+ # define LLONG_MAX LONG_LONG_MAX
1578
+ #endif
1579
+ #ifndef ULLONG_MAX
1580
+ # define ULLONG_MAX ULONG_LONG_MAX
1846
1581
  #endif
1847
1582
 
1848
1583
 
@@ -1853,7 +1588,7 @@ SWIG_ruby_failed(void)
1853
1588
  }
1854
1589
 
1855
1590
 
1856
- /*@SWIG:C:\Rhode\swigwin-2.0.0\Lib\ruby\rubyprimtypes.swg,19,%ruby_aux_method@*/
1591
+ /*@SWIG:%ruby_aux_method@*/
1857
1592
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
1858
1593
  {
1859
1594
  VALUE obj = args[0];
@@ -1915,11 +1650,11 @@ SWIGINTERN int
1915
1650
  SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
1916
1651
  {
1917
1652
  if (TYPE(obj) == T_STRING) {
1918
- #if defined(StringValuePtr)
1919
- char *cstr = StringValuePtr(obj);
1920
- #else
1653
+
1654
+
1655
+
1921
1656
  char *cstr = STR2CSTR(obj);
1922
- #endif
1657
+
1923
1658
  size_t size = RSTRING_LEN(obj) + 1;
1924
1659
  if (cptr) {
1925
1660
  if (alloc) {
@@ -1951,6 +1686,16 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
1951
1686
 
1952
1687
 
1953
1688
 
1689
+
1690
+ #define SWIG_From_long LONG2NUM
1691
+
1692
+
1693
+ SWIGINTERNINLINE VALUE
1694
+ SWIG_From_int (int value)
1695
+ {
1696
+ return SWIG_From_long (value);
1697
+ }
1698
+
1954
1699
  SWIGINTERN VALUE
1955
1700
  _wrap_create(int argc, VALUE *argv, VALUE self) {
1956
1701
  int arg1 ;
@@ -1963,7 +1708,7 @@ _wrap_create(int argc, VALUE *argv, VALUE self) {
1963
1708
  }
1964
1709
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
1965
1710
  if (!SWIG_IsOK(ecode1)) {
1966
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","create", 1, argv[0] ));
1711
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "create" "', argument " "1"" of type '" "int""'");
1967
1712
  }
1968
1713
  arg1 = (int)(val1);
1969
1714
  {
@@ -2005,7 +1750,7 @@ _wrap_switch_tab(int argc, VALUE *argv, VALUE self) {
2005
1750
  }
2006
1751
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
2007
1752
  if (!SWIG_IsOK(ecode1)) {
2008
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","switch_tab", 1, argv[0] ));
1753
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "switch_tab" "', argument " "1"" of type '" "int""'");
2009
1754
  }
2010
1755
  arg1 = (int)(val1);
2011
1756
  switch_tab(arg1);
@@ -2046,12 +1791,12 @@ _wrap_set_tab_badge(int argc, VALUE *argv, VALUE self) {
2046
1791
  }
2047
1792
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
2048
1793
  if (!SWIG_IsOK(ecode1)) {
2049
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","set_tab_badge", 1, argv[0] ));
1794
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "set_tab_badge" "', argument " "1"" of type '" "int""'");
2050
1795
  }
2051
1796
  arg1 = (int)(val1);
2052
1797
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
2053
1798
  if (!SWIG_IsOK(res2)) {
2054
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","set_tab_badge", 2, argv[1] ));
1799
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "set_tab_badge" "', argument " "2"" of type '" "char *""'");
2055
1800
  }
2056
1801
  arg2 = (char *)(buf2);
2057
1802
  set_tab_badge(arg1,arg2);
@@ -2075,7 +1820,7 @@ _wrap_create_native_toolbar(int argc, VALUE *argv, VALUE self) {
2075
1820
  }
2076
1821
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
2077
1822
  if (!SWIG_IsOK(ecode1)) {
2078
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","create_native_toolbar", 1, argv[0] ));
1823
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "create_native_toolbar" "', argument " "1"" of type '" "int""'");
2079
1824
  }
2080
1825
  arg1 = (int)(val1);
2081
1826
  {
@@ -2118,7 +1863,7 @@ _wrap_create_native_tabbar(int argc, VALUE *argv, VALUE self) {
2118
1863
  }
2119
1864
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
2120
1865
  if (!SWIG_IsOK(ecode1)) {
2121
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","create_native_tabbar", 1, argv[0] ));
1866
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "create_native_tabbar" "', argument " "1"" of type '" "int""'");
2122
1867
  }
2123
1868
  arg1 = (int)(val1);
2124
1869
  {
@@ -2160,7 +1905,7 @@ _wrap_native_tabbar_switch_tab(int argc, VALUE *argv, VALUE self) {
2160
1905
  }
2161
1906
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
2162
1907
  if (!SWIG_IsOK(ecode1)) {
2163
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","native_tabbar_switch_tab", 1, argv[0] ));
1908
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "native_tabbar_switch_tab" "', argument " "1"" of type '" "int""'");
2164
1909
  }
2165
1910
  arg1 = (int)(val1);
2166
1911
  native_tabbar_switch_tab(arg1);
@@ -2185,12 +1930,12 @@ _wrap_native_tabbar_set_tab_badge(int argc, VALUE *argv, VALUE self) {
2185
1930
  }
2186
1931
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
2187
1932
  if (!SWIG_IsOK(ecode1)) {
2188
- SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","native_tabbar_set_tab_badge", 1, argv[0] ));
1933
+ SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "native_tabbar_set_tab_badge" "', argument " "1"" of type '" "int""'");
2189
1934
  }
2190
1935
  arg1 = (int)(val1);
2191
1936
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
2192
1937
  if (!SWIG_IsOK(res2)) {
2193
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","native_tabbar_set_tab_badge", 2, argv[1] ));
1938
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "native_tabbar_set_tab_badge" "', argument " "2"" of type '" "char *""'");
2194
1939
  }
2195
1940
  arg2 = (char *)(buf2);
2196
1941
  native_tabbar_set_tab_badge(arg1,arg2);
@@ -2202,6 +1947,22 @@ fail:
2202
1947
  }
2203
1948
 
2204
1949
 
1950
+ SWIGINTERN VALUE
1951
+ _wrap_native_tabbar_get_current_tab(int argc, VALUE *argv, VALUE self) {
1952
+ int result;
1953
+ VALUE vresult = Qnil;
1954
+
1955
+ if ((argc < 0) || (argc > 0)) {
1956
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
1957
+ }
1958
+ result = (int)native_tabbar_get_current_tab();
1959
+ vresult = SWIG_From_int((int)(result));
1960
+ return vresult;
1961
+ fail:
1962
+ return Qnil;
1963
+ }
1964
+
1965
+
2205
1966
 
2206
1967
  /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2207
1968
 
@@ -2281,7 +2042,7 @@ SWIGRUNTIME void
2281
2042
  SWIG_InitializeModule(void *clientdata) {
2282
2043
  size_t i;
2283
2044
  swig_module_info *module_head, *iter;
2284
- int found, init;
2045
+ int found;
2285
2046
 
2286
2047
  clientdata = clientdata;
2287
2048
 
@@ -2291,9 +2052,6 @@ SWIG_InitializeModule(void *clientdata) {
2291
2052
  swig_module.type_initial = swig_type_initial;
2292
2053
  swig_module.cast_initial = swig_cast_initial;
2293
2054
  swig_module.next = &swig_module;
2294
- init = 1;
2295
- } else {
2296
- init = 0;
2297
2055
  }
2298
2056
 
2299
2057
  /* Try and load any already created modules */
@@ -2322,12 +2080,6 @@ SWIG_InitializeModule(void *clientdata) {
2322
2080
  module_head->next = &swig_module;
2323
2081
  }
2324
2082
 
2325
- /* When multiple interpeters are used, a module could have already been initialized in
2326
- a different interpreter, but not yet have a pointer in this interpreter.
2327
- In this case, we do not want to continue adding types... everything should be
2328
- set up already */
2329
- if (init == 0) return;
2330
-
2331
2083
  /* Now work on filling in swig_module.types */
2332
2084
  #ifdef SWIGRUNTIME_DEBUG
2333
2085
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
@@ -2461,9 +2213,7 @@ SWIG_PropagateClientData(void) {
2461
2213
  }
2462
2214
  #endif
2463
2215
 
2464
- /*
2465
2216
 
2466
- */
2467
2217
  #ifdef __cplusplus
2468
2218
  extern "C"
2469
2219
  #endif
@@ -2490,5 +2240,6 @@ SWIGEXPORT void Init_NativeBar(void) {
2490
2240
  rb_define_module_function(mNativeBar, "remove_native_tabbar", _wrap_remove_native_tabbar, -1);
2491
2241
  rb_define_module_function(mNativeBar, "native_tabbar_switch_tab", _wrap_native_tabbar_switch_tab, -1);
2492
2242
  rb_define_module_function(mNativeBar, "native_tabbar_set_tab_badge", _wrap_native_tabbar_set_tab_badge, -1);
2243
+ rb_define_module_function(mNativeBar, "native_tabbar_get_current_tab", _wrap_native_tabbar_get_current_tab, -1);
2493
2244
  }
2494
2245