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
Binary file
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module rename-to='rhosyncjs'>
|
3
|
+
<!-- Inherit the core Web Toolkit stuff. -->
|
4
|
+
<inherits name='com.google.gwt.user.User'/>
|
5
|
+
|
6
|
+
<!-- Inherit the default GWT style sheet. You can change -->
|
7
|
+
<!-- the theme of your GWT application by uncommenting -->
|
8
|
+
<!-- any one of the following lines. -->
|
9
|
+
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
|
10
|
+
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
|
11
|
+
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
12
|
+
|
13
|
+
<!-- Other module inherits -->
|
14
|
+
<inherits name='RhoSyncStubsJS'/>
|
15
|
+
|
16
|
+
<!-- Specify the app entry point class. -->
|
17
|
+
|
18
|
+
<!-- Specify the paths for translatable code -->
|
19
|
+
<source path='com/rho'/>
|
20
|
+
|
21
|
+
</module>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module rename-to='rhosyncstubsjs'>
|
3
|
+
<!-- Inherit the core Web Toolkit stuff. -->
|
4
|
+
<!-- <inherits name='com.google.gwt.user.User'/> -->
|
5
|
+
|
6
|
+
<!-- Inherit the default GWT style sheet. You can change -->
|
7
|
+
<!-- the theme of your GWT application by uncommenting -->
|
8
|
+
<!-- any one of the following lines. -->
|
9
|
+
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
|
10
|
+
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
|
11
|
+
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
12
|
+
|
13
|
+
<!-- Other module inherits -->
|
14
|
+
|
15
|
+
<entry-point class='com.rho.sync.SyncThread'/>
|
16
|
+
|
17
|
+
<!-- Specify the paths for translatable code -->
|
18
|
+
|
19
|
+
<source path='com/rho'/>
|
20
|
+
|
21
|
+
</module>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
package com.rho;
|
2
|
+
|
3
|
+
import com.rho.net.NetResponse;
|
4
|
+
|
5
|
+
public class RhoAppAdapter {
|
6
|
+
|
7
|
+
public static final int ERR_CLIENTISNOTLOGGEDIN = 0;
|
8
|
+
public static final int ERR_CUSTOMSYNCSERVER = 0;
|
9
|
+
public static final int ERR_NONE = 0;
|
10
|
+
public static final int ERR_REMOTESERVER = 0;
|
11
|
+
public static final int ERR_RUNTIME = 0;
|
12
|
+
public static final int ERR_UNEXPECTEDSERVERRESPONSE = 0;
|
13
|
+
|
14
|
+
public static int getErrorFromResponse(NetResponse resp) {
|
15
|
+
// TODO Auto-generated method stub
|
16
|
+
return 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
public static int getNetErrorCode(Exception exc) {
|
20
|
+
// TODO Auto-generated method stub
|
21
|
+
return 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
public static String getMessageText(String string) {
|
25
|
+
// TODO Auto-generated method stub
|
26
|
+
return null;
|
27
|
+
}
|
28
|
+
|
29
|
+
public static void loadServerSources(String strSources) {
|
30
|
+
// TODO Auto-generated method stub
|
31
|
+
|
32
|
+
}
|
33
|
+
|
34
|
+
public static void resetDBOnSyncUserChanged() {
|
35
|
+
// TODO Auto-generated method stub
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
package com.rho;
|
2
|
+
|
3
|
+
import com.rho.net.NetRequest;
|
4
|
+
import com.rho.file.IFileAccess;
|
5
|
+
import com.rho.file.SimpleFile;
|
6
|
+
|
7
|
+
public class RhoClassFactory {
|
8
|
+
|
9
|
+
public static NetRequest createNetRequest() {
|
10
|
+
// TODO Auto-generated method stub
|
11
|
+
return new NetRequest();
|
12
|
+
}
|
13
|
+
|
14
|
+
public static SimpleFile createFile() {
|
15
|
+
// TODO Auto-generated method stub
|
16
|
+
return null;
|
17
|
+
}
|
18
|
+
|
19
|
+
public static IFileAccess createFileAccess() {
|
20
|
+
// TODO Auto-generated method stub
|
21
|
+
return null;
|
22
|
+
}
|
23
|
+
|
24
|
+
public static IRhoRubyHelper createRhoRubyHelper() {
|
25
|
+
// TODO Auto-generated method stub
|
26
|
+
return null;
|
27
|
+
}
|
28
|
+
|
29
|
+
}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
package com.rho;
|
2
|
+
|
3
|
+
import java.util.HashMap;
|
4
|
+
|
5
|
+
public class RhoConf {
|
6
|
+
String m_strConfFilePath = "";
|
7
|
+
String m_strRhoRootPath = "";
|
8
|
+
|
9
|
+
private HashMap m_mapValues = new HashMap();
|
10
|
+
HashMap/*<String,String>*/ m_mapChangedValues = new HashMap();
|
11
|
+
HashMap/*Ptr<String,Vector<String>* >*/ m_mapConflictedValues = new HashMap();
|
12
|
+
|
13
|
+
private static final RhoLogger LOG = RhoLogger.RHO_STRIP_LOG ? new RhoEmptyLogger() :
|
14
|
+
new RhoLogger("RhoConf");
|
15
|
+
|
16
|
+
private static RhoConf m_Instance;
|
17
|
+
private static final String CONF_FILENAME = "apps/rhoconfig.txt";
|
18
|
+
private static final String CONF_CHANGES = ".changes";
|
19
|
+
private static final String CONF_TIMESTAMP = ".timestamp";
|
20
|
+
private static final String CONF_TIMESTAMP_PROP = "rho_conf_timestamp";
|
21
|
+
|
22
|
+
public static RhoConf getInstance(){return m_Instance;}
|
23
|
+
|
24
|
+
void setConfFilePath(String path){ m_strConfFilePath = path; }
|
25
|
+
String getConfFilePath(){ return m_strConfFilePath; }
|
26
|
+
|
27
|
+
void setRhoRootPath(String szRootPath){ m_strRhoRootPath = szRootPath;}
|
28
|
+
public String getRhoRootPath(){ return m_strRhoRootPath;}
|
29
|
+
|
30
|
+
HashMap/*Ptr<String,Vector<String>* >&*/ getConflicts(){ return m_mapConflictedValues;}
|
31
|
+
|
32
|
+
public String getString(String szName){
|
33
|
+
String value = (String)m_mapValues.get(szName);
|
34
|
+
if ( value != null )
|
35
|
+
return value;
|
36
|
+
|
37
|
+
return "";
|
38
|
+
}
|
39
|
+
|
40
|
+
public String getPath(String szName)
|
41
|
+
{
|
42
|
+
String strPath = getString(szName);
|
43
|
+
if ( strPath.length() == 0 )
|
44
|
+
return strPath;
|
45
|
+
|
46
|
+
return FilePath.join(strPath, "/");
|
47
|
+
}
|
48
|
+
|
49
|
+
public int getInt(String szName){
|
50
|
+
String value = (String)m_mapValues.get(szName);
|
51
|
+
if ( value != null && value.length() > 0 )
|
52
|
+
return Integer.parseInt(value);
|
53
|
+
|
54
|
+
return 0;
|
55
|
+
}
|
56
|
+
|
57
|
+
public boolean getBool(String szName){
|
58
|
+
return getInt(szName) == 0 ? false : true;
|
59
|
+
}
|
60
|
+
|
61
|
+
public void setString(String szName, String str, boolean bSaveToFile){
|
62
|
+
m_mapValues.put(szName,str);
|
63
|
+
}
|
64
|
+
|
65
|
+
public void setInt(String szName, int nVal, boolean bSaveToFile){
|
66
|
+
m_mapValues.put(szName,Integer.toString(nVal));
|
67
|
+
}
|
68
|
+
|
69
|
+
public void setBool(String szName, boolean bVal, boolean bSaveToFile)
|
70
|
+
{
|
71
|
+
setInt(szName, bVal ? 1 : 0, bSaveToFile );
|
72
|
+
}
|
73
|
+
|
74
|
+
public boolean isExist(String szName){
|
75
|
+
return m_mapValues.containsKey(szName);
|
76
|
+
}
|
77
|
+
|
78
|
+
public static void InitRhoConf(){
|
79
|
+
m_Instance = new RhoConf();
|
80
|
+
|
81
|
+
String szRootPath = "";
|
82
|
+
|
83
|
+
m_Instance.setConfFilePath(szRootPath + CONF_FILENAME);
|
84
|
+
m_Instance.setRhoRootPath(szRootPath);
|
85
|
+
}
|
86
|
+
|
87
|
+
public void loadConf()
|
88
|
+
{
|
89
|
+
m_mapValues.clear();
|
90
|
+
m_mapChangedValues.clear();
|
91
|
+
|
92
|
+
loadFromJar();
|
93
|
+
}
|
94
|
+
|
95
|
+
private void loadFromJar()
|
96
|
+
{
|
97
|
+
setString("syncserver", "http://rhodes-store-server.herokuapp.com/application", false);
|
98
|
+
}
|
99
|
+
|
100
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
package com.rho;
|
2
|
+
|
3
|
+
import com.google.gwt.core.client.GWT;
|
4
|
+
|
5
|
+
public class RhoLogger {
|
6
|
+
public static final boolean RHO_STRIP_LOG = false;
|
7
|
+
public static final long EVENT_GUID = 0x4c9c8411d87982f2L;
|
8
|
+
public static String LOGFILENAME = "RhoLog.txt";
|
9
|
+
|
10
|
+
private String m_loggerName;
|
11
|
+
|
12
|
+
public RhoLogger(String name){
|
13
|
+
m_loggerName = name;
|
14
|
+
}
|
15
|
+
|
16
|
+
public void ERROR(String message) {
|
17
|
+
GWT.log("ERROR("+ m_loggerName +"): "+ message);
|
18
|
+
}
|
19
|
+
|
20
|
+
public void INFO(String message) {
|
21
|
+
GWT.log("INFO("+ m_loggerName +"): "+ message);
|
22
|
+
}
|
23
|
+
|
24
|
+
public void ERROR(String message, Exception exc) {
|
25
|
+
GWT.log("ERROR("+ m_loggerName +"): "+ message);
|
26
|
+
GWT.log("EXCEPTION("+ m_loggerName +"): "+ exc.getMessage());
|
27
|
+
}
|
28
|
+
|
29
|
+
public void TRACE(String message) {
|
30
|
+
GWT.log("TRACE("+ m_loggerName +"): "+ message);
|
31
|
+
}
|
32
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
package com.rho;
|
2
|
+
|
3
|
+
public class RhoProfiler {
|
4
|
+
|
5
|
+
public static final boolean RHO_STRIP_PROFILER = false;
|
6
|
+
|
7
|
+
public void CREATE_COUNTER(String string) {
|
8
|
+
// TODO Auto-generated method stub
|
9
|
+
|
10
|
+
}
|
11
|
+
|
12
|
+
public void START(String string) {
|
13
|
+
// TODO Auto-generated method stub
|
14
|
+
|
15
|
+
}
|
16
|
+
|
17
|
+
public void DESTROY_COUNTER(String string) {
|
18
|
+
// TODO Auto-generated method stub
|
19
|
+
|
20
|
+
}
|
21
|
+
|
22
|
+
public void STOP(String string) {
|
23
|
+
// TODO Auto-generated method stub
|
24
|
+
|
25
|
+
}
|
26
|
+
|
27
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
package com.rho;
|
2
|
+
|
3
|
+
public class RhodesApp {
|
4
|
+
|
5
|
+
public static RhodesApp getInstance() {
|
6
|
+
// TODO Auto-generated method stub
|
7
|
+
return null;
|
8
|
+
}
|
9
|
+
|
10
|
+
public String resolveDBFilesPath(String value) {
|
11
|
+
// TODO Auto-generated method stub
|
12
|
+
return null;
|
13
|
+
}
|
14
|
+
|
15
|
+
public String getBlobsDirPath() {
|
16
|
+
// TODO Auto-generated method stub
|
17
|
+
return null;
|
18
|
+
}
|
19
|
+
|
20
|
+
public String getRhoRootPath() {
|
21
|
+
// TODO Auto-generated method stub
|
22
|
+
return null;
|
23
|
+
}
|
24
|
+
|
25
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
package com.rho;
|
2
|
+
|
3
|
+
import com.google.gwt.thirdparty.guava.common.primitives.UnsignedBytes;
|
4
|
+
|
5
|
+
public class TimeInterval {
|
6
|
+
|
7
|
+
public static TimeInterval getCurrentTime() {
|
8
|
+
// TODO Auto-generated method stub
|
9
|
+
return null;
|
10
|
+
}
|
11
|
+
|
12
|
+
public TimeInterval minus(TimeInterval startTime) {
|
13
|
+
// TODO Auto-generated method stub
|
14
|
+
return null;
|
15
|
+
}
|
16
|
+
|
17
|
+
public long toULong() {
|
18
|
+
// TODO Auto-generated method stub
|
19
|
+
return 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
package com.rho;
|
2
|
+
|
3
|
+
public class Tokenizer {
|
4
|
+
|
5
|
+
public Tokenizer() {
|
6
|
+
// TODO Auto-generated constructor stub
|
7
|
+
}
|
8
|
+
|
9
|
+
public Tokenizer(String strAssociations, String string) {
|
10
|
+
// TODO Auto-generated constructor stub
|
11
|
+
}
|
12
|
+
|
13
|
+
public boolean hasMoreTokens() {
|
14
|
+
// TODO Auto-generated method stub
|
15
|
+
return false;
|
16
|
+
}
|
17
|
+
|
18
|
+
public String nextToken() {
|
19
|
+
// TODO Auto-generated method stub
|
20
|
+
return null;
|
21
|
+
}
|
22
|
+
|
23
|
+
}
|
@@ -0,0 +1,174 @@
|
|
1
|
+
package com.rho.db;
|
2
|
+
|
3
|
+
import com.rho.db.DBAttrManager;
|
4
|
+
|
5
|
+
import java.util.Vector;
|
6
|
+
|
7
|
+
/*
|
8
|
+
import com.xruby.runtime.builtin.*;
|
9
|
+
import com.xruby.runtime.lang.*;
|
10
|
+
import com.rho.*;
|
11
|
+
import com.rho.file.*;
|
12
|
+
*/
|
13
|
+
//import java.util.Enumeration;
|
14
|
+
//import java.util.Vector;
|
15
|
+
//import java.util.Hashtable;
|
16
|
+
//
|
17
|
+
//import com.xruby.runtime.lang.RubyBasic;
|
18
|
+
//import com.xruby.runtime.lang.RubyClass;
|
19
|
+
//import com.xruby.runtime.lang.RubyValue;
|
20
|
+
|
21
|
+
public class DBAdapter /*extends RubyBasic*/
|
22
|
+
{
|
23
|
+
|
24
|
+
public static DBAdapter getUserDB() {
|
25
|
+
// TODO Auto-generated method stub
|
26
|
+
return null;
|
27
|
+
}
|
28
|
+
|
29
|
+
public static DBAdapter getDB(String strPartition) {
|
30
|
+
// TODO Auto-generated method stub
|
31
|
+
return null;
|
32
|
+
}
|
33
|
+
|
34
|
+
public IDBResult executeSQL(String string) {
|
35
|
+
// TODO Auto-generated method stub
|
36
|
+
return null;
|
37
|
+
}
|
38
|
+
|
39
|
+
public IDBResult executeSQL(String string, Integer id, String string2) {
|
40
|
+
return null;
|
41
|
+
}
|
42
|
+
|
43
|
+
public IDBResult executeSQL(String string, Long long1, Integer integer,
|
44
|
+
Integer integer2, Long long2, Integer integer3, Integer integer4,
|
45
|
+
Integer id) {
|
46
|
+
return null;
|
47
|
+
// TODO Auto-generated method stub
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
public IDBResult executeSQL(String string, Long long1, Integer id) {
|
52
|
+
return null;
|
53
|
+
// TODO Auto-generated method stub
|
54
|
+
|
55
|
+
}
|
56
|
+
|
57
|
+
public IDBResult executeSQL(String string, String strMetadata, Integer id) {
|
58
|
+
return null;
|
59
|
+
// TODO Auto-generated method stub
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
public IDBResult executeSQL(String strSqlUpdate, String strNewObject,
|
64
|
+
String strOldObject) {
|
65
|
+
return null;
|
66
|
+
// TODO Auto-generated method stub
|
67
|
+
|
68
|
+
}
|
69
|
+
|
70
|
+
public IDBResult executeSQL(String string, String strNewObject,
|
71
|
+
String strAttrib, Integer id, String strOldObject) {
|
72
|
+
return null;
|
73
|
+
// TODO Auto-generated method stub
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
public IDBResult executeSQL(String string, int nSrcID) {
|
78
|
+
// TODO Auto-generated method stub
|
79
|
+
return null;
|
80
|
+
}
|
81
|
+
|
82
|
+
public IDBResult executeSQL(String strSqlUpdate, String strObject) {
|
83
|
+
return null;
|
84
|
+
// TODO Auto-generated method stub
|
85
|
+
|
86
|
+
}
|
87
|
+
|
88
|
+
public IDBResult executeSQL(String string, String strObject, Object elementAt,
|
89
|
+
Integer id) {
|
90
|
+
return null;
|
91
|
+
// TODO Auto-generated method stub
|
92
|
+
|
93
|
+
}
|
94
|
+
|
95
|
+
public IDBResult executeSQLEx(String strSqlUpdate, Vector vecValues) {
|
96
|
+
return null;
|
97
|
+
// TODO Auto-generated method stub
|
98
|
+
|
99
|
+
}
|
100
|
+
|
101
|
+
public IDBResult executeSQLReportNonUnique(String string,
|
102
|
+
String m_strAttrib, Integer id, String strObject, String m_strValue) {
|
103
|
+
// TODO Auto-generated method stub
|
104
|
+
return null;
|
105
|
+
}
|
106
|
+
|
107
|
+
public IDBResult executeSQLReportNonUniqueEx(String strSqlInsert,
|
108
|
+
Vector vecValues) {
|
109
|
+
// TODO Auto-generated method stub
|
110
|
+
return null;
|
111
|
+
}
|
112
|
+
|
113
|
+
public static Vector getDBAllPartitionNames() {
|
114
|
+
// TODO Auto-generated method stub
|
115
|
+
return null;
|
116
|
+
}
|
117
|
+
|
118
|
+
public void endTransaction() {
|
119
|
+
// TODO Auto-generated method stub
|
120
|
+
|
121
|
+
}
|
122
|
+
|
123
|
+
public DBAttrManager getAttrMgr() {
|
124
|
+
// TODO Auto-generated method stub
|
125
|
+
return null;
|
126
|
+
}
|
127
|
+
|
128
|
+
public IDBResult executeSQL(String string, String m_strValue, String strObject,
|
129
|
+
String m_strAttrib, Integer id) {
|
130
|
+
return null;
|
131
|
+
// TODO Auto-generated method stub
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
public String getDBPath() {
|
136
|
+
// TODO Auto-generated method stub
|
137
|
+
return null;
|
138
|
+
}
|
139
|
+
|
140
|
+
public static void initAttrManager() {
|
141
|
+
// TODO Auto-generated method stub
|
142
|
+
|
143
|
+
}
|
144
|
+
|
145
|
+
public boolean isTableExist(String m_strName) {
|
146
|
+
// TODO Auto-generated method stub
|
147
|
+
return false;
|
148
|
+
}
|
149
|
+
|
150
|
+
public boolean isUIWaitDB() {
|
151
|
+
// TODO Auto-generated method stub
|
152
|
+
return false;
|
153
|
+
}
|
154
|
+
|
155
|
+
public void Lock() {
|
156
|
+
// TODO Auto-generated method stub
|
157
|
+
|
158
|
+
}
|
159
|
+
|
160
|
+
public void Unlock() {
|
161
|
+
// TODO Auto-generated method stub
|
162
|
+
|
163
|
+
}
|
164
|
+
|
165
|
+
public void setBulkSyncDB(String fDataName, String fScriptName) {
|
166
|
+
// TODO Auto-generated method stub
|
167
|
+
|
168
|
+
}
|
169
|
+
|
170
|
+
public void startTransaction() {
|
171
|
+
// TODO Auto-generated method stub
|
172
|
+
|
173
|
+
}
|
174
|
+
}
|