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,15 @@
1
+ <?xml version="1.0" encoding="windows-1251"?>
2
+ <VisualStudioPropertySheet
3
+ ProjectType="Visual C++"
4
+ Version="8.00"
5
+ Name="emmlapi"
6
+ >
7
+ <UserMacro
8
+ Name="RHO_ROOT_"
9
+ Value="..\..\..\..\..\..\rhodes"
10
+ />
11
+ <UserMacro
12
+ Name="TEMP_FILES_DIR_"
13
+ Value="$(RHO_ROOT)\platform\wm\bin\$(PlatformName)\extensions\$(ProjectName)"
14
+ />
15
+ </VisualStudioPropertySheet>
@@ -0,0 +1,40 @@
1
+ #include <common/RhodesApp.h>
2
+ #include <logging/RhoLogConf.h>
3
+
4
+ #include <stdlib.h>
5
+ #include <windows.h>
6
+ #include <commctrl.h>
7
+
8
+ #include <RhoNativeViewManager.h>
9
+ #include "rubyext/WebView.h"
10
+
11
+ #include "ruby/ext/rho/rhoruby.h"
12
+
13
+ #include "rhoconnect-client_wm.h"
14
+
15
+
16
+ extern "C" VALUE rhoconnect-client_native_process_string(const char* str) {
17
+
18
+ const char block[] = "<WM>";
19
+ char* buf = NULL;
20
+ buf = (char*)malloc(strlen(str) + strlen(block)*2 + 1);
21
+
22
+ strcpy(buf, block);
23
+ strcat(buf, str);
24
+ strcat(buf, block);
25
+
26
+ VALUE result = rho_ruby_create_string(buf);
27
+
28
+ free(buf);
29
+
30
+ return result;
31
+ }
32
+
33
+
34
+ extern "C" int rhoconnect-client_calc_summ(int x, int y) {
35
+ return (x+y);
36
+ }
37
+
38
+
39
+
40
+
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ImportGroup Label="PropertySheets">
4
+ </ImportGroup>
5
+ <PropertyGroup Label="UserMacros">
6
+ <RHO_ROOT_DEMO>..\..\..\..\..\..\rhodes</RHO_ROOT_DEMO>
7
+ <TEMP_FILES_DIR_DEMO>$(RHO_ROOT)\platform\wp8\bin\$(Platform)\extensions\$(ProjectName)</TEMP_FILES_DIR_DEMO>
8
+ </PropertyGroup>
9
+ <PropertyGroup>
10
+ <_ProjectFileVersion>11.0.51106.1</_ProjectFileVersion>
11
+ <_PropertySheetDisplayName>emmlapi</_PropertySheetDisplayName>
12
+ </PropertyGroup>
13
+ <ItemDefinitionGroup />
14
+ <ItemGroup>
15
+ <BuildMacro Include="RHO_ROOT_DEMO">
16
+ <Value>$(RHO_ROOT)</Value>
17
+ </BuildMacro>
18
+ <BuildMacro Include="TEMP_FILES_DIR_DEMO">
19
+ <Value>$(TEMP_FILES_DIR)</Value>
20
+ </BuildMacro>
21
+ </ItemGroup>
22
+ </Project>
@@ -0,0 +1,32 @@
1
+ 
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio 2012
4
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Rhoconnect-client", "Rhoconnect-client.vcxproj", "{0A785FEF-1B00-4CD9-B261-A83C6FFE7199}"
5
+ EndProject
6
+ Global
7
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
8
+ Debug|MC3000c50b (ARMV4I) = Debug|MC3000c50b (ARMV4I)
9
+ Debug|Win32 = Debug|Win32
10
+ Debug|Windows Mobile 6 Professional SDK (ARMV4I) = Debug|Windows Mobile 6 Professional SDK (ARMV4I)
11
+ Debug|Windows Mobile 6.5.3 Professional DTK (ARMV4I) = Debug|Windows Mobile 6.5.3 Professional DTK (ARMV4I)
12
+ Release|MC3000c50b (ARMV4I) = Release|MC3000c50b (ARMV4I)
13
+ Release|Win32 = Release|Win32
14
+ Release|Windows Mobile 6 Professional SDK (ARMV4I) = Release|Windows Mobile 6 Professional SDK (ARMV4I)
15
+ Release|Windows Mobile 6.5.3 Professional DTK (ARMV4I) = Release|Windows Mobile 6.5.3 Professional DTK (ARMV4I)
16
+ EndGlobalSection
17
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
18
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Debug|MC3000c50b (ARMV4I).ActiveCfg = Debug|Win32
19
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Debug|Win32.ActiveCfg = Debug|Win32
20
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Debug|Win32.Build.0 = Debug|Win32
21
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Debug|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Debug|Win32
22
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Debug|Windows Mobile 6.5.3 Professional DTK (ARMV4I).ActiveCfg = Debug|Win32
23
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Release|MC3000c50b (ARMV4I).ActiveCfg = Release|Win32
24
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Release|Win32.ActiveCfg = Release|Win32
25
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Release|Win32.Build.0 = Release|Win32
26
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Release|Windows Mobile 6 Professional SDK (ARMV4I).ActiveCfg = Release|Win32
27
+ {0A785FEF-1B00-4CD9-B261-A83C6FFE7199}.Release|Windows Mobile 6.5.3 Professional DTK (ARMV4I).ActiveCfg = Release|Win32
28
+ EndGlobalSection
29
+ GlobalSection(SolutionProperties) = preSolution
30
+ HideSolutionNode = FALSE
31
+ EndGlobalSection
32
+ EndGlobal
@@ -0,0 +1,220 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|ARM">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>ARM</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Debug|Win32">
9
+ <Configuration>Debug</Configuration>
10
+ <Platform>Win32</Platform>
11
+ </ProjectConfiguration>
12
+ <ProjectConfiguration Include="Release|ARM">
13
+ <Configuration>Release</Configuration>
14
+ <Platform>ARM</Platform>
15
+ </ProjectConfiguration>
16
+ <ProjectConfiguration Include="Release|Win32">
17
+ <Configuration>Release</Configuration>
18
+ <Platform>Win32</Platform>
19
+ </ProjectConfiguration>
20
+ </ItemGroup>
21
+ <PropertyGroup Label="Globals">
22
+ <ProjectGuid>{12F7458F-04CD-445E-9232-C93A506E9B50}</ProjectGuid>
23
+ <Keyword>Win32Proj</Keyword>
24
+ <DefaultLanguage>en-US</DefaultLanguage>
25
+ <VCTargetsPath Condition="'$(VCTargetsPath11)' != '' and '$(VSVersion)' == '' and '$(VisualStudioVersion)' == ''">$(VCTargetsPath11)</VCTargetsPath>
26
+ <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
27
+ <TargetPlatformIdentifier>Windows Phone</TargetPlatformIdentifier>
28
+ <TargetPlatformVersion>8.0</TargetPlatformVersion>
29
+ </PropertyGroup>
30
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
31
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
32
+ <ConfigurationType>StaticLibrary</ConfigurationType>
33
+ <PlatformToolset>v110_wp80</PlatformToolset>
34
+ <CharacterSet>Unicode</CharacterSet>
35
+ </PropertyGroup>
36
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
37
+ <ConfigurationType>StaticLibrary</ConfigurationType>
38
+ <PlatformToolset>v110_wp80</PlatformToolset>
39
+ <CharacterSet>Unicode</CharacterSet>
40
+ </PropertyGroup>
41
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
42
+ <ConfigurationType>StaticLibrary</ConfigurationType>
43
+ <PlatformToolset>v110_wp80</PlatformToolset>
44
+ <CharacterSet>Unicode</CharacterSet>
45
+ </PropertyGroup>
46
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
47
+ <ConfigurationType>StaticLibrary</ConfigurationType>
48
+ <PlatformToolset>v110_wp80</PlatformToolset>
49
+ <CharacterSet>Unicode</CharacterSet>
50
+ </PropertyGroup>
51
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
52
+ <ImportGroup Label="ExtensionSettings">
53
+ </ImportGroup>
54
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
55
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
56
+ <Import Project="Rhoconnect-client.props" />
57
+ </ImportGroup>
58
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="PropertySheets">
59
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
60
+ <Import Project="Rhoconnect-client.props" />
61
+ </ImportGroup>
62
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
63
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64
+ <Import Project="Rhoconnect-client.props" />
65
+ </ImportGroup>
66
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="PropertySheets">
67
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68
+ <Import Project="Rhoconnect-client.props" />
69
+ </ImportGroup>
70
+ <PropertyGroup Label="UserMacros" />
71
+ <PropertyGroup>
72
+ <_ProjectFileVersion>11.0.51106.1</_ProjectFileVersion>
73
+ </PropertyGroup>
74
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
75
+ <IncludePath>$(ProgramFiles)\Windows Phone Kits\8.0\Include;$(IncludePath)</IncludePath>
76
+ <OutDir>$(RHO_ROOT)\Platform\wp8\Bin\$(Platform)\rhoruntime\$(Configuration)\</OutDir>
77
+ <IntDir>$(TEMP_FILES_DIR)\$(Configuration)\</IntDir>
78
+ </PropertyGroup>
79
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
80
+ <IncludePath>$(ProgramFiles)\Windows Phone Kits\8.0\Include;$(IncludePath)</IncludePath>
81
+ <OutDir>$(RHO_ROOT)\Platform\wp8\Bin\$(Platform)\rhoruntime\$(Configuration)\</OutDir>
82
+ <IntDir>$(TEMP_FILES_DIR)\$(Configuration)\</IntDir>
83
+ </PropertyGroup>
84
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
85
+ <IncludePath>$(ProgramFiles)\Windows Phone Kits\8.0\Include;$(IncludePath)</IncludePath>
86
+ <OutDir>$(RHO_ROOT)\Platform\wp8\Bin\$(Platform)\rhoruntime\$(Configuration)\</OutDir>
87
+ <IntDir>$(TEMP_FILES_DIR)\$(Configuration)\</IntDir>
88
+ </PropertyGroup>
89
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
90
+ <IncludePath>$(ProgramFiles)\Windows Phone Kits\8.0\Include;$(IncludePath)</IncludePath>
91
+ <OutDir>$(RHO_ROOT)\Platform\wp8\Bin\$(Platform)\rhoruntime\$(Configuration)\</OutDir>
92
+ <IntDir>$(TEMP_FILES_DIR)\$(Configuration)\</IntDir>
93
+ </PropertyGroup>
94
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
95
+ <ClCompile>
96
+ <Optimization>Disabled</Optimization>
97
+ <AdditionalIncludeDirectories>$(RHO_ROOT)\platform\shared\sync;$(RHO_ROOT)\platform\shared\ruby\win32;$(RHO_ROOT)\platform\shared\ruby\wp8;$(RHO_ROOT)\platform\shared\ruby\include;$(RHO_ROOT)\platform\shared;$(RHO_ROOT)\platform\shared\common;..\..\shared;$(RHO_ROOT)\lib\commonAPI\coreapi\ext\shared;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
98
+ <PreprocessorDefinitions>_LIB;_WP8_LIB;NDEBUG;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
99
+ <MinimalRebuild>true</MinimalRebuild>
100
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
101
+ <PrecompiledHeader />
102
+ <WarningLevel>Level3</WarningLevel>
103
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
104
+ </ClCompile>
105
+ <ResourceCompile>
106
+ <PreprocessorDefinitions>_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107
+ <Culture>0x0409</Culture>
108
+ <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
109
+ </ResourceCompile>
110
+ <Lib>
111
+ <OutputFile>$(OutDir)Rhoconnect-client.lib</OutputFile>
112
+ </Lib>
113
+ </ItemDefinitionGroup>
114
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
115
+ <ClCompile>
116
+ <Optimization>Disabled</Optimization>
117
+ <AdditionalIncludeDirectories>$(RHO_ROOT)\platform\shared\sync;$(RHO_ROOT)\platform\shared\ruby\win32;$(RHO_ROOT)\platform\shared\ruby\wp8;$(RHO_ROOT)\platform\shared\ruby\include;$(RHO_ROOT)\platform\shared;$(RHO_ROOT)\platform\shared\common;..\..\shared;$(RHO_ROOT)\lib\commonAPI\coreapi\ext\shared;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
118
+ <PreprocessorDefinitions>_LIB;_WP8_LIB;NDEBUG;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119
+ <MinimalRebuild>true</MinimalRebuild>
120
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
121
+ <PrecompiledHeader>
122
+ </PrecompiledHeader>
123
+ <WarningLevel>Level3</WarningLevel>
124
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
125
+ </ClCompile>
126
+ <ResourceCompile>
127
+ <PreprocessorDefinitions>_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
128
+ <Culture>0x0409</Culture>
129
+ <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
130
+ </ResourceCompile>
131
+ <Lib>
132
+ <OutputFile>$(OutDir)Rhoconnect-client.lib</OutputFile>
133
+ </Lib>
134
+ </ItemDefinitionGroup>
135
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
136
+ <ClCompile>
137
+ <Optimization>MaxSpeed</Optimization>
138
+ <AdditionalIncludeDirectories>$(RHO_ROOT)\platform\shared\sync;$(RHO_ROOT)\platform\shared\ruby\win32;$(RHO_ROOT)\platform\shared\ruby\include;$(RHO_ROOT)\platform\shared\ruby\wp8;$(RHO_ROOT)\platform\shared;$(RHO_ROOT)\platform\shared\common;..\..\shared;$(RHO_ROOT)\lib\commonAPI\coreapi\ext\shared;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
139
+ <PreprocessorDefinitions>_LIB;_WP8_LIB;NDEBUG;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
140
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
141
+ <PrecompiledHeader />
142
+ <WarningLevel>Level3</WarningLevel>
143
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
144
+ </ClCompile>
145
+ <ResourceCompile>
146
+ <PreprocessorDefinitions>NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
147
+ <Culture>0x0409</Culture>
148
+ <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
149
+ </ResourceCompile>
150
+ <Lib>
151
+ <OutputFile>$(OutDir)Rhoconnect-client.lib</OutputFile>
152
+ </Lib>
153
+ </ItemDefinitionGroup>
154
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
155
+ <ClCompile>
156
+ <Optimization>MaxSpeed</Optimization>
157
+ <AdditionalIncludeDirectories>$(RHO_ROOT)\platform\shared\sync;$(RHO_ROOT)\platform\shared\ruby\win32;$(RHO_ROOT)\platform\shared\ruby\include;$(RHO_ROOT)\platform\shared\ruby\wp8;$(RHO_ROOT)\platform\shared;$(RHO_ROOT)\platform\shared\common;..\..\shared;$(RHO_ROOT)\lib\commonAPI\coreapi\ext\shared;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
158
+ <PreprocessorDefinitions>_LIB;_WP8_LIB;NDEBUG;_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
159
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
160
+ <PrecompiledHeader>
161
+ </PrecompiledHeader>
162
+ <WarningLevel>Level3</WarningLevel>
163
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
164
+ </ClCompile>
165
+ <ResourceCompile>
166
+ <PreprocessorDefinitions>NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;$(PLATFORMDEFINES);_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
167
+ <Culture>0x0409</Culture>
168
+ <AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
169
+ </ResourceCompile>
170
+ <Lib>
171
+ <OutputFile>$(OutDir)Rhoconnect-client.lib</OutputFile>
172
+ </Lib>
173
+ </ItemDefinitionGroup>
174
+ <ItemGroup>
175
+ <ClCompile Include="..\..\shared\sync\ClientRegister.cpp" />
176
+ <ClCompile Include="..\..\shared\sync\SyncEngine.cpp" />
177
+ <ClCompile Include="..\..\shared\sync\SyncNotify.cpp" />
178
+ <ClCompile Include="..\..\shared\sync\SyncSource.cpp" />
179
+ <ClCompile Include="..\..\shared\sync\SyncThread.cpp" />
180
+ <ClCompile Include="..\..\shared\initRhoconnectClient.cpp" />
181
+ <ClCompile Include="..\..\shared\rhoconnectclient.c" />
182
+ <ClCompile Include="..\..\shared\RhoConnectClientImpl.cpp" />
183
+ <ClCompile Include="..\..\shared\generated\rhoconnectclient_api_init.cpp" />
184
+ <ClCompile Include="..\..\shared\generated\rhoconnectclient_js_api.cpp" />
185
+ <ClCompile Include="..\..\shared\generated\rhoconnectclient_ruby_api.c" />
186
+ <ClCompile Include="..\..\shared\generated\cpp\RhoConnectClient_js_wrap.cpp" />
187
+ <ClCompile Include="..\..\shared\generated\cpp\RhoConnectClient_ruby_wrap.cpp" />
188
+ <ClCompile Include="..\..\shared\generated\cpp\RhoConnectClientBase.cpp" />
189
+ </ItemGroup>
190
+ <ItemGroup>
191
+ <ClInclude Include="..\..\shared\sync\ClientRegister.h" />
192
+ <ClInclude Include="..\..\shared\sync\ISyncProtocol.h" />
193
+ <ClInclude Include="..\..\shared\sync\SyncEngine.h" />
194
+ <ClInclude Include="..\..\shared\sync\SyncNotify.h" />
195
+ <ClInclude Include="..\..\shared\sync\SyncProtocol_3.h" />
196
+ <ClInclude Include="..\..\shared\sync\SyncSource.h" />
197
+ <ClInclude Include="..\..\shared\sync\SyncThread.h" />
198
+ <ClInclude Include="..\..\shared\RhoConnectClientImpl.h" />
199
+ <ClInclude Include="..\..\shared\RhoConnectClientSingletonImpl.h" />
200
+ <ClInclude Include="..\..\shared\generated\cpp\IRhoConnectClient.h" />
201
+ <ClInclude Include="..\..\shared\generated\cpp\RhoConnectClientBase.h" />
202
+ </ItemGroup>
203
+ <ItemGroup>
204
+ <None Include="..\..\..\RhoConnectClient.rb" />
205
+ </ItemGroup>
206
+ <ItemGroup>
207
+ <CustomBuild Include="..\..\RhoConnectClient.xml">
208
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
209
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
210
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(RHO_ROOT)\bin\rhogen api %(FullPath)</Command>
211
+ <Command Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">$(RHO_ROOT)\bin\rhogen api %(FullPath)</Command>
212
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(InputDir)shared/generated</Outputs>
213
+ <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">$(InputDir)shared/generated</Outputs>
214
+ <SubType>Designer</SubType>
215
+ </CustomBuild>
216
+ </ItemGroup>
217
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
218
+ <ImportGroup Label="ExtensionTargets">
219
+ </ImportGroup>
220
+ </Project>
@@ -0,0 +1,103 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup>
4
+ <Filter Include="Source Files">
5
+ <UniqueIdentifier>{9FC737FA-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6
+ <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7
+ </Filter>
8
+ <Filter Include="shared">
9
+ <UniqueIdentifier>{4ad52c06-f53d-43fb-ae0f-fd01f325e13f}</UniqueIdentifier>
10
+ </Filter>
11
+ <Filter Include="shared\generated">
12
+ <UniqueIdentifier>{23f6b011-485b-4f55-aab5-68cbe54548f6}</UniqueIdentifier>
13
+ </Filter>
14
+ <Filter Include="shared\generated\cpp">
15
+ <UniqueIdentifier>{298dec4c-86de-49b8-a08b-44bd4dfdad0a}</UniqueIdentifier>
16
+ </Filter>
17
+ </ItemGroup>
18
+ <ItemGroup>
19
+ <ClCompile Include="..\..\shared\sync\ClientRegister.cpp">
20
+ <Filter>Source Files</Filter>
21
+ </ClCompile>
22
+ <ClCompile Include="..\..\shared\sync\SyncEngine.cpp">
23
+ <Filter>Source Files</Filter>
24
+ </ClCompile>
25
+ <ClCompile Include="..\..\shared\sync\SyncNotify.cpp">
26
+ <Filter>Source Files</Filter>
27
+ </ClCompile>
28
+ <ClCompile Include="..\..\shared\sync\SyncSource.cpp">
29
+ <Filter>Source Files</Filter>
30
+ </ClCompile>
31
+ <ClCompile Include="..\..\shared\sync\SyncThread.cpp">
32
+ <Filter>Source Files</Filter>
33
+ </ClCompile>
34
+ <ClCompile Include="..\..\shared\initRhoconnectClient.cpp">
35
+ <Filter>shared</Filter>
36
+ </ClCompile>
37
+ <ClCompile Include="..\..\shared\rhoconnectclient.c">
38
+ <Filter>shared</Filter>
39
+ </ClCompile>
40
+ <ClCompile Include="..\..\shared\RhoConnectClientImpl.cpp">
41
+ <Filter>shared</Filter>
42
+ </ClCompile>
43
+ <ClCompile Include="..\..\shared\generated\rhoconnectclient_api_init.cpp">
44
+ <Filter>shared\generated</Filter>
45
+ </ClCompile>
46
+ <ClCompile Include="..\..\shared\generated\rhoconnectclient_js_api.cpp">
47
+ <Filter>shared\generated</Filter>
48
+ </ClCompile>
49
+ <ClCompile Include="..\..\shared\generated\rhoconnectclient_ruby_api.c">
50
+ <Filter>shared\generated</Filter>
51
+ </ClCompile>
52
+ <ClCompile Include="..\..\shared\generated\cpp\RhoConnectClient_js_wrap.cpp">
53
+ <Filter>shared\generated\cpp</Filter>
54
+ </ClCompile>
55
+ <ClCompile Include="..\..\shared\generated\cpp\RhoConnectClient_ruby_wrap.cpp">
56
+ <Filter>shared\generated\cpp</Filter>
57
+ </ClCompile>
58
+ <ClCompile Include="..\..\shared\generated\cpp\RhoConnectClientBase.cpp">
59
+ <Filter>shared\generated\cpp</Filter>
60
+ </ClCompile>
61
+ </ItemGroup>
62
+ <ItemGroup>
63
+ <ClInclude Include="..\..\shared\sync\ClientRegister.h">
64
+ <Filter>Source Files</Filter>
65
+ </ClInclude>
66
+ <ClInclude Include="..\..\shared\sync\ISyncProtocol.h">
67
+ <Filter>Source Files</Filter>
68
+ </ClInclude>
69
+ <ClInclude Include="..\..\shared\sync\SyncEngine.h">
70
+ <Filter>Source Files</Filter>
71
+ </ClInclude>
72
+ <ClInclude Include="..\..\shared\sync\SyncNotify.h">
73
+ <Filter>Source Files</Filter>
74
+ </ClInclude>
75
+ <ClInclude Include="..\..\shared\sync\SyncProtocol_3.h">
76
+ <Filter>Source Files</Filter>
77
+ </ClInclude>
78
+ <ClInclude Include="..\..\shared\sync\SyncSource.h">
79
+ <Filter>Source Files</Filter>
80
+ </ClInclude>
81
+ <ClInclude Include="..\..\shared\sync\SyncThread.h">
82
+ <Filter>Source Files</Filter>
83
+ </ClInclude>
84
+ <ClInclude Include="..\..\shared\RhoConnectClientImpl.h">
85
+ <Filter>shared</Filter>
86
+ </ClInclude>
87
+ <ClInclude Include="..\..\shared\RhoConnectClientSingletonImpl.h">
88
+ <Filter>shared</Filter>
89
+ </ClInclude>
90
+ <ClInclude Include="..\..\shared\generated\cpp\IRhoConnectClient.h">
91
+ <Filter>shared\generated\cpp</Filter>
92
+ </ClInclude>
93
+ <ClInclude Include="..\..\shared\generated\cpp\RhoConnectClientBase.h">
94
+ <Filter>shared\generated\cpp</Filter>
95
+ </ClInclude>
96
+ </ItemGroup>
97
+ <ItemGroup>
98
+ <None Include="..\..\..\RhoConnectClient.rb" />
99
+ </ItemGroup>
100
+ <ItemGroup>
101
+ <CustomBuild Include="..\..\RhoConnectClient.xml" />
102
+ </ItemGroup>
103
+ </Project>
@@ -0,0 +1,273 @@
1
+ #include "RhoConnectClientImpl.h"
2
+ #include "common/RhoSettingsDefs.h"
3
+ #include "logging/RhoLog.h"
4
+ #include "json/JSONIterator.h"
5
+ #include "net/URI.h"
6
+ #include "common/RhoConf.h"
7
+
8
+ #undef DEFAULT_LOGCATEGORY
9
+ #define DEFAULT_LOGCATEGORY "RhoConnectClientImpl"
10
+
11
+ namespace rho {
12
+
13
+
14
+ RhoConnectClientImpl::RhoConnectClientImpl()
15
+ {
16
+ }
17
+
18
+ void RhoConnectClientImpl::getUserName(rho::apiGenerator::CMethodResult& oResult) {
19
+ oResult.set( RHOCONF().getString("rho_sync_user") );
20
+ }
21
+
22
+ void RhoConnectClientImpl::getPollInterval(rho::apiGenerator::CMethodResult& oResult) {
23
+ oResult.set( getSyncThread()->getPollInterval() );
24
+ }
25
+
26
+ void RhoConnectClientImpl::setPollInterval( int value, rho::apiGenerator::CMethodResult& oResult) {
27
+ getSyncThread()->setPollInterval( value );
28
+ }
29
+
30
+ void RhoConnectClientImpl::getSyncServer(rho::apiGenerator::CMethodResult& oResult) {
31
+ oResult.set( getSyncEngine().getSyncServer() );
32
+ }
33
+
34
+ void RhoConnectClientImpl::setSyncServer( const rho::String& value, rho::apiGenerator::CMethodResult& oResult) {
35
+ rho_sync_set_syncserver(value.c_str());
36
+ }
37
+
38
+ void RhoConnectClientImpl::getBulksyncState(rho::apiGenerator::CMethodResult& oResult) {
39
+ oResult.set( RHOCONF().getInt(RHO_SETTING_BULKSYNC_STATE) );
40
+ }
41
+
42
+ void RhoConnectClientImpl::setBulksyncState(int state, rho::apiGenerator::CMethodResult& oResult) {
43
+ RHOCONF().setInt(RHO_SETTING_BULKSYNC_STATE, state, true);
44
+ }
45
+
46
+ void RhoConnectClientImpl::getPageSize(rho::apiGenerator::CMethodResult& oResult) {
47
+ oResult.set( getSyncEngine().getSyncPageSize() );
48
+ }
49
+
50
+ void RhoConnectClientImpl::setPageSize( int value, rho::apiGenerator::CMethodResult& oResult) {
51
+ getSyncEngine().setSyncPageSize( value );
52
+ }
53
+
54
+ void RhoConnectClientImpl::getThreadedMode(rho::apiGenerator::CMethodResult& oResult) {
55
+ oResult.set( !getSyncEngine().isNoThreadedMode() );
56
+ }
57
+
58
+ void RhoConnectClientImpl::setThreadedMode( bool value, rho::apiGenerator::CMethodResult& oResult) {
59
+ getSyncThread()->setNonThreadedMode(!value);
60
+ getSyncEngine().setNonThreadedMode(!value);
61
+ }
62
+
63
+ void RhoConnectClientImpl::getShowStatusPopup(rho::apiGenerator::CMethodResult& oResult) {
64
+ oResult.set( getSyncEngine().getNotify().isStatusPopupEnabled() );
65
+ }
66
+
67
+ void RhoConnectClientImpl::setShowStatusPopup( bool value, rho::apiGenerator::CMethodResult& oResult) {
68
+ getSyncEngine().getNotify().enableStatusPopup( value );
69
+ }
70
+
71
+ void RhoConnectClientImpl::getSslVerifyPeer(rho::apiGenerator::CMethodResult& oResult) {
72
+ oResult.set( getSyncEngine().getSslVerifyPeer() );
73
+ }
74
+
75
+ void RhoConnectClientImpl::setSslVerifyPeer( bool value, rho::apiGenerator::CMethodResult& oResult) {
76
+ getSyncEngine().setSslVerifyPeer(value);
77
+ }
78
+
79
+ void RhoConnectClientImpl::isLoggedIn(rho::apiGenerator::CMethodResult& oResult) {
80
+ oResult.set( getSyncEngine().isLoggedIn() );
81
+ }
82
+
83
+ void RhoConnectClientImpl::isSyncing(rho::apiGenerator::CMethodResult& oResult) {
84
+ oResult.set( getSyncEngine().isSyncing() );
85
+ }
86
+
87
+ void RhoConnectClientImpl::search( const rho::Hashtable<rho::String, rho::String>& args, rho::apiGenerator::CMethodResult& oResult) {
88
+ getSyncThread()->stopAll();
89
+
90
+ bool syncChanges = false;
91
+ int progressStep = -1;
92
+ rho::Vector<rho::String> sources;
93
+ rho::String searchParams;
94
+ rho::String from = "search";
95
+
96
+ /* handle old-style callback setting */
97
+ if (args.containsKey("callback")) {
98
+ oResult.setRubyCallback(args.get("callback"));
99
+
100
+ if (args.containsKey("callback_param")) {
101
+ oResult.setCallbackParam(args.get("callback_param"));
102
+ }
103
+ }
104
+
105
+ if (args.containsKey("from") ) {
106
+ from = args.get("from");
107
+ }
108
+
109
+ /*this will return new arg value, overriding deprecated one, if it is present*/
110
+ struct DeprecatedArgsHandler {
111
+ static bool getArgValue( const rho::Hashtable<rho::String, rho::String>& args, const rho::String& newArgName, const rho::String& deprecatedArgName, rho::String& realArgValue ) {
112
+ bool found = false;
113
+ if ( args.containsKey(deprecatedArgName) ) {
114
+ RAWLOG_WARNING2("'%s' argument is deprecated for search. Use '%s' instead.",deprecatedArgName.c_str(),newArgName.c_str());
115
+ realArgValue = args.get(deprecatedArgName);
116
+ found = true;
117
+ }
118
+ if ( args.containsKey(newArgName) ) {
119
+ realArgValue = args.get(newArgName);
120
+ found = true;
121
+ }
122
+ return found;
123
+ }
124
+ };
125
+
126
+
127
+ String jsonSources;
128
+ if ( DeprecatedArgsHandler::getArgValue(args,"sourceNames","source_names",jsonSources) ) {
129
+ rho::json::CJSONEntry json(jsonSources.c_str());
130
+ if ( json.isArray() ) {
131
+ for( rho::json::CJSONArrayIterator array(json); !array.isEnd(); array.next()) {
132
+ sources.push_back( array.getCurItem().getString() );
133
+ }
134
+ }
135
+ }
136
+
137
+ if (args.containsKey("offset")) {
138
+ searchParams += "&offset=" + rho::net::URI::urlEncode(args.get("offset"));
139
+ }
140
+
141
+ rho::String maxResults;
142
+ if ( DeprecatedArgsHandler::getArgValue(args,"maxResults","max_results",maxResults) ) {
143
+ searchParams += "&max_results=" + rho::net::URI::urlEncode(maxResults);
144
+ }
145
+
146
+
147
+ rho::String jsonSearchParams;
148
+ if ( DeprecatedArgsHandler::getArgValue(args,"searchParams","search_params",jsonSearchParams) ) {
149
+ rho::json::CJSONEntry json(jsonSearchParams.c_str());
150
+ if ( json.isObject() ) {
151
+ for ( rho::json::CJSONStructIterator obj(json); !obj.isEnd(); obj.next() ) {
152
+ rho::String key = rho::net::URI::urlEncode(obj.getCurKey());
153
+ rho::String value = rho::net::URI::urlEncode(obj.getCurValue().getString());
154
+
155
+ searchParams += "&search[" + key + "]=" + value;
156
+ }
157
+ }
158
+ }
159
+
160
+ rho::String strSyncChanges;
161
+ if ( DeprecatedArgsHandler::getArgValue(args,"syncChanges","sync_changes",strSyncChanges) ) {
162
+ syncChanges = (strSyncChanges=="true") || (strSyncChanges=="1");
163
+ }
164
+
165
+ rho::String strProgressStep;
166
+ if ( DeprecatedArgsHandler::getArgValue(args,"progressStep","progress_step",strProgressStep) ) {
167
+ progressStep = atoi(strProgressStep.c_str());
168
+ }
169
+
170
+ getSyncEngine().getNotify().setSearchNotification( new sync::CSyncNotification(oResult, true) );
171
+ getSyncThread()->addQueueCommand(new sync::CSyncThread::CSyncSearchCommand(from,searchParams,sources,syncChanges,progressStep) );
172
+
173
+ handleSyncResult(oResult);
174
+ }
175
+
176
+ void RhoConnectClientImpl::doSync( bool showStatusPopup, const rho::String& queryParams, bool syncOnlyChangedSources, rho::apiGenerator::CMethodResult& oResult) {
177
+ getSyncThread()->addQueueCommand(new sync::CSyncThread::CSyncCommand(sync::CSyncThread::scSyncAll,showStatusPopup,queryParams.c_str(),syncOnlyChangedSources));
178
+
179
+ handleSyncResult(oResult);
180
+ }
181
+
182
+ void RhoConnectClientImpl::doSyncSource( const rho::String& sourceName, bool showStatusPopup, const rho::String& queryParams, rho::apiGenerator::CMethodResult& oResult) {
183
+ getSyncThread()->addQueueCommand(new sync::CSyncThread::CSyncCommand(sync::CSyncThread::scSyncOne, sourceName, 0, false, queryParams.c_str() ) );
184
+
185
+ handleSyncResult(oResult);
186
+ }
187
+
188
+ void RhoConnectClientImpl::login( const rho::String& login, const rho::String& password, rho::apiGenerator::CMethodResult& oResult) {
189
+ getSyncThread()->stopAll();
190
+ getSyncThread()->addQueueCommand(new sync::CSyncThread::CSyncLoginCommand(login, password, new sync::CSyncNotification(oResult, false) ) );
191
+
192
+ handleSyncResult(oResult);
193
+ }
194
+
195
+ void RhoConnectClientImpl::handleSyncResult(rho::apiGenerator::CMethodResult& oResult) {
196
+ if ( getSyncEngine().isNoThreadedMode() ) {
197
+ oResult.setCollectionMode(true);
198
+ const char* ret = (const char*)getSyncThread()->getRetValue();
199
+ if (ret != 0) {
200
+ oResult.setJSON( ret );
201
+ }
202
+ }
203
+ }
204
+
205
+ void RhoConnectClientImpl::logout(rho::apiGenerator::CMethodResult& oResult) {
206
+ rho_sync_logout();
207
+ }
208
+
209
+ void RhoConnectClientImpl::stopSync(rho::apiGenerator::CMethodResult& oResult) {
210
+ getSyncThread()->stopAll();
211
+ }
212
+
213
+ void RhoConnectClientImpl::setNotification( const rho::String& sourceName, rho::apiGenerator::CMethodResult& oResult) {
214
+ if ( sourceName == "*" ) {
215
+ getSyncEngine().getNotify().setSyncNotification(-1, new sync::CSyncNotification(oResult, false) );
216
+ } else {
217
+ sync::CSyncSource* src = getSyncEngine().findSourceByName(sourceName);
218
+ if ( src != 0 ) {
219
+ getSyncEngine().getNotify().setSyncNotification(src->getID(), new sync::CSyncNotification(oResult, true) );
220
+ }
221
+ }
222
+ }
223
+
224
+ void RhoConnectClientImpl::clearNotification( const rho::String& sourceName, rho::apiGenerator::CMethodResult& oResult){
225
+ if ( sourceName == "*" ) {
226
+ getSyncEngine().getNotify().clearSyncNotification(-1);
227
+ } else {
228
+ sync::CSyncSource* src = getSyncEngine().findSourceByName(sourceName);
229
+ if ( src != 0 ) {
230
+ getSyncEngine().getNotify().clearSyncNotification(src->getID());
231
+ }
232
+ }
233
+ }
234
+
235
+ void RhoConnectClientImpl::setObjectNotification(rho::apiGenerator::CMethodResult& oResult) {
236
+ sync::CSyncNotify::setObjectNotification(new sync::CObjectNotification(oResult));
237
+ }
238
+
239
+ void RhoConnectClientImpl::addObjectNotify( const rho::String& sourceName, const rho::String& object, rho::apiGenerator::CMethodResult& oResult) {
240
+ getSyncEngine().getNotify().addObjectNotify(sourceName, object);
241
+ }
242
+
243
+ void RhoConnectClientImpl::cleanObjectNotify(rho::apiGenerator::CMethodResult& oResult) {
244
+ sync::CSyncNotify::setObjectNotification(0);
245
+ }
246
+
247
+ void RhoConnectClientImpl::getLastSyncObjectCount( const rho::String& sourceName, rho::apiGenerator::CMethodResult& oResult) {
248
+ int result = 0;
249
+ sync::CSyncSource* src = getSyncEngine().findSourceByName(sourceName);
250
+ if ( src != 0 ) {
251
+ result = getSyncEngine().getNotify().getLastSyncObjectCount(src->getID());
252
+ }
253
+
254
+ oResult.set( result );
255
+ }
256
+
257
+ void RhoConnectClientImpl::setSourceProperty( const rho::String& sourceName, const rho::String& propertyName, const rho::String& propertyValue, rho::apiGenerator::CMethodResult& oResult) {
258
+
259
+ sync::CSyncSource* src = getSyncEngine().findSourceByName(sourceName);
260
+ if ( src != 0 ) {
261
+ sync::CSyncEngine::getSourceOptions().setProperty(src->getID(), propertyName.c_str(), propertyValue.c_str());
262
+ }
263
+ }
264
+
265
+ void RhoConnectClientImpl::getSourceProperty( const rho::String& sourceName, const rho::String& propertyName, rho::apiGenerator::CMethodResult& oResult) {
266
+ rho::String ret = "";
267
+ sync::CSyncSource* src = getSyncEngine().findSourceByName(sourceName);
268
+ if ( src != 0 ) {
269
+ ret = sync::CSyncEngine::getSourceOptions().getProperty(src->getID(), propertyName.c_str());
270
+ }
271
+ oResult.set(ret);
272
+ }
273
+ }