rhoconnect-client 5.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +9 -0
- data/CREDITS +0 -0
- data/LICENSE +9 -0
- data/README.md +47 -0
- data/ext/rhoconnect-client/RhoConnectClient.rb +190 -0
- data/ext/rhoconnect-client/ext/RhoConnectClient.xml +726 -0
- data/ext/rhoconnect-client/ext/build +26 -0
- data/ext/rhoconnect-client/ext/build.bat +30 -0
- data/ext/rhoconnect-client/ext/platform/android/ext_java.files +1 -0
- data/ext/rhoconnect-client/ext/platform/android/ext_native.files +14 -0
- data/ext/rhoconnect-client/ext/platform/android/src/com/rhoconnectclient/RhoconnectClient.java +1 -0
- data/ext/rhoconnect-client/ext/platform/iphone/.gitignore +1 -0
- data/ext/rhoconnect-client/ext/platform/iphone/Rakefile +74 -0
- data/ext/rhoconnect-client/ext/platform/iphone/RhoconnectClient.xcodeproj/project.pbxproj +390 -0
- data/ext/rhoconnect-client/ext/platform/iphone/RhoconnectClient_Prefix.pch +7 -0
- data/ext/rhoconnect-client/ext/platform/iphone/impl/readme.txt +7 -0
- data/ext/rhoconnect-client/ext/platform/qt/Rakefile +35 -0
- data/ext/rhoconnect-client/ext/platform/qt/rhoconnect-client.pro +88 -0
- data/ext/rhoconnect-client/ext/platform/wm/Rhoconnect-client.sln +36 -0
- data/ext/rhoconnect-client/ext/platform/wm/Rhoconnect-client.vcproj +774 -0
- data/ext/rhoconnect-client/ext/platform/wm/Rhoconnect-client.vsprops +15 -0
- data/ext/rhoconnect-client/ext/platform/wm/src/rhoconnectclient_wm.cpp +40 -0
- data/ext/rhoconnect-client/ext/platform/wm/src/rhoconnectclient_wm.h +2 -0
- data/ext/rhoconnect-client/ext/platform/wp8/Rhoconnect-client.props +22 -0
- data/ext/rhoconnect-client/ext/platform/wp8/Rhoconnect-client.sln +32 -0
- data/ext/rhoconnect-client/ext/platform/wp8/Rhoconnect-client.vcxproj +220 -0
- data/ext/rhoconnect-client/ext/platform/wp8/Rhoconnect-client.vcxproj.filters +103 -0
- data/ext/rhoconnect-client/ext/shared/RhoConnectClientImpl.cpp +273 -0
- data/ext/rhoconnect-client/ext/shared/RhoConnectClientImpl.h +60 -0
- data/ext/rhoconnect-client/ext/shared/RhoConnectClientSingletonImpl.h +53 -0
- data/ext/rhoconnect-client/ext/shared/initRhoconnectClient.cpp +207 -0
- data/ext/rhoconnect-client/ext/shared/rhoconnectclient.c +18 -0
- data/ext/rhoconnect-client/ext/shared/sync/ClientRegister.cpp +398 -0
- data/ext/rhoconnect-client/ext/shared/sync/ClientRegister.h +147 -0
- data/ext/rhoconnect-client/ext/shared/sync/ISyncProtocol.h +91 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncEngine.cpp +1245 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncEngine.h +213 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncNotify.cpp +737 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncNotify.h +209 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncProtocol_3.h +220 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncProtocol_4.h +259 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncSource.cpp +1694 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncSource.h +212 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncThread.cpp +583 -0
- data/ext/rhoconnect-client/ext/shared/sync/SyncThread.h +250 -0
- data/ext/rhoconnect-client/ext.yml +12 -0
- data/lib/build/run_rhoconnect_spec.rb +135 -0
- data/lib/rhoconnect-client.rb +3 -0
- data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +1673 -0
- data/platform/shared/RhoConnectClient/RhoConnectClient.h +181 -0
- data/platform/shared/RhoConnectClient/RhoError.h +77 -0
- data/rhoconnect-client/C++/Tests/RhoConnectClientTest.cpp +830 -0
- data/rhoconnect-client/C++/Tests/win32/.gitignore +3 -0
- data/rhoconnect-client/C++/Tests/win32/RhoConnectClient.sln +65 -0
- data/rhoconnect-client/C++/Tests/win32/RhoConnectClient.vcproj +634 -0
- data/rhoconnect-client/C++/Tests/win32/RhoConnectClientTest/RhoConnectClientTest.vcproj +222 -0
- data/rhoconnect-client/C++/Tests/win32/RhoConnectClientTest/stdafx.h +65 -0
- data/rhoconnect-client/C++/Tests/win32/stdafx.h +65 -0
- data/rhoconnect-client/CHANGELOG +18 -0
- data/rhoconnect-client/Java/Android/build/android.rake +387 -0
- data/rhoconnect-client/Java/Android/build/android_sdk.rb +582 -0
- data/rhoconnect-client/Java/Android/build/libcurl_build.files +73 -0
- data/rhoconnect-client/Java/Android/build/libjson_build.files +9 -0
- data/rhoconnect-client/Java/Android/build/librhocommon_build.files +14 -0
- data/rhoconnect-client/Java/Android/build/librhodb_build.files +5 -0
- data/rhoconnect-client/Java/Android/build/librhoimpl_build.files +13 -0
- data/rhoconnect-client/Java/Android/build/librholog_build.files +4 -0
- data/rhoconnect-client/Java/Android/build/libsqlite_build.files +1 -0
- data/rhoconnect-client/Java/Android/build/libsync_build.files +7 -0
- data/rhoconnect-client/Java/Android/build/libunzip_build.files +1 -0
- data/rhoconnect-client/Java/Android/build/rhoconnectclient_build.files +3 -0
- data/rhoconnect-client/Java/Android/build/rhoimpljava_build.files +21 -0
- data/rhoconnect-client/Java/Android/src/com/rhomobile/rhodes/Capabilities.java +63 -0
- data/rhoconnect-client/Java/Android/src/com/rhomobile/rhodes/MemoryInfoCollector.java +79 -0
- data/rhoconnect-client/Java/Android/src/com/rhomobile/rhodes/util/ContextFactory.java +63 -0
- data/rhoconnect-client/Java/Android/test/.classpath +9 -0
- data/rhoconnect-client/Java/Android/test/.project +33 -0
- data/rhoconnect-client/Java/Android/test/AndroidManifest.xml +14 -0
- data/rhoconnect-client/Java/Android/test/assets/apps/androidtest.png +0 -0
- data/rhoconnect-client/Java/Android/test/assets/apps/rhoconfig.txt +19 -0
- data/rhoconnect-client/Java/Android/test/assets/apps/rhoconfig.txt.timestamp +1 -0
- data/rhoconnect-client/Java/Android/test/assets/db/syncdb.schema +44 -0
- data/rhoconnect-client/Java/Android/test/assets/db/syncdb.triggers +10 -0
- data/rhoconnect-client/Java/Android/test/assets/db/syncdb_java.triggers +21 -0
- data/rhoconnect-client/Java/Android/test/assets/rho.dat +9 -0
- data/rhoconnect-client/Java/Android/test/proguard.cfg +36 -0
- data/rhoconnect-client/Java/Android/test/project.properties +11 -0
- data/rhoconnect-client/Java/Android/test/res/drawable-hdpi/icon.png +0 -0
- data/rhoconnect-client/Java/Android/test/res/drawable-ldpi/icon.png +0 -0
- data/rhoconnect-client/Java/Android/test/res/drawable-mdpi/icon.png +0 -0
- data/rhoconnect-client/Java/Android/test/res/layout/main.xml +12 -0
- data/rhoconnect-client/Java/Android/test/res/values/strings.xml +5 -0
- data/rhoconnect-client/Java/Android/test/rhoimpl.jar +0 -0
- data/rhoconnect-client/Java/Android/test/src/com/rhomobile/rhoconnect_client_test/TestRhoConnectClient.java +343 -0
- data/rhoconnect-client/Java/Android/test/src/com/rhomobile/rhoconnect_client_test/TestRhoConnectClientBlobs.java +219 -0
- data/rhoconnect-client/Java/RhoConnect/.classpath +6 -0
- data/rhoconnect-client/Java/RhoConnect/.project +93 -0
- data/rhoconnect-client/Java/RhoConnect/assets/apps/rhoconfig.txt +19 -0
- data/rhoconnect-client/Java/RhoConnect/assets/apps/rhoconfig.txt.timestamp +1 -0
- data/rhoconnect-client/Java/RhoConnect/assets/db/syncdb.schema +44 -0
- data/rhoconnect-client/Java/RhoConnect/assets/db/syncdb.triggers +10 -0
- data/rhoconnect-client/Java/RhoConnect/assets/db/syncdb_java.triggers +21 -0
- data/rhoconnect-client/Java/RhoConnect/assets/rho.dat +8 -0
- data/rhoconnect-client/Java/RhoConnect/jni/include/RhoConnectJniNotify.h +61 -0
- data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectClient.h +181 -0
- data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectNotify.h +13 -0
- data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectNotify_IDelegate.h +13 -0
- data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectObjectNotify.h +13 -0
- data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhoConnectObjectNotify_IDelegate.h +13 -0
- data/rhoconnect-client/Java/RhoConnect/jni/include/com_rhomobile_rhoconnect_RhomModel.h +103 -0
- data/rhoconnect-client/Java/RhoConnect/jni/include/rhojava.inc +76 -0
- data/rhoconnect-client/Java/RhoConnect/jni/src/RhoConnectJniClient.cpp +401 -0
- data/rhoconnect-client/Java/RhoConnect/jni/src/RhoConnectJniModel.cpp +332 -0
- data/rhoconnect-client/Java/RhoConnect/jni/src/RhoConnectJniNotify.cpp +223 -0
- data/rhoconnect-client/Java/RhoConnect/jni/src/RhoConnectUtil.cpp +82 -0
- data/rhoconnect-client/Java/RhoConnect/jni/src/RhodesApp.cpp +114 -0
- data/rhoconnect-client/Java/RhoConnect/src/com/rhomobile/rhoconnect/RhoConnectClient.java +108 -0
- data/rhoconnect-client/Java/RhoConnect/src/com/rhomobile/rhoconnect/RhoConnectNotify.java +78 -0
- data/rhoconnect-client/Java/RhoConnect/src/com/rhomobile/rhoconnect/RhoConnectObjectNotify.java +71 -0
- data/rhoconnect-client/Java/RhoConnect/src/com/rhomobile/rhoconnect/RhomModel.java +195 -0
- data/rhoconnect-client/JavaScript/.classpath +10 -0
- data/rhoconnect-client/JavaScript/.gitignore +4 -0
- data/rhoconnect-client/JavaScript/.project +17 -0
- data/rhoconnect-client/JavaScript/README.textile +1 -0
- data/rhoconnect-client/JavaScript/build.xml +185 -0
- data/rhoconnect-client/JavaScript/doc/fsm-sample.js +44 -0
- data/rhoconnect-client/JavaScript/doc/fsm-sample.png +0 -0
- data/rhoconnect-client/JavaScript/src/RhoSyncJS.gwt.xml +21 -0
- data/rhoconnect-client/JavaScript/stubs/RhoSyncStubsJS.gwt.xml +21 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/Capabilities.java +7 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/IRhoRubyHelper.java +7 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/Mutex.java +5 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/RhoAppAdapter.java +39 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/RhoClassFactory.java +29 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/RhoConf.java +100 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/RhoEmptyLogger.java +7 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/RhoEmptyProfiler.java +5 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/RhoLogger.java +32 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/RhoProfiler.java +27 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/RhodesApp.java +25 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/TimeInterval.java +22 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/Tokenizer.java +23 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/db/DBAdapter.java +174 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/db/DBAttrManager.java +15 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/db/DBException.java +5 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/db/IDBResult.java +27 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/file/IFileAccess.java +7 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/file/SimpleFile.java +15 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/net/IHttpConnection.java +22 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/net/NetRequest.java +324 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/net/NetResponse.java +51 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/net/URI.java +64 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/sync/ClientRegister.java +15 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/sync/JSONArrayIterator.java +37 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/sync/JSONEntry.java +48 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/sync/JSONStructIterator.java +41 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/sync/SyncNotify.java +98 -0
- data/rhoconnect-client/JavaScript/stubs/com/rho/sync/SyncThread.java +92 -0
- data/rhoconnect-client/JavaScript/war/WEB-INF/lib/gwt-servlet-deps.jar +0 -0
- data/rhoconnect-client/JavaScript/war/WEB-INF/lib/gwt-servlet.jar +0 -0
- data/rhoconnect-client/JavaScript/war/js/fsm-sample.js +54 -0
- data/rhoconnect-client/JavaScript/war/js/rhosync-api.js +237 -0
- data/rhoconnect-client/JavaScript/war/js/rhosync-fsm.js +307 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/4C71D69C9BBC9E6F05C6BA49B01BCBC1.cache.html +3122 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/5146F4FFF34511C8BB2661E920B49E3A.cache.html +3254 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/5248C67481D9D27AD0703D15CDBD2A1C.cache.html +3147 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/EE1DC2692C9C32367B53A39E2358AF23.cache.html +3195 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/clear.cache.gif +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/corner.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/corner_ie6.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/hborder.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/hborder_ie6.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/corner_dialog_topleft.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/corner_dialog_topright.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/hborder_blue_shadow.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/hborder_gray_shadow.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/vborder_blue_shadow.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/ie6/vborder_gray_shadow.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/splitPanelThumb.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/vborder.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/images/vborder_ie6.png +0 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/standard.css +1144 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/gwt/standard/standard_rtl.css +1145 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/hosted.html +350 -0
- data/rhoconnect-client/JavaScript/war/rhosyncjs/rhosyncjs.nocache.js +314 -0
- data/rhoconnect-client/JavaScript/war/test/SpecRunner.html +35 -0
- data/rhoconnect-client/JavaScript/war/test/dbtest.html +38 -0
- data/rhoconnect-client/JavaScript/war/test/lib/jasmine-1.0.1/MIT.LICENSE +20 -0
- data/rhoconnect-client/JavaScript/war/test/lib/jasmine-1.0.1/jasmine-html.js +188 -0
- data/rhoconnect-client/JavaScript/war/test/lib/jasmine-1.0.1/jasmine.css +166 -0
- data/rhoconnect-client/JavaScript/war/test/lib/jasmine-1.0.1/jasmine.js +2421 -0
- data/rhoconnect-client/JavaScript/war/test/spec/SpecHelper.js +7 -0
- data/rhoconnect-client/JavaScript/war/test/spec/SyncApiSpec.js +573 -0
- data/rhoconnect-client/JavaScript/war/test/spec/samples/PlayerSpec.js +58 -0
- data/rhoconnect-client/JavaScript/war/test/worker-test.js +17 -0
- data/rhoconnect-client/LICENSE +41 -0
- data/rhoconnect-client/ObjectiveC/RhoConnectClient.h +118 -0
- data/rhoconnect-client/ObjectiveC/RhoConnectClient.m +641 -0
- data/rhoconnect-client/ObjectiveC/RhoConnectClient.xcodeproj/project.pbxproj +1434 -0
- data/rhoconnect-client/ObjectiveC/RhoConnectNotify.h +83 -0
- data/rhoconnect-client/ObjectiveC/RhoConnectNotify.m +181 -0
- data/rhoconnect-client/ObjectiveC/RhoConnectObjectNotify.h +65 -0
- data/rhoconnect-client/ObjectiveC/RhoConnectObjectNotify.m +73 -0
- data/rhoconnect-client/ObjectiveC/RhomModel.h +101 -0
- data/rhoconnect-client/ObjectiveC/RhomModel.m +320 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/MainWindow.xib +198 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTest-Info.plist +30 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTest.xcodeproj/project.pbxproj +373 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTestAppDelegate.h +58 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTestAppDelegate.m +84 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/RhoConnectClientTest_Prefix.pch +8 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/invalid_import_db.zip +0 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/main.m +1096 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/test.png +0 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/test2.png +0 -0
- data/rhoconnect-client/ObjectiveC/Tests/RhoConnectClientTest/valid_import_db.zip +0 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/Classes/ptestsAppDelegate.h +62 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/Classes/ptestsAppDelegate.m +35 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/Classes/ptestsViewController.h +78 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/Classes/ptestsViewController.m +549 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/MainWindow.xib +227 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/main.m +17 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/ptests-Info.plist +30 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/ptests.xcodeproj/project.pbxproj +363 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/ptestsViewController.xib +641 -0
- data/rhoconnect-client/ObjectiveC/Tests/ptests/ptests_Prefix.pch +8 -0
- data/rhoconnect-client/README.textile +23 -0
- data/rhoconnect-client/Rakefile +20 -0
- data/rhoconnect-client/Samples/Java/android_store/.classpath +8 -0
- data/rhoconnect-client/Samples/Java/android_store/.project +33 -0
- data/rhoconnect-client/Samples/Java/android_store/AndroidManifest.xml +24 -0
- data/rhoconnect-client/Samples/Java/android_store/assets/apps/rhoconfig.txt +19 -0
- data/rhoconnect-client/Samples/Java/android_store/assets/apps/rhoconfig.txt.timestamp +1 -0
- data/rhoconnect-client/Samples/Java/android_store/assets/db/syncdb.schema +44 -0
- data/rhoconnect-client/Samples/Java/android_store/assets/db/syncdb.triggers +10 -0
- data/rhoconnect-client/Samples/Java/android_store/assets/db/syncdb_java.triggers +21 -0
- data/rhoconnect-client/Samples/Java/android_store/assets/rho.dat +8 -0
- data/rhoconnect-client/Samples/Java/android_store/default.properties +11 -0
- data/rhoconnect-client/Samples/Java/android_store/project.properties +14 -0
- data/rhoconnect-client/Samples/Java/android_store/res/drawable-hdpi/icon.png +0 -0
- data/rhoconnect-client/Samples/Java/android_store/res/drawable-ldpi/icon.png +0 -0
- data/rhoconnect-client/Samples/Java/android_store/res/drawable-mdpi/icon.png +0 -0
- data/rhoconnect-client/Samples/Java/android_store/res/layout/main.xml +12 -0
- data/rhoconnect-client/Samples/Java/android_store/res/values/strings.xml +5 -0
- data/rhoconnect-client/Samples/Java/android_store/rhoimpl.jar +0 -0
- data/rhoconnect-client/Samples/Java/android_store/src/com/rhomobile/android_store/StoreActivity.java +68 -0
- data/rhoconnect-client/Samples/Java/android_store/src/com/rhomobile/android_store/StoreApplication.java +15 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/LoginViewController.h +70 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/LoginViewController.m +94 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/RhoConnectEngine.h +82 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/RhoConnectEngine.m +119 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/RootViewController.h +63 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/RootViewController.m +314 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/WaitLoginController.h +65 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/WaitLoginController.m +110 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/storeAppDelegate.h +61 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/Classes/storeAppDelegate.m +171 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/LoginViewController.xib +779 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/MainWindow.xib +580 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/RootViewController.xib +384 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/WaitLoginController.xib +557 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/icon.png +0 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/main.m +22 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/store-Info.plist +30 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/store.xcodeproj/project.pbxproj +367 -0
- data/rhoconnect-client/Samples/ObjectiveC/store/store_Prefix.pch +14 -0
- data/rhoconnect-client/build.yml +3 -0
- data/rhoconnect-client/version +1 -0
- metadata +314 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
package com.rho.net;
|
2
|
+
|
3
|
+
public class URI {
|
4
|
+
|
5
|
+
public URI(String strUrl) {
|
6
|
+
// TODO Auto-generated constructor stub
|
7
|
+
}
|
8
|
+
|
9
|
+
public String getHostSpecificPart() {
|
10
|
+
// TODO Auto-generated method stub
|
11
|
+
return null;
|
12
|
+
}
|
13
|
+
|
14
|
+
public String getLastNamePart() {
|
15
|
+
// TODO Auto-generated method stub
|
16
|
+
return null;
|
17
|
+
}
|
18
|
+
|
19
|
+
public String getQueryString() {
|
20
|
+
// TODO Auto-generated method stub
|
21
|
+
return null;
|
22
|
+
}
|
23
|
+
|
24
|
+
public static native String parseCookie(String value)
|
25
|
+
/*
|
26
|
+
String strRes = "";
|
27
|
+
Tokenizer stringtokenizer = new Tokenizer(value, ";");
|
28
|
+
while (stringtokenizer.hasMoreTokens()) {
|
29
|
+
String tok = stringtokenizer.nextToken();
|
30
|
+
tok = tok.trim();
|
31
|
+
if (tok.length() == 0) {
|
32
|
+
continue;
|
33
|
+
}
|
34
|
+
|
35
|
+
//expires=Thu, 01 Jan 1970 00:00:00 GMT, auth_token=
|
36
|
+
int nExp = tok.indexOf("expires=");
|
37
|
+
if ( nExp >= 0 )
|
38
|
+
{
|
39
|
+
int nEnd = tok.indexOf(',', nExp);
|
40
|
+
if ( nEnd >= 0 )
|
41
|
+
{
|
42
|
+
int nEnd1 = tok.indexOf(',', nEnd+1);
|
43
|
+
if ( nEnd1 >= 0 )
|
44
|
+
nEnd = nEnd1;
|
45
|
+
else
|
46
|
+
nEnd = tok.length()-1;
|
47
|
+
}
|
48
|
+
|
49
|
+
tok = tok.substring(0,nExp) + tok.substring(nEnd+1);
|
50
|
+
tok = tok.trim();
|
51
|
+
}
|
52
|
+
|
53
|
+
int nEq = tok.indexOf('=');
|
54
|
+
if ( nEq < 0 )
|
55
|
+
continue;
|
56
|
+
|
57
|
+
strRes += tok + ";";
|
58
|
+
}
|
59
|
+
|
60
|
+
return strRes;
|
61
|
+
*/
|
62
|
+
/*-{
|
63
|
+
}-*/;
|
64
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
package com.rho.sync;
|
2
|
+
|
3
|
+
public class JSONArrayIterator {
|
4
|
+
|
5
|
+
public JSONArrayIterator() {
|
6
|
+
// TODO Auto-generated constructor stub
|
7
|
+
}
|
8
|
+
|
9
|
+
public JSONArrayIterator(String szData) {
|
10
|
+
// TODO Auto-generated constructor stub
|
11
|
+
}
|
12
|
+
|
13
|
+
public JSONArrayIterator getCurArrayIter() {
|
14
|
+
// TODO Auto-generated method stub
|
15
|
+
return null;
|
16
|
+
}
|
17
|
+
|
18
|
+
public JSONEntry getCurItem() {
|
19
|
+
// TODO Auto-generated method stub
|
20
|
+
return null;
|
21
|
+
}
|
22
|
+
|
23
|
+
public boolean isEnd() {
|
24
|
+
// TODO Auto-generated method stub
|
25
|
+
return false;
|
26
|
+
}
|
27
|
+
|
28
|
+
public void next() {
|
29
|
+
// TODO Auto-generated method stub
|
30
|
+
}
|
31
|
+
|
32
|
+
public void reset(int i) {
|
33
|
+
// TODO Auto-generated method stub
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
package com.rho.sync;
|
2
|
+
|
3
|
+
public class JSONEntry {
|
4
|
+
|
5
|
+
public JSONEntry() {
|
6
|
+
// TODO Auto-generated constructor stub
|
7
|
+
}
|
8
|
+
|
9
|
+
public JSONEntry(String szData) {
|
10
|
+
// TODO Auto-generated constructor stub
|
11
|
+
}
|
12
|
+
|
13
|
+
public JSONEntry getEntry(String string) {
|
14
|
+
// TODO Auto-generated method stub
|
15
|
+
return null;
|
16
|
+
}
|
17
|
+
|
18
|
+
public String getString(String string) {
|
19
|
+
// TODO Auto-generated method stub
|
20
|
+
return null;
|
21
|
+
}
|
22
|
+
|
23
|
+
public int getInt(String string) {
|
24
|
+
// TODO Auto-generated method stub
|
25
|
+
return 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
public boolean hasName(String string) {
|
29
|
+
// TODO Auto-generated method stub
|
30
|
+
return false;
|
31
|
+
}
|
32
|
+
|
33
|
+
public long getUInt64(String string) {
|
34
|
+
// TODO Auto-generated method stub
|
35
|
+
return 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
public boolean isEmpty() {
|
39
|
+
// TODO Auto-generated method stub
|
40
|
+
return false;
|
41
|
+
}
|
42
|
+
|
43
|
+
public static String quoteValue(String name) {
|
44
|
+
// TODO Auto-generated method stub
|
45
|
+
return null;
|
46
|
+
}
|
47
|
+
|
48
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
package com.rho.sync;
|
2
|
+
|
3
|
+
public class JSONStructIterator {
|
4
|
+
|
5
|
+
public JSONStructIterator() {
|
6
|
+
// TODO Auto-generated constructor stub
|
7
|
+
}
|
8
|
+
|
9
|
+
public JSONStructIterator(JSONEntry errSrc) {
|
10
|
+
// TODO Auto-generated constructor stub
|
11
|
+
}
|
12
|
+
|
13
|
+
public JSONStructIterator(Object curValue) {
|
14
|
+
// TODO Auto-generated constructor stub
|
15
|
+
}
|
16
|
+
|
17
|
+
public String getCurKey() {
|
18
|
+
// TODO Auto-generated method stub
|
19
|
+
return null;
|
20
|
+
}
|
21
|
+
|
22
|
+
public JSONEntry getCurValue() {
|
23
|
+
// TODO Auto-generated method stub
|
24
|
+
return null;
|
25
|
+
}
|
26
|
+
|
27
|
+
public boolean isEnd() {
|
28
|
+
// TODO Auto-generated method stub
|
29
|
+
return false;
|
30
|
+
}
|
31
|
+
|
32
|
+
public String getCurString() {
|
33
|
+
// TODO Auto-generated method stub
|
34
|
+
return null;
|
35
|
+
}
|
36
|
+
|
37
|
+
public void next() {
|
38
|
+
// TODO Auto-generated method stub
|
39
|
+
}
|
40
|
+
|
41
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
package com.rho.sync;
|
2
|
+
|
3
|
+
import java.util.Vector;
|
4
|
+
|
5
|
+
import com.rho.RhoClassFactory;
|
6
|
+
import com.rho.sync.SyncNotify.SyncNotification;
|
7
|
+
|
8
|
+
public class SyncNotify {
|
9
|
+
|
10
|
+
public class SyncNotification {
|
11
|
+
}
|
12
|
+
|
13
|
+
public static Object enUpdate;
|
14
|
+
public static Object enCreate;
|
15
|
+
public static Object enDelete;
|
16
|
+
|
17
|
+
public SyncNotify(SyncEngine syncEngine) {
|
18
|
+
// TODO Auto-generated constructor stub
|
19
|
+
}
|
20
|
+
|
21
|
+
public void setFactory(RhoClassFactory factory) {
|
22
|
+
// TODO Auto-generated method stub
|
23
|
+
|
24
|
+
}
|
25
|
+
|
26
|
+
public void fireBulkSyncNotification(boolean b, String string,
|
27
|
+
String strPartition, int errNone) {
|
28
|
+
// TODO Auto-generated method stub
|
29
|
+
|
30
|
+
}
|
31
|
+
|
32
|
+
public void callLoginCallback(SyncNotification oNotify, int nErrCode,
|
33
|
+
String charData) {
|
34
|
+
// TODO Auto-generated method stub
|
35
|
+
|
36
|
+
}
|
37
|
+
|
38
|
+
public void callLoginCallback(SyncNotification oNotify, String errRuntime,
|
39
|
+
String charData) {
|
40
|
+
// TODO Auto-generated method stub
|
41
|
+
|
42
|
+
}
|
43
|
+
|
44
|
+
public void cleanCreateObjectErrors() {
|
45
|
+
// TODO Auto-generated method stub
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
public void cleanLastSyncObjectCount() {
|
50
|
+
// TODO Auto-generated method stub
|
51
|
+
|
52
|
+
}
|
53
|
+
|
54
|
+
public void onObjectChanged(Integer id, String strObject, Object enUpdate2) {
|
55
|
+
// TODO Auto-generated method stub
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
public void fireObjectsNotification() {
|
60
|
+
// TODO Auto-generated method stub
|
61
|
+
|
62
|
+
}
|
63
|
+
|
64
|
+
public void fireSyncNotification(SyncSource syncSource, boolean b,
|
65
|
+
int errNone, String string) {
|
66
|
+
// TODO Auto-generated method stub
|
67
|
+
|
68
|
+
}
|
69
|
+
|
70
|
+
public void fireAllSyncNotifications(boolean b, int m_nErrCode,
|
71
|
+
String m_strError) {
|
72
|
+
// TODO Auto-generated method stub
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
public void fireAllSyncNotifications(boolean b, String errRuntime,
|
77
|
+
String m_strError) {
|
78
|
+
// TODO Auto-generated method stub
|
79
|
+
|
80
|
+
}
|
81
|
+
|
82
|
+
public int incLastSyncObjectCount(Integer id) {
|
83
|
+
// TODO Auto-generated method stub
|
84
|
+
return 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
public void onSyncSourceEnd(int i, Vector m_sources) {
|
88
|
+
// TODO Auto-generated method stub
|
89
|
+
|
90
|
+
}
|
91
|
+
|
92
|
+
public void reportSyncStatus(String string, int m_nErrCode,
|
93
|
+
String m_strError) {
|
94
|
+
// TODO Auto-generated method stub
|
95
|
+
|
96
|
+
}
|
97
|
+
|
98
|
+
}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
package com.rho.sync;
|
2
|
+
|
3
|
+
import com.google.gwt.core.client.EntryPoint;
|
4
|
+
import com.rho.RhoClassFactory;
|
5
|
+
import com.rho.RhoConf;
|
6
|
+
|
7
|
+
public class SyncThread implements EntryPoint {
|
8
|
+
|
9
|
+
private static SyncThread m_syncThreadInstance;
|
10
|
+
private SyncEngine m_syncEngine;
|
11
|
+
|
12
|
+
static {
|
13
|
+
m_syncThreadInstance = new SyncThread();
|
14
|
+
}
|
15
|
+
|
16
|
+
protected SyncThread() {
|
17
|
+
RhoConf.InitRhoConf();
|
18
|
+
RhoConf.getInstance().loadConf();
|
19
|
+
m_syncEngine = new SyncEngine();
|
20
|
+
try {
|
21
|
+
m_syncEngine.setFactory(new RhoClassFactory());
|
22
|
+
} catch (Exception e) {
|
23
|
+
// TODO Auto-generated catch block
|
24
|
+
//e.printStackTrace();
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
public static SyncThread getInstance() {
|
29
|
+
return m_syncThreadInstance;
|
30
|
+
}
|
31
|
+
|
32
|
+
public void login(String login, String password, SyncNotify.SyncNotification oNotify) {
|
33
|
+
m_syncEngine.login(login, password, oNotify);
|
34
|
+
}
|
35
|
+
|
36
|
+
public void logout() {
|
37
|
+
try {
|
38
|
+
m_syncEngine.logout();
|
39
|
+
} catch (Exception e) {
|
40
|
+
// TODO Auto-generated catch block
|
41
|
+
e.printStackTrace();
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
public void start() {
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
public void stop() {
|
50
|
+
|
51
|
+
}
|
52
|
+
|
53
|
+
public void sleep(int i) {
|
54
|
+
// TODO Auto-generated method stub
|
55
|
+
|
56
|
+
}
|
57
|
+
|
58
|
+
public void wait(int i) {
|
59
|
+
// TODO Auto-generated method stub
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
@Override
|
64
|
+
public void onModuleLoad() {
|
65
|
+
exportApiMethods();
|
66
|
+
};
|
67
|
+
|
68
|
+
// Export methods to raw javascript API
|
69
|
+
public native void exportApiMethods() /*-{
|
70
|
+
var me = this;
|
71
|
+
var klass = {};
|
72
|
+
|
73
|
+
klass.login = function(login, password, notify) {
|
74
|
+
me.@com.rho.sync.SyncThread::login(Ljava/lang/String;Ljava/lang/String;Lcom/rho/sync/SyncNotify$SyncNotification;)(login, password, notify);
|
75
|
+
};
|
76
|
+
|
77
|
+
klass.logout = function() {
|
78
|
+
me.@com.rho.sync.SyncThread::logout();
|
79
|
+
};
|
80
|
+
|
81
|
+
klass.start = function() {
|
82
|
+
me.@com.rho.sync.SyncThread::start();
|
83
|
+
};
|
84
|
+
|
85
|
+
klass.stop = function() {
|
86
|
+
me.@com.rho.sync.SyncThread::start();
|
87
|
+
};
|
88
|
+
|
89
|
+
$wnd.Rhomobile.sync.Thread = klass;
|
90
|
+
$wnd.Rhomobile.internal.gwtClassReady("com.rho.sync.SyncThread");
|
91
|
+
}-*/;
|
92
|
+
}
|
Binary file
|
Binary file
|
@@ -0,0 +1,54 @@
|
|
1
|
+
|
2
|
+
Rhomobile.fsm.define("sample FSM", function(/*Rhomobile.fsm.Machine*/fsm){
|
3
|
+
|
4
|
+
fsm.state('Logged out')/*>>state*/
|
5
|
+
// to implement the Moore type of FSM
|
6
|
+
.immediateTransitsTo('Some state to transit immediately, w/o any input received')/*>>state*/
|
7
|
+
|
8
|
+
.on('login button click')/*>>input*/.transitsTo('Login request sent')/*>>state*/
|
9
|
+
.on('timeout happens')/*>>input*/.transitsTo('Screensaver ont')/*>>state*/
|
10
|
+
|
11
|
+
.withEntryAction(/*comment*/'some tags here: and comment text', function()
|
12
|
+
{
|
13
|
+
// enable login button
|
14
|
+
})/*>>state*/
|
15
|
+
|
16
|
+
.withExitAction(/*comment*/'login: disable button', function()
|
17
|
+
{
|
18
|
+
// disable login button
|
19
|
+
})/*>>state*/
|
20
|
+
|
21
|
+
.withActionOnInput(/*inputName*/'login button click', /*comment*/'backlight: turn on', function(input)
|
22
|
+
{
|
23
|
+
// turn backlight on
|
24
|
+
})/*>>state*/
|
25
|
+
|
26
|
+
.withActionOnTransitTo(/*stateName*/'Screensaver on', /*comment*/'backlight: turn off', function(input)
|
27
|
+
{
|
28
|
+
// turn backlight off
|
29
|
+
})/*>>state*/;
|
30
|
+
|
31
|
+
|
32
|
+
fsm.state('Screensaver on')
|
33
|
+
.on('screen touch').transitsTo('Logged out')
|
34
|
+
.on('button pressed').transitsTo('Logged out')
|
35
|
+
|
36
|
+
.withEntryAction(/*comment*/'some tags here: and comment text', function(input)
|
37
|
+
{
|
38
|
+
// turn screensaver on
|
39
|
+
})
|
40
|
+
|
41
|
+
.withExitAction(/*comment*/'screensaver: turn off', function(input)
|
42
|
+
{
|
43
|
+
// turn screensave off
|
44
|
+
})
|
45
|
+
|
46
|
+
.withActionOnInput(/*ID*/'button pressed', /*comment*/'commented here', function(input)
|
47
|
+
{
|
48
|
+
})
|
49
|
+
|
50
|
+
.withActionOnTransitsTo(/*ID*/'Logged out', /*comment*/'commented here', function(input)
|
51
|
+
{
|
52
|
+
});
|
53
|
+
|
54
|
+
}).withInitialState('Logged off');
|