rhoconnect-client 5.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +9 -0
  3. data/CREDITS +0 -0
  4. data/LICENSE +9 -0
  5. data/README.md +47 -0
  6. data/ext/rhoconnect-client/RhoConnectClient.rb +190 -0
  7. data/ext/rhoconnect-client/ext/RhoConnectClient.xml +726 -0
  8. data/ext/rhoconnect-client/ext/build +26 -0
  9. data/ext/rhoconnect-client/ext/build.bat +30 -0
  10. data/ext/rhoconnect-client/ext/platform/android/ext_java.files +1 -0
  11. data/ext/rhoconnect-client/ext/platform/android/ext_native.files +14 -0
  12. data/ext/rhoconnect-client/ext/platform/android/src/com/rhoconnectclient/RhoconnectClient.java +1 -0
  13. data/ext/rhoconnect-client/ext/platform/iphone/.gitignore +1 -0
  14. data/ext/rhoconnect-client/ext/platform/iphone/Rakefile +74 -0
  15. data/ext/rhoconnect-client/ext/platform/iphone/RhoconnectClient.xcodeproj/project.pbxproj +390 -0
  16. data/ext/rhoconnect-client/ext/platform/iphone/RhoconnectClient_Prefix.pch +7 -0
  17. data/ext/rhoconnect-client/ext/platform/iphone/impl/readme.txt +7 -0
  18. data/ext/rhoconnect-client/ext/platform/qt/Rakefile +35 -0
  19. data/ext/rhoconnect-client/ext/platform/qt/rhoconnect-client.pro +88 -0
  20. data/ext/rhoconnect-client/ext/platform/wm/Rhoconnect-client.sln +36 -0
  21. data/ext/rhoconnect-client/ext/platform/wm/Rhoconnect-client.vcproj +774 -0
  22. data/ext/rhoconnect-client/ext/platform/wm/Rhoconnect-client.vsprops +15 -0
  23. data/ext/rhoconnect-client/ext/platform/wm/src/rhoconnectclient_wm.cpp +40 -0
  24. data/ext/rhoconnect-client/ext/platform/wm/src/rhoconnectclient_wm.h +2 -0
  25. data/ext/rhoconnect-client/ext/platform/wp8/Rhoconnect-client.props +22 -0
  26. data/ext/rhoconnect-client/ext/platform/wp8/Rhoconnect-client.sln +32 -0
  27. data/ext/rhoconnect-client/ext/platform/wp8/Rhoconnect-client.vcxproj +220 -0
  28. data/ext/rhoconnect-client/ext/platform/wp8/Rhoconnect-client.vcxproj.filters +103 -0
  29. data/ext/rhoconnect-client/ext/shared/RhoConnectClientImpl.cpp +273 -0
  30. data/ext/rhoconnect-client/ext/shared/RhoConnectClientImpl.h +60 -0
  31. data/ext/rhoconnect-client/ext/shared/RhoConnectClientSingletonImpl.h +53 -0
  32. data/ext/rhoconnect-client/ext/shared/initRhoconnectClient.cpp +207 -0
  33. data/ext/rhoconnect-client/ext/shared/rhoconnectclient.c +18 -0
  34. data/ext/rhoconnect-client/ext/shared/sync/ClientRegister.cpp +398 -0
  35. data/ext/rhoconnect-client/ext/shared/sync/ClientRegister.h +147 -0
  36. data/ext/rhoconnect-client/ext/shared/sync/ISyncProtocol.h +91 -0
  37. data/ext/rhoconnect-client/ext/shared/sync/SyncEngine.cpp +1245 -0
  38. data/ext/rhoconnect-client/ext/shared/sync/SyncEngine.h +213 -0
  39. data/ext/rhoconnect-client/ext/shared/sync/SyncNotify.cpp +737 -0
  40. data/ext/rhoconnect-client/ext/shared/sync/SyncNotify.h +209 -0
  41. data/ext/rhoconnect-client/ext/shared/sync/SyncProtocol_3.h +220 -0
  42. data/ext/rhoconnect-client/ext/shared/sync/SyncProtocol_4.h +259 -0
  43. data/ext/rhoconnect-client/ext/shared/sync/SyncSource.cpp +1694 -0
  44. data/ext/rhoconnect-client/ext/shared/sync/SyncSource.h +212 -0
  45. data/ext/rhoconnect-client/ext/shared/sync/SyncThread.cpp +583 -0
  46. data/ext/rhoconnect-client/ext/shared/sync/SyncThread.h +250 -0
  47. data/ext/rhoconnect-client/ext.yml +12 -0
  48. data/lib/build/run_rhoconnect_spec.rb +135 -0
  49. data/lib/rhoconnect-client.rb +3 -0
  50. data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +1673 -0
  51. data/platform/shared/RhoConnectClient/RhoConnectClient.h +181 -0
  52. data/platform/shared/RhoConnectClient/RhoError.h +77 -0
  53. data/rhoconnect-client/C++/Tests/RhoConnectClientTest.cpp +830 -0
  54. data/rhoconnect-client/C++/Tests/win32/.gitignore +3 -0
  55. data/rhoconnect-client/C++/Tests/win32/RhoConnectClient.sln +65 -0
  56. data/rhoconnect-client/C++/Tests/win32/RhoConnectClient.vcproj +634 -0
  57. data/rhoconnect-client/C++/Tests/win32/RhoConnectClientTest/RhoConnectClientTest.vcproj +222 -0
  58. data/rhoconnect-client/C++/Tests/win32/RhoConnectClientTest/stdafx.h +65 -0
  59. data/rhoconnect-client/C++/Tests/win32/stdafx.h +65 -0
  60. data/rhoconnect-client/CHANGELOG +18 -0
  61. data/rhoconnect-client/Java/Android/build/android.rake +387 -0
  62. data/rhoconnect-client/Java/Android/build/android_sdk.rb +582 -0
  63. data/rhoconnect-client/Java/Android/build/libcurl_build.files +73 -0
  64. data/rhoconnect-client/Java/Android/build/libjson_build.files +9 -0
  65. data/rhoconnect-client/Java/Android/build/librhocommon_build.files +14 -0
  66. data/rhoconnect-client/Java/Android/build/librhodb_build.files +5 -0
  67. data/rhoconnect-client/Java/Android/build/librhoimpl_build.files +13 -0
  68. data/rhoconnect-client/Java/Android/build/librholog_build.files +4 -0
  69. data/rhoconnect-client/Java/Android/build/libsqlite_build.files +1 -0
  70. data/rhoconnect-client/Java/Android/build/libsync_build.files +7 -0
  71. data/rhoconnect-client/Java/Android/build/libunzip_build.files +1 -0
  72. data/rhoconnect-client/Java/Android/build/rhoconnectclient_build.files +3 -0
  73. data/rhoconnect-client/Java/Android/build/rhoimpljava_build.files +21 -0
  74. data/rhoconnect-client/Java/Android/src/com/rhomobile/rhodes/Capabilities.java +63 -0
  75. data/rhoconnect-client/Java/Android/src/com/rhomobile/rhodes/MemoryInfoCollector.java +79 -0
  76. data/rhoconnect-client/Java/Android/src/com/rhomobile/rhodes/util/ContextFactory.java +63 -0
  77. data/rhoconnect-client/Java/Android/test/.classpath +9 -0
  78. data/rhoconnect-client/Java/Android/test/.project +33 -0
  79. data/rhoconnect-client/Java/Android/test/AndroidManifest.xml +14 -0
  80. data/rhoconnect-client/Java/Android/test/assets/apps/androidtest.png +0 -0
  81. data/rhoconnect-client/Java/Android/test/assets/apps/rhoconfig.txt +19 -0
  82. data/rhoconnect-client/Java/Android/test/assets/apps/rhoconfig.txt.timestamp +1 -0
  83. data/rhoconnect-client/Java/Android/test/assets/db/syncdb.schema +44 -0
  84. data/rhoconnect-client/Java/Android/test/assets/db/syncdb.triggers +10 -0
  85. data/rhoconnect-client/Java/Android/test/assets/db/syncdb_java.triggers +21 -0
  86. data/rhoconnect-client/Java/Android/test/assets/rho.dat +9 -0
  87. data/rhoconnect-client/Java/Android/test/proguard.cfg +36 -0
  88. data/rhoconnect-client/Java/Android/test/project.properties +11 -0
  89. data/rhoconnect-client/Java/Android/test/res/drawable-hdpi/icon.png +0 -0
  90. data/rhoconnect-client/Java/Android/test/res/drawable-ldpi/icon.png +0 -0
  91. data/rhoconnect-client/Java/Android/test/res/drawable-mdpi/icon.png +0 -0
  92. data/rhoconnect-client/Java/Android/test/res/layout/main.xml +12 -0
  93. data/rhoconnect-client/Java/Android/test/res/values/strings.xml +5 -0
  94. data/rhoconnect-client/Java/Android/test/rhoimpl.jar +0 -0
  95. data/rhoconnect-client/Java/Android/test/src/com/rhomobile/rhoconnect_client_test/TestRhoConnectClient.java +343 -0
  96. data/rhoconnect-client/Java/Android/test/src/com/rhomobile/rhoconnect_client_test/TestRhoConnectClientBlobs.java +219 -0
  97. data/rhoconnect-client/Java/RhoConnect/.classpath +6 -0
  98. data/rhoconnect-client/Java/RhoConnect/.project +93 -0
  99. data/rhoconnect-client/Java/RhoConnect/assets/apps/rhoconfig.txt +19 -0
  100. data/rhoconnect-client/Java/RhoConnect/assets/apps/rhoconfig.txt.timestamp +1 -0
  101. data/rhoconnect-client/Java/RhoConnect/assets/db/syncdb.schema +44 -0
  102. data/rhoconnect-client/Java/RhoConnect/assets/db/syncdb.triggers +10 -0
  103. data/rhoconnect-client/Java/RhoConnect/assets/db/syncdb_java.triggers +21 -0
  104. data/rhoconnect-client/Java/RhoConnect/assets/rho.dat +8 -0
  105. data/rhoconnect-client/Java/RhoConnect/jni/include/RhoConnectJniNotify.h +61 -0
  106. data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectClient.h +181 -0
  107. data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectNotify.h +13 -0
  108. data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectNotify_IDelegate.h +13 -0
  109. data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectObjectNotify.h +13 -0
  110. data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectObjectNotify_IDelegate.h +13 -0
  111. data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhomModel.h +103 -0
  112. data/rhoconnect-client/Java/RhoConnect/jni/include/rhojava.inc +76 -0
  113. data/rhoconnect-client/Java/RhoConnect/jni/src/RhoConnectJniClient.cpp +401 -0
  114. data/rhoconnect-client/Java/RhoConnect/jni/src/RhoConnectJniModel.cpp +332 -0
  115. data/rhoconnect-client/Java/RhoConnect/jni/src/RhoConnectJniNotify.cpp +223 -0
  116. data/rhoconnect-client/Java/RhoConnect/jni/src/RhoConnectUtil.cpp +82 -0
  117. data/rhoconnect-client/Java/RhoConnect/jni/src/RhodesApp.cpp +114 -0
  118. data/rhoconnect-client/Java/RhoConnect/src/com/rhomobile/rhoconnect/RhoConnectClient.java +108 -0
  119. data/rhoconnect-client/Java/RhoConnect/src/com/rhomobile/rhoconnect/RhoConnectNotify.java +78 -0
  120. data/rhoconnect-client/Java/RhoConnect/src/com/rhomobile/rhoconnect/RhoConnectObjectNotify.java +71 -0
  121. data/rhoconnect-client/Java/RhoConnect/src/com/rhomobile/rhoconnect/RhomModel.java +195 -0
  122. data/rhoconnect-client/JavaScript/.classpath +10 -0
  123. data/rhoconnect-client/JavaScript/.gitignore +4 -0
  124. data/rhoconnect-client/JavaScript/.project +17 -0
  125. data/rhoconnect-client/JavaScript/README.textile +1 -0
  126. data/rhoconnect-client/JavaScript/build.xml +185 -0
  127. data/rhoconnect-client/JavaScript/doc/fsm-sample.js +44 -0
  128. data/rhoconnect-client/JavaScript/doc/fsm-sample.png +0 -0
  129. data/rhoconnect-client/JavaScript/src/RhoSyncJS.gwt.xml +21 -0
  130. data/rhoconnect-client/JavaScript/stubs/RhoSyncStubsJS.gwt.xml +21 -0
  131. data/rhoconnect-client/JavaScript/stubs/com/rho/Capabilities.java +7 -0
  132. data/rhoconnect-client/JavaScript/stubs/com/rho/IRhoRubyHelper.java +7 -0
  133. data/rhoconnect-client/JavaScript/stubs/com/rho/Mutex.java +5 -0
  134. data/rhoconnect-client/JavaScript/stubs/com/rho/RhoAppAdapter.java +39 -0
  135. data/rhoconnect-client/JavaScript/stubs/com/rho/RhoClassFactory.java +29 -0
  136. data/rhoconnect-client/JavaScript/stubs/com/rho/RhoConf.java +100 -0
  137. data/rhoconnect-client/JavaScript/stubs/com/rho/RhoEmptyLogger.java +7 -0
  138. data/rhoconnect-client/JavaScript/stubs/com/rho/RhoEmptyProfiler.java +5 -0
  139. data/rhoconnect-client/JavaScript/stubs/com/rho/RhoLogger.java +32 -0
  140. data/rhoconnect-client/JavaScript/stubs/com/rho/RhoProfiler.java +27 -0
  141. data/rhoconnect-client/JavaScript/stubs/com/rho/RhodesApp.java +25 -0
  142. data/rhoconnect-client/JavaScript/stubs/com/rho/TimeInterval.java +22 -0
  143. data/rhoconnect-client/JavaScript/stubs/com/rho/Tokenizer.java +23 -0
  144. data/rhoconnect-client/JavaScript/stubs/com/rho/db/DBAdapter.java +174 -0
  145. data/rhoconnect-client/JavaScript/stubs/com/rho/db/DBAttrManager.java +15 -0
  146. data/rhoconnect-client/JavaScript/stubs/com/rho/db/DBException.java +5 -0
  147. data/rhoconnect-client/JavaScript/stubs/com/rho/db/IDBResult.java +27 -0
  148. data/rhoconnect-client/JavaScript/stubs/com/rho/file/IFileAccess.java +7 -0
  149. data/rhoconnect-client/JavaScript/stubs/com/rho/file/SimpleFile.java +15 -0
  150. data/rhoconnect-client/JavaScript/stubs/com/rho/net/IHttpConnection.java +22 -0
  151. data/rhoconnect-client/JavaScript/stubs/com/rho/net/NetRequest.java +324 -0
  152. data/rhoconnect-client/JavaScript/stubs/com/rho/net/NetResponse.java +51 -0
  153. data/rhoconnect-client/JavaScript/stubs/com/rho/net/URI.java +64 -0
  154. data/rhoconnect-client/JavaScript/stubs/com/rho/sync/ClientRegister.java +15 -0
  155. data/rhoconnect-client/JavaScript/stubs/com/rho/sync/JSONArrayIterator.java +37 -0
  156. data/rhoconnect-client/JavaScript/stubs/com/rho/sync/JSONEntry.java +48 -0
  157. data/rhoconnect-client/JavaScript/stubs/com/rho/sync/JSONStructIterator.java +41 -0
  158. data/rhoconnect-client/JavaScript/stubs/com/rho/sync/SyncNotify.java +98 -0
  159. data/rhoconnect-client/JavaScript/stubs/com/rho/sync/SyncThread.java +92 -0
  160. data/rhoconnect-client/JavaScript/war/WEB-INF/lib/gwt-servlet-deps.jar +0 -0
  161. data/rhoconnect-client/JavaScript/war/WEB-INF/lib/gwt-servlet.jar +0 -0
  162. data/rhoconnect-client/JavaScript/war/js/fsm-sample.js +54 -0
  163. data/rhoconnect-client/JavaScript/war/js/rhosync-api.js +237 -0
  164. data/rhoconnect-client/JavaScript/war/js/rhosync-fsm.js +307 -0
  165. data/rhoconnect-client/JavaScript/war/rhosyncjs/4C71D69C9BBC9E6F05C6BA49B01BCBC1.cache.html +3122 -0
  166. data/rhoconnect-client/JavaScript/war/rhosyncjs/5146F4FFF34511C8BB2661E920B49E3A.cache.html +3254 -0
  167. data/rhoconnect-client/JavaScript/war/rhosyncjs/5248C67481D9D27AD0703D15CDBD2A1C.cache.html +3147 -0
  168. data/rhoconnect-client/JavaScript/war/rhosyncjs/EE1DC2692C9C32367B53A39E2358AF23.cache.html +3195 -0
  169. data/rhoconnect-client/JavaScript/war/rhosyncjs/clear.cache.gif +0 -0
  170. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/corner.png +0 -0
  171. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/corner_ie6.png +0 -0
  172. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/hborder.png +0 -0
  173. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/hborder_ie6.png +0 -0
  174. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/corner_dialog_topleft.png +0 -0
  175. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/corner_dialog_topright.png +0 -0
  176. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/hborder_blue_shadow.png +0 -0
  177. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/hborder_gray_shadow.png +0 -0
  178. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/vborder_blue_shadow.png +0 -0
  179. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/vborder_gray_shadow.png +0 -0
  180. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/splitPanelThumb.png +0 -0
  181. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/vborder.png +0 -0
  182. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/vborder_ie6.png +0 -0
  183. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/standard.css +1144 -0
  184. data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/standard_rtl.css +1145 -0
  185. data/rhoconnect-client/JavaScript/war/rhosyncjs/hosted.html +350 -0
  186. data/rhoconnect-client/JavaScript/war/rhosyncjs/rhosyncjs.nocache.js +314 -0
  187. data/rhoconnect-client/JavaScript/war/test/SpecRunner.html +35 -0
  188. data/rhoconnect-client/JavaScript/war/test/dbtest.html +38 -0
  189. data/rhoconnect-client/JavaScript/war/test/lib/jasmine-1.0.1/MIT.LICENSE +20 -0
  190. data/rhoconnect-client/JavaScript/war/test/lib/jasmine-1.0.1/jasmine-html.js +188 -0
  191. data/rhoconnect-client/JavaScript/war/test/lib/jasmine-1.0.1/jasmine.css +166 -0
  192. data/rhoconnect-client/JavaScript/war/test/lib/jasmine-1.0.1/jasmine.js +2421 -0
  193. data/rhoconnect-client/JavaScript/war/test/spec/SpecHelper.js +7 -0
  194. data/rhoconnect-client/JavaScript/war/test/spec/SyncApiSpec.js +573 -0
  195. data/rhoconnect-client/JavaScript/war/test/spec/samples/PlayerSpec.js +58 -0
  196. data/rhoconnect-client/JavaScript/war/test/worker-test.js +17 -0
  197. data/rhoconnect-client/LICENSE +41 -0
  198. data/rhoconnect-client/ObjectiveC/RhoConnectClient.h +118 -0
  199. data/rhoconnect-client/ObjectiveC/RhoConnectClient.m +641 -0
  200. data/rhoconnect-client/ObjectiveC/RhoConnectClient.xcodeproj/project.pbxproj +1434 -0
  201. data/rhoconnect-client/ObjectiveC/RhoConnectNotify.h +83 -0
  202. data/rhoconnect-client/ObjectiveC/RhoConnectNotify.m +181 -0
  203. data/rhoconnect-client/ObjectiveC/RhoConnectObjectNotify.h +65 -0
  204. data/rhoconnect-client/ObjectiveC/RhoConnectObjectNotify.m +73 -0
  205. data/rhoconnect-client/ObjectiveC/RhomModel.h +101 -0
  206. data/rhoconnect-client/ObjectiveC/RhomModel.m +320 -0
  207. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/MainWindow.xib +198 -0
  208. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTest-Info.plist +30 -0
  209. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTest.xcodeproj/project.pbxproj +373 -0
  210. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTestAppDelegate.h +58 -0
  211. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTestAppDelegate.m +84 -0
  212. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTest_Prefix.pch +8 -0
  213. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/invalid_import_db.zip +0 -0
  214. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/main.m +1096 -0
  215. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/test.png +0 -0
  216. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/test2.png +0 -0
  217. data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/valid_import_db.zip +0 -0
  218. data/rhoconnect-client/ObjectiveC/Tests/ptests/Classes/ptestsAppDelegate.h +62 -0
  219. data/rhoconnect-client/ObjectiveC/Tests/ptests/Classes/ptestsAppDelegate.m +35 -0
  220. data/rhoconnect-client/ObjectiveC/Tests/ptests/Classes/ptestsViewController.h +78 -0
  221. data/rhoconnect-client/ObjectiveC/Tests/ptests/Classes/ptestsViewController.m +549 -0
  222. data/rhoconnect-client/ObjectiveC/Tests/ptests/MainWindow.xib +227 -0
  223. data/rhoconnect-client/ObjectiveC/Tests/ptests/main.m +17 -0
  224. data/rhoconnect-client/ObjectiveC/Tests/ptests/ptests-Info.plist +30 -0
  225. data/rhoconnect-client/ObjectiveC/Tests/ptests/ptests.xcodeproj/project.pbxproj +363 -0
  226. data/rhoconnect-client/ObjectiveC/Tests/ptests/ptestsViewController.xib +641 -0
  227. data/rhoconnect-client/ObjectiveC/Tests/ptests/ptests_Prefix.pch +8 -0
  228. data/rhoconnect-client/README.textile +23 -0
  229. data/rhoconnect-client/Rakefile +20 -0
  230. data/rhoconnect-client/Samples/Java/android_store/.classpath +8 -0
  231. data/rhoconnect-client/Samples/Java/android_store/.project +33 -0
  232. data/rhoconnect-client/Samples/Java/android_store/AndroidManifest.xml +24 -0
  233. data/rhoconnect-client/Samples/Java/android_store/assets/apps/rhoconfig.txt +19 -0
  234. data/rhoconnect-client/Samples/Java/android_store/assets/apps/rhoconfig.txt.timestamp +1 -0
  235. data/rhoconnect-client/Samples/Java/android_store/assets/db/syncdb.schema +44 -0
  236. data/rhoconnect-client/Samples/Java/android_store/assets/db/syncdb.triggers +10 -0
  237. data/rhoconnect-client/Samples/Java/android_store/assets/db/syncdb_java.triggers +21 -0
  238. data/rhoconnect-client/Samples/Java/android_store/assets/rho.dat +8 -0
  239. data/rhoconnect-client/Samples/Java/android_store/default.properties +11 -0
  240. data/rhoconnect-client/Samples/Java/android_store/project.properties +14 -0
  241. data/rhoconnect-client/Samples/Java/android_store/res/drawable-hdpi/icon.png +0 -0
  242. data/rhoconnect-client/Samples/Java/android_store/res/drawable-ldpi/icon.png +0 -0
  243. data/rhoconnect-client/Samples/Java/android_store/res/drawable-mdpi/icon.png +0 -0
  244. data/rhoconnect-client/Samples/Java/android_store/res/layout/main.xml +12 -0
  245. data/rhoconnect-client/Samples/Java/android_store/res/values/strings.xml +5 -0
  246. data/rhoconnect-client/Samples/Java/android_store/rhoimpl.jar +0 -0
  247. data/rhoconnect-client/Samples/Java/android_store/src/com/rhomobile/android_store/StoreActivity.java +68 -0
  248. data/rhoconnect-client/Samples/Java/android_store/src/com/rhomobile/android_store/StoreApplication.java +15 -0
  249. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/LoginViewController.h +70 -0
  250. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/LoginViewController.m +94 -0
  251. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/RhoConnectEngine.h +82 -0
  252. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/RhoConnectEngine.m +119 -0
  253. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/RootViewController.h +63 -0
  254. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/RootViewController.m +314 -0
  255. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/WaitLoginController.h +65 -0
  256. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/WaitLoginController.m +110 -0
  257. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/storeAppDelegate.h +61 -0
  258. data/rhoconnect-client/Samples/ObjectiveC/store/Classes/storeAppDelegate.m +171 -0
  259. data/rhoconnect-client/Samples/ObjectiveC/store/LoginViewController.xib +779 -0
  260. data/rhoconnect-client/Samples/ObjectiveC/store/MainWindow.xib +580 -0
  261. data/rhoconnect-client/Samples/ObjectiveC/store/RootViewController.xib +384 -0
  262. data/rhoconnect-client/Samples/ObjectiveC/store/WaitLoginController.xib +557 -0
  263. data/rhoconnect-client/Samples/ObjectiveC/store/icon.png +0 -0
  264. data/rhoconnect-client/Samples/ObjectiveC/store/main.m +22 -0
  265. data/rhoconnect-client/Samples/ObjectiveC/store/store-Info.plist +30 -0
  266. data/rhoconnect-client/Samples/ObjectiveC/store/store.xcodeproj/project.pbxproj +367 -0
  267. data/rhoconnect-client/Samples/ObjectiveC/store/store_Prefix.pch +14 -0
  268. data/rhoconnect-client/build.yml +3 -0
  269. data/rhoconnect-client/version +1 -0
  270. metadata +314 -0
@@ -0,0 +1,350 @@
1
+ <html>
2
+ <head><script>
3
+ var $wnd = parent;
4
+ var $doc = $wnd.document;
5
+ var $moduleName, $moduleBase, $entry
6
+ ,$stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null
7
+ ,$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;
8
+ // Lightweight metrics
9
+ if ($stats) {
10
+ var moduleFuncName = location.search.substr(1);
11
+ var moduleFunc = $wnd[moduleFuncName];
12
+ var moduleName = moduleFunc ? moduleFunc.moduleName : "unknown";
13
+ $stats({moduleName:moduleName,sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});
14
+ }
15
+ var $hostedHtmlVersion="2.1";
16
+
17
+ var gwtOnLoad;
18
+ var $hosted = "localhost:9997";
19
+
20
+ function loadIframe(url) {
21
+ var topDoc = window.top.document;
22
+
23
+ // create an iframe
24
+ var iframeDiv = topDoc.createElement("div");
25
+ iframeDiv.innerHTML = "<iframe scrolling=no frameborder=0 src='" + url + "'>";
26
+ var iframe = iframeDiv.firstChild;
27
+
28
+ // mess with the iframe style a little
29
+ var iframeStyle = iframe.style;
30
+ iframeStyle.position = "absolute";
31
+ iframeStyle.borderWidth = "0";
32
+ iframeStyle.left = "0";
33
+ iframeStyle.top = "0";
34
+ iframeStyle.width = "100%";
35
+ iframeStyle.backgroundColor = "#ffffff";
36
+ iframeStyle.zIndex = "1";
37
+ iframeStyle.height = "100%";
38
+
39
+ // update the top window's document's body's style
40
+ var hostBodyStyle = window.top.document.body.style;
41
+ hostBodyStyle.margin = "0";
42
+ hostBodyStyle.height = iframeStyle.height;
43
+ hostBodyStyle.overflow = "hidden";
44
+
45
+ // insert the iframe
46
+ topDoc.body.insertBefore(iframe, topDoc.body.firstChild);
47
+ }
48
+
49
+ var ua = navigator.userAgent.toLowerCase();
50
+ if (ua.indexOf("gecko") != -1) {
51
+ // install eval wrapper on FF to avoid EvalError problem
52
+ var __eval = window.eval;
53
+ window.eval = function(s) {
54
+ return __eval(s);
55
+ }
56
+ }
57
+ if (ua.indexOf("chrome") != -1) {
58
+ // work around __gwt_ObjectId appearing in JS objects
59
+ var hop = Object.prototype.hasOwnProperty;
60
+ Object.prototype.hasOwnProperty = function(prop) {
61
+ return prop != "__gwt_ObjectId" && hop.call(this, prop);
62
+ };
63
+ // do the same in our parent as well -- see issue 4486
64
+ // NOTE: this will have to be changed when we support non-iframe-based DevMode
65
+ var hop2 = parent.Object.prototype.hasOwnProperty;
66
+ parent.Object.prototype.hasOwnProperty = function(prop) {
67
+ return prop != "__gwt_ObjectId" && hop2.call(this, prop);
68
+ };
69
+ }
70
+
71
+ // wrapper to call JS methods, which we need both to be able to supply a
72
+ // different this for method lookup and to get the exception back
73
+ function __gwt_jsInvoke(thisObj, methodName) {
74
+ try {
75
+ var args = Array.prototype.slice.call(arguments, 2);
76
+ return [0, window[methodName].apply(thisObj, args)];
77
+ } catch (e) {
78
+ return [1, e];
79
+ }
80
+ }
81
+
82
+ var __gwt_javaInvokes = [];
83
+ function __gwt_makeJavaInvoke(argCount) {
84
+ return __gwt_javaInvokes[argCount] || __gwt_doMakeJavaInvoke(argCount);
85
+ }
86
+
87
+ function __gwt_doMakeJavaInvoke(argCount) {
88
+ // IE6 won't eval() anonymous functions except as r-values
89
+ var argList = "";
90
+ for (var i = 0; i < argCount; i++) {
91
+ argList += ",p" + i;
92
+ }
93
+ var argListNoComma = argList.substring(1);
94
+
95
+ return eval(
96
+ "__gwt_javaInvokes[" + argCount + "] =\n" +
97
+ " function(thisObj, dispId" + argList + ") {\n" +
98
+ " var result = __static(dispId, thisObj" + argList + ");\n" +
99
+ " if (result[0]) {\n" +
100
+ " throw result[1];\n" +
101
+ " } else {\n" +
102
+ " return result[1];\n" +
103
+ " }\n" +
104
+ " }\n"
105
+ );
106
+ }
107
+
108
+ /*
109
+ * This is used to create tear-offs of Java methods. Each function corresponds
110
+ * to exactly one dispId, and also embeds the argument count. We get the "this"
111
+ * value from the context in which the function is being executed.
112
+ * Function-object identity is preserved by caching in a sparse array.
113
+ */
114
+ var __gwt_tearOffs = [];
115
+ var __gwt_tearOffGenerators = [];
116
+ function __gwt_makeTearOff(proxy, dispId, argCount) {
117
+ return __gwt_tearOffs[dispId] || __gwt_doMakeTearOff(dispId, argCount);
118
+ }
119
+
120
+ function __gwt_doMakeTearOff(dispId, argCount) {
121
+ return __gwt_tearOffs[dispId] =
122
+ (__gwt_tearOffGenerators[argCount] || __gwt_doMakeTearOffGenerator(argCount))(dispId);
123
+ }
124
+
125
+ function __gwt_doMakeTearOffGenerator(argCount) {
126
+ // IE6 won't eval() anonymous functions except as r-values
127
+ var argList = "";
128
+ for (var i = 0; i < argCount; i++) {
129
+ argList += ",p" + i;
130
+ }
131
+ var argListNoComma = argList.substring(1);
132
+
133
+ return eval(
134
+ "__gwt_tearOffGenerators[" + argCount + "] =\n" +
135
+ " function(dispId) {\n" +
136
+ " return function(" + argListNoComma + ") {\n" +
137
+ " var result = __static(dispId, this" + argList + ");\n" +
138
+ " if (result[0]) {\n" +
139
+ " throw result[1];\n" +
140
+ " } else {\n" +
141
+ " return result[1];\n" +
142
+ " }\n" +
143
+ " }\n" +
144
+ " }\n"
145
+ );
146
+ }
147
+
148
+ function __gwt_makeResult(isException, result) {
149
+ return [isException, result];
150
+ }
151
+
152
+ function __gwt_disconnected() {
153
+ // Prevent double-invocation.
154
+ window.__gwt_disconnected = new Function();
155
+ // Do it in a timeout so we can be sure we have a clean stack.
156
+ window.setTimeout(__gwt_disconnected_impl, 1);
157
+ }
158
+
159
+ function __gwt_disconnected_impl() {
160
+ __gwt_displayGlassMessage('GWT Code Server Disconnected',
161
+ 'Most likely, you closed GWT Development Mode. Or, you might have lost '
162
+ + 'network connectivity. To fix this, try restarting GWT Development Mode and '
163
+ + '<a style="color: #FFFFFF; font-weight: bold;" href="javascript:location.reload()">'
164
+ + 'REFRESH</a> this page.');
165
+ }
166
+
167
+ // Note this method is also used by ModuleSpace.java
168
+ function __gwt_displayGlassMessage(summary, details) {
169
+ var topWin = window.top;
170
+ var topDoc = topWin.document;
171
+ var outer = topDoc.createElement("div");
172
+ // Do not insert whitespace or outer.firstChild will get a text node.
173
+ outer.innerHTML =
174
+ '<div style="position:absolute;z-index:2147483646;left:0px;top:0px;right:0px;bottom:0px;filter:alpha(opacity=75);opacity:0.75;background-color:#000000;"></div>' +
175
+ '<div style="position:absolute;z-index:2147483647;left:50px;top:50px;width:600px;color:#FFFFFF;font-family:verdana;">' +
176
+ '<div style="font-size:30px;font-weight:bold;">' + summary + '</div>' +
177
+ '<p style="font-size:15px;">' + details + '</p>' +
178
+ '</div>'
179
+ ;
180
+ topDoc.body.appendChild(outer);
181
+ var glass = outer.firstChild;
182
+ var glassStyle = glass.style;
183
+
184
+ // Scroll to the top and remove scrollbars.
185
+ topWin.scrollTo(0, 0);
186
+ if (topDoc.compatMode == "BackCompat") {
187
+ topDoc.body.style["overflow"] = "hidden";
188
+ } else {
189
+ topDoc.documentElement.style["overflow"] = "hidden";
190
+ }
191
+
192
+ // Steal focus.
193
+ glass.focus();
194
+
195
+ if ((navigator.userAgent.indexOf("MSIE") >= 0) && (topDoc.compatMode == "BackCompat")) {
196
+ // IE quirks mode doesn't support right/bottom, but does support this.
197
+ glassStyle.width = "125%";
198
+ glassStyle.height = "100%";
199
+ } else if (navigator.userAgent.indexOf("MSIE 6") >= 0) {
200
+ // IE6 doesn't have a real standards mode, so we have to use hacks.
201
+ glassStyle.width = "125%"; // Get past scroll bar area.
202
+ // Nasty CSS; onresize would be better but the outer window won't let us add a listener IE.
203
+ glassStyle.setExpression("height", "document.documentElement.clientHeight");
204
+ }
205
+
206
+ $doc.title = summary + " [" + $doc.title + "]";
207
+ }
208
+
209
+ function findPluginObject() {
210
+ try {
211
+ return document.getElementById('pluginObject');
212
+ } catch (e) {
213
+ return null;
214
+ }
215
+ }
216
+
217
+ function findPluginEmbed() {
218
+ try {
219
+ return document.getElementById('pluginEmbed')
220
+ } catch (e) {
221
+ return null;
222
+ }
223
+ }
224
+
225
+ function findPluginXPCOM() {
226
+ try {
227
+ return __gwt_HostedModePlugin;
228
+ } catch (e) {
229
+ return null;
230
+ }
231
+ }
232
+
233
+ gwtOnLoad = function(errFn, modName, modBase){
234
+ $moduleName = modName;
235
+ $moduleBase = modBase;
236
+
237
+ // Note that the order is important
238
+ var pluginFinders = [
239
+ findPluginXPCOM,
240
+ findPluginObject,
241
+ findPluginEmbed,
242
+ ];
243
+ var topWin = window.top;
244
+ var url = topWin.location.href;
245
+ if (!topWin.__gwt_SessionID) {
246
+ var ASCII_EXCLAMATION = 33;
247
+ var ASCII_TILDE = 126;
248
+ var chars = [];
249
+ for (var i = 0; i < 16; ++i) {
250
+ chars.push(Math.floor(ASCII_EXCLAMATION
251
+ + Math.random() * (ASCII_TILDE - ASCII_EXCLAMATION + 1)));
252
+ }
253
+ topWin.__gwt_SessionID = String.fromCharCode.apply(null, chars);
254
+ }
255
+ var plugin = null;
256
+ for (var i = 0; i < pluginFinders.length; ++i) {
257
+ try {
258
+ var maybePlugin = pluginFinders[i]();
259
+ if (maybePlugin != null && maybePlugin.init(window)) {
260
+ plugin = maybePlugin;
261
+ break;
262
+ }
263
+ } catch (e) {
264
+ }
265
+ }
266
+ if (!plugin) {
267
+ // try searching for a v1 plugin for backwards compatibility
268
+ var found = false;
269
+ for (var i = 0; i < pluginFinders.length; ++i) {
270
+ try {
271
+ plugin = pluginFinders[i]();
272
+ if (plugin != null && plugin.connect($hosted, $moduleName, window)) {
273
+ return;
274
+ }
275
+ } catch (e) {
276
+ }
277
+ }
278
+ loadIframe("http://gwt.google.com/missing-plugin");
279
+ } else {
280
+ if (plugin.connect(url, topWin.__gwt_SessionID, $hosted, $moduleName,
281
+ $hostedHtmlVersion)) {
282
+ window.onUnload = function() {
283
+ try {
284
+ // wrap in try/catch since plugins are not required to supply this
285
+ plugin.disconnect();
286
+ } catch (e) {
287
+ }
288
+ };
289
+ } else {
290
+ if (errFn) {
291
+ errFn(modName);
292
+ } else {
293
+ alert("Plugin failed to connect to hosted mode server at " + $hosted);
294
+ loadIframe("http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM");
295
+ }
296
+ }
297
+ }
298
+ }
299
+
300
+ window.onunload = function() {
301
+ };
302
+
303
+ // Lightweight metrics
304
+ window.fireOnModuleLoadStart = function(className) {
305
+ $stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'onModuleLoadStart', className:className});
306
+ };
307
+
308
+ window.__gwt_module_id = 0;
309
+ </script></head>
310
+ <body>
311
+ <font face='arial' size='-1'>This html file is for hosted mode support.</font>
312
+ <script><!--
313
+ // Lightweight metrics
314
+ $stats && $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date()).getTime(), type:'moduleEvalEnd'});
315
+
316
+ // OOPHM currently only supports IFrameLinker
317
+ var query = parent.location.search;
318
+ if (!findPluginXPCOM()) {
319
+ document.write('<embed id="pluginEmbed" type="application/x-gwt-hosted-mode" width="10" height="10">');
320
+ document.write('</embed>');
321
+ document.write('<object id="pluginObject" CLASSID="CLSID:1D6156B6-002B-49E7-B5CA-C138FB843B4E">');
322
+ document.write('</object>');
323
+ }
324
+
325
+ // look for the old query parameter if we don't find the new one
326
+ var idx = query.indexOf("gwt.codesvr=");
327
+ if (idx >= 0) {
328
+ idx += 12; // "gwt.codesvr=".length() == 12
329
+ } else {
330
+ idx = query.indexOf("gwt.hosted=");
331
+ if (idx >= 0) {
332
+ idx += 11; // "gwt.hosted=".length() == 11
333
+ }
334
+ }
335
+ if (idx >= 0) {
336
+ var amp = query.indexOf("&", idx);
337
+ if (amp >= 0) {
338
+ $hosted = query.substring(idx, amp);
339
+ } else {
340
+ $hosted = query.substring(idx);
341
+ }
342
+
343
+ // According to RFC 3986, some of this component's characters (e.g., ':')
344
+ // are reserved and *may* be escaped.
345
+ $hosted = decodeURIComponent($hosted);
346
+ }
347
+
348
+ query = window.location.search.substring(1);
349
+ if (query && $wnd[query]) setTimeout($wnd[query].onScriptLoad, 1);
350
+ --></script></body></html>
@@ -0,0 +1,314 @@
1
+ function rhosyncjs(){
2
+ var $intern_0 = '', $intern_34 = '" for "gwt:onLoadErrorFn"', $intern_32 = '" for "gwt:onPropertyErrorFn"', $intern_15 = '"><\/script>', $intern_17 = '#', $intern_58 = '.cache.html', $intern_19 = '/', $intern_52 = '4C71D69C9BBC9E6F05C6BA49B01BCBC1', $intern_54 = '5146F4FFF34511C8BB2661E920B49E3A', $intern_55 = '5248C67481D9D27AD0703D15CDBD2A1C', $intern_57 = ':', $intern_53 = ':1', $intern_26 = '::', $intern_66 = '<script defer="defer">rhosyncjs.onInjectionDone(\'rhosyncjs\')<\/script>', $intern_14 = '<script id="', $intern_29 = '=', $intern_18 = '?', $intern_31 = 'Bad handler "', $intern_65 = 'DOMContentLoaded', $intern_56 = 'EE1DC2692C9C32367B53A39E2358AF23', $intern_16 = 'SCRIPT', $intern_13 = '__gwt_marker_rhosyncjs', $intern_20 = 'base', $intern_10 = 'baseUrl', $intern_4 = 'begin', $intern_3 = 'bootstrap', $intern_22 = 'clear.cache.gif', $intern_28 = 'content', $intern_9 = 'end', $intern_46 = 'gecko', $intern_47 = 'gecko1_8', $intern_5 = 'gwt.codesvr=', $intern_6 = 'gwt.hosted=', $intern_7 = 'gwt.hybrid', $intern_59 = 'gwt/standard/standard.css', $intern_33 = 'gwt:onLoadErrorFn', $intern_30 = 'gwt:onPropertyErrorFn', $intern_27 = 'gwt:property', $intern_64 = 'head', $intern_50 = 'hosted.html?rhosyncjs', $intern_63 = 'href', $intern_45 = 'ie6', $intern_44 = 'ie8', $intern_35 = 'iframe', $intern_21 = 'img', $intern_36 = "javascript:''", $intern_60 = 'link', $intern_49 = 'loadExternalRefs', $intern_23 = 'meta', $intern_38 = 'moduleRequested', $intern_8 = 'moduleStartup', $intern_43 = 'msie', $intern_24 = 'name', $intern_40 = 'opera', $intern_37 = 'position:absolute;width:0;height:0;border:none', $intern_61 = 'rel', $intern_1 = 'rhosyncjs', $intern_12 = 'rhosyncjs.nocache.js', $intern_25 = 'rhosyncjs::', $intern_42 = 'safari', $intern_11 = 'script', $intern_51 = 'selectingPermutation', $intern_2 = 'startup', $intern_62 = 'stylesheet', $intern_48 = 'unknown', $intern_39 = 'user.agent', $intern_41 = 'webkit';
3
+ var $wnd = window, $doc = document, $stats = $wnd.__gwtStatsEvent?function(a){
4
+ return $wnd.__gwtStatsEvent(a);
5
+ }
6
+ :null, $sessionId = $wnd.__gwtStatsSessionId?$wnd.__gwtStatsSessionId:null, scriptsDone, loadDone, bodyDone, base = $intern_0, metaProps = {}, values = [], providers = [], answers = [], softPermutationId = 0, onLoadErrorFunc, propertyErrorFunc;
7
+ $stats && $stats({moduleName:$intern_1, sessionId:$sessionId, subSystem:$intern_2, evtGroup:$intern_3, millis:(new Date).getTime(), type:$intern_4});
8
+ if (!$wnd.__gwt_stylesLoaded) {
9
+ $wnd.__gwt_stylesLoaded = {};
10
+ }
11
+ if (!$wnd.__gwt_scriptsLoaded) {
12
+ $wnd.__gwt_scriptsLoaded = {};
13
+ }
14
+ function isHostedMode(){
15
+ var result = false;
16
+ try {
17
+ var query = $wnd.location.search;
18
+ return (query.indexOf($intern_5) != -1 || (query.indexOf($intern_6) != -1 || $wnd.external && $wnd.external.gwtOnLoad)) && query.indexOf($intern_7) == -1;
19
+ }
20
+ catch (e) {
21
+ }
22
+ isHostedMode = function(){
23
+ return result;
24
+ }
25
+ ;
26
+ return result;
27
+ }
28
+
29
+ function maybeStartModule(){
30
+ if (scriptsDone && loadDone) {
31
+ var iframe = $doc.getElementById($intern_1);
32
+ var frameWnd = iframe.contentWindow;
33
+ if (isHostedMode()) {
34
+ frameWnd.__gwt_getProperty = function(name){
35
+ return computePropValue(name);
36
+ }
37
+ ;
38
+ }
39
+ rhosyncjs = null;
40
+ frameWnd.gwtOnLoad(onLoadErrorFunc, $intern_1, base, softPermutationId);
41
+ $stats && $stats({moduleName:$intern_1, sessionId:$sessionId, subSystem:$intern_2, evtGroup:$intern_8, millis:(new Date).getTime(), type:$intern_9});
42
+ }
43
+ }
44
+
45
+ function computeScriptBase(){
46
+ if (metaProps[$intern_10]) {
47
+ base = metaProps[$intern_10];
48
+ return base;
49
+ }
50
+ var thisScript;
51
+ var scriptTags = $doc.getElementsByTagName($intern_11);
52
+ for (var i = 0; i < scriptTags.length; ++i) {
53
+ if (scriptTags[i].src.indexOf($intern_12) != -1) {
54
+ thisScript = scriptTags[i];
55
+ }
56
+ }
57
+ if (!thisScript) {
58
+ var markerId = $intern_13;
59
+ var markerScript;
60
+ $doc.write($intern_14 + markerId + $intern_15);
61
+ markerScript = $doc.getElementById(markerId);
62
+ thisScript = markerScript && markerScript.previousSibling;
63
+ while (thisScript && thisScript.tagName != $intern_16) {
64
+ thisScript = thisScript.previousSibling;
65
+ }
66
+ }
67
+ function getDirectoryOfFile(path){
68
+ var hashIndex = path.lastIndexOf($intern_17);
69
+ if (hashIndex == -1) {
70
+ hashIndex = path.length;
71
+ }
72
+ var queryIndex = path.indexOf($intern_18);
73
+ if (queryIndex == -1) {
74
+ queryIndex = path.length;
75
+ }
76
+ var slashIndex = path.lastIndexOf($intern_19, Math.min(queryIndex, hashIndex));
77
+ return slashIndex >= 0?path.substring(0, slashIndex + 1):$intern_0;
78
+ }
79
+
80
+ ;
81
+ if (thisScript && thisScript.src) {
82
+ base = getDirectoryOfFile(thisScript.src);
83
+ }
84
+ if (base == $intern_0) {
85
+ var baseElements = $doc.getElementsByTagName($intern_20);
86
+ if (baseElements.length > 0) {
87
+ base = baseElements[baseElements.length - 1].href;
88
+ }
89
+ else {
90
+ base = getDirectoryOfFile($doc.location.href);
91
+ }
92
+ }
93
+ else if (base.match(/^\w+:\/\//)) {
94
+ }
95
+ else {
96
+ var img = $doc.createElement($intern_21);
97
+ img.src = base + $intern_22;
98
+ base = getDirectoryOfFile(img.src);
99
+ }
100
+ if (markerScript) {
101
+ markerScript.parentNode.removeChild(markerScript);
102
+ }
103
+ return base;
104
+ }
105
+
106
+ function processMetas(){
107
+ var metas = document.getElementsByTagName($intern_23);
108
+ for (var i = 0, n = metas.length; i < n; ++i) {
109
+ var meta = metas[i], name = meta.getAttribute($intern_24), content;
110
+ if (name) {
111
+ name = name.replace($intern_25, $intern_0);
112
+ if (name.indexOf($intern_26) >= 0) {
113
+ continue;
114
+ }
115
+ if (name == $intern_27) {
116
+ content = meta.getAttribute($intern_28);
117
+ if (content) {
118
+ var value, eq = content.indexOf($intern_29);
119
+ if (eq >= 0) {
120
+ name = content.substring(0, eq);
121
+ value = content.substring(eq + 1);
122
+ }
123
+ else {
124
+ name = content;
125
+ value = $intern_0;
126
+ }
127
+ metaProps[name] = value;
128
+ }
129
+ }
130
+ else if (name == $intern_30) {
131
+ content = meta.getAttribute($intern_28);
132
+ if (content) {
133
+ try {
134
+ propertyErrorFunc = eval(content);
135
+ }
136
+ catch (e) {
137
+ alert($intern_31 + content + $intern_32);
138
+ }
139
+ }
140
+ }
141
+ else if (name == $intern_33) {
142
+ content = meta.getAttribute($intern_28);
143
+ if (content) {
144
+ try {
145
+ onLoadErrorFunc = eval(content);
146
+ }
147
+ catch (e) {
148
+ alert($intern_31 + content + $intern_34);
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+
156
+ function unflattenKeylistIntoAnswers(propValArray, value){
157
+ var answer = answers;
158
+ for (var i = 0, n = propValArray.length - 1; i < n; ++i) {
159
+ answer = answer[propValArray[i]] || (answer[propValArray[i]] = []);
160
+ }
161
+ answer[propValArray[n]] = value;
162
+ }
163
+
164
+ function computePropValue(propName){
165
+ var value = providers[propName](), allowedValuesMap = values[propName];
166
+ if (value in allowedValuesMap) {
167
+ return value;
168
+ }
169
+ var allowedValuesList = [];
170
+ for (var k in allowedValuesMap) {
171
+ allowedValuesList[allowedValuesMap[k]] = k;
172
+ }
173
+ if (propertyErrorFunc) {
174
+ propertyErrorFunc(propName, allowedValuesList, value);
175
+ }
176
+ throw null;
177
+ }
178
+
179
+ var frameInjected;
180
+ function maybeInjectFrame(){
181
+ if (!frameInjected) {
182
+ frameInjected = true;
183
+ var iframe = $doc.createElement($intern_35);
184
+ iframe.src = $intern_36;
185
+ iframe.id = $intern_1;
186
+ iframe.style.cssText = $intern_37;
187
+ iframe.tabIndex = -1;
188
+ $doc.body.appendChild(iframe);
189
+ $stats && $stats({moduleName:$intern_1, sessionId:$sessionId, subSystem:$intern_2, evtGroup:$intern_8, millis:(new Date).getTime(), type:$intern_38});
190
+ iframe.contentWindow.location.replace(base + initialHtml);
191
+ }
192
+ }
193
+
194
+ providers[$intern_39] = function(){
195
+ var ua = navigator.userAgent.toLowerCase();
196
+ var makeVersion = function(result){
197
+ return parseInt(result[1]) * 1000 + parseInt(result[2]);
198
+ }
199
+ ;
200
+ if (ua.indexOf($intern_40) != -1) {
201
+ return $intern_40;
202
+ }
203
+ else if (ua.indexOf($intern_41) != -1) {
204
+ return $intern_42;
205
+ }
206
+ else if (ua.indexOf($intern_43) != -1) {
207
+ if (document.documentMode >= 8) {
208
+ return $intern_44;
209
+ }
210
+ else {
211
+ var result = /msie ([0-9]+)\.([0-9]+)/.exec(ua);
212
+ if (result && result.length == 3) {
213
+ var v = makeVersion(result);
214
+ if (v >= 6000) {
215
+ return $intern_45;
216
+ }
217
+ }
218
+ }
219
+ }
220
+ else if (ua.indexOf($intern_46) != -1) {
221
+ return $intern_47;
222
+ }
223
+ return $intern_48;
224
+ }
225
+ ;
226
+ values[$intern_39] = {gecko1_8:0, ie6:1, ie8:2, opera:3, safari:4};
227
+ rhosyncjs.onScriptLoad = function(){
228
+ if (frameInjected) {
229
+ loadDone = true;
230
+ maybeStartModule();
231
+ }
232
+ }
233
+ ;
234
+ rhosyncjs.onInjectionDone = function(){
235
+ scriptsDone = true;
236
+ $stats && $stats({moduleName:$intern_1, sessionId:$sessionId, subSystem:$intern_2, evtGroup:$intern_49, millis:(new Date).getTime(), type:$intern_9});
237
+ maybeStartModule();
238
+ }
239
+ ;
240
+ processMetas();
241
+ computeScriptBase();
242
+ var strongName;
243
+ var initialHtml;
244
+ if (isHostedMode()) {
245
+ if ($wnd.external && ($wnd.external.initModule && $wnd.external.initModule($intern_1))) {
246
+ $wnd.location.reload();
247
+ return;
248
+ }
249
+ initialHtml = $intern_50;
250
+ strongName = $intern_0;
251
+ }
252
+ $stats && $stats({moduleName:$intern_1, sessionId:$sessionId, subSystem:$intern_2, evtGroup:$intern_3, millis:(new Date).getTime(), type:$intern_51});
253
+ if (!isHostedMode()) {
254
+ try {
255
+ unflattenKeylistIntoAnswers([$intern_45], $intern_52);
256
+ unflattenKeylistIntoAnswers([$intern_44], $intern_52);
257
+ unflattenKeylistIntoAnswers([$intern_45], $intern_52 + $intern_53);
258
+ unflattenKeylistIntoAnswers([$intern_44], $intern_52 + $intern_53);
259
+ unflattenKeylistIntoAnswers([$intern_42], $intern_54);
260
+ unflattenKeylistIntoAnswers([$intern_47], $intern_55);
261
+ unflattenKeylistIntoAnswers([$intern_40], $intern_56);
262
+ strongName = answers[computePropValue($intern_39)];
263
+ var idx = strongName.indexOf($intern_57);
264
+ if (idx != -1) {
265
+ softPermutationId = Number(strongName.substring(idx + 1));
266
+ strongName = strongName.substring(0, idx);
267
+ }
268
+ initialHtml = strongName + $intern_58;
269
+ }
270
+ catch (e) {
271
+ return;
272
+ }
273
+ }
274
+ var onBodyDoneTimerId;
275
+ function onBodyDone(){
276
+ if (!bodyDone) {
277
+ bodyDone = true;
278
+ if (!__gwt_stylesLoaded[$intern_59]) {
279
+ var l = $doc.createElement($intern_60);
280
+ __gwt_stylesLoaded[$intern_59] = l;
281
+ l.setAttribute($intern_61, $intern_62);
282
+ l.setAttribute($intern_63, base + $intern_59);
283
+ $doc.getElementsByTagName($intern_64)[0].appendChild(l);
284
+ }
285
+ maybeStartModule();
286
+ if ($doc.removeEventListener) {
287
+ $doc.removeEventListener($intern_65, onBodyDone, false);
288
+ }
289
+ if (onBodyDoneTimerId) {
290
+ clearInterval(onBodyDoneTimerId);
291
+ }
292
+ }
293
+ }
294
+
295
+ if ($doc.addEventListener) {
296
+ $doc.addEventListener($intern_65, function(){
297
+ maybeInjectFrame();
298
+ onBodyDone();
299
+ }
300
+ , false);
301
+ }
302
+ var onBodyDoneTimerId = setInterval(function(){
303
+ if (/loaded|complete/.test($doc.readyState)) {
304
+ maybeInjectFrame();
305
+ onBodyDone();
306
+ }
307
+ }
308
+ , 50);
309
+ $stats && $stats({moduleName:$intern_1, sessionId:$sessionId, subSystem:$intern_2, evtGroup:$intern_3, millis:(new Date).getTime(), type:$intern_9});
310
+ $stats && $stats({moduleName:$intern_1, sessionId:$sessionId, subSystem:$intern_2, evtGroup:$intern_49, millis:(new Date).getTime(), type:$intern_4});
311
+ $doc.write($intern_66);
312
+ }
313
+
314
+ rhosyncjs();