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,219 @@
|
|
1
|
+
package com.rhomobile.rhoconnect_client_test;
|
2
|
+
|
3
|
+
import java.io.File;
|
4
|
+
import java.io.FileInputStream;
|
5
|
+
import java.io.FileWriter;
|
6
|
+
import java.text.SimpleDateFormat;
|
7
|
+
import java.util.Collection;
|
8
|
+
import java.util.Date;
|
9
|
+
import java.util.HashMap;
|
10
|
+
import java.util.Map;
|
11
|
+
|
12
|
+
import com.rhomobile.rhoconnect.RhoConnectClient;
|
13
|
+
import com.rhomobile.rhoconnect.RhoConnectNotify;
|
14
|
+
import com.rhomobile.rhoconnect.RhomModel;
|
15
|
+
import com.rhomobile.rhodes.RhoLogConf;
|
16
|
+
import com.rhomobile.rhodes.file.RhoFileApi;
|
17
|
+
|
18
|
+
import android.content.pm.ApplicationInfo;
|
19
|
+
import android.test.AndroidTestCase;
|
20
|
+
|
21
|
+
public class TestRhoConnectClientBlobs extends AndroidTestCase
|
22
|
+
{
|
23
|
+
private final String SYNC_URL = "http://rhodes-samples-server.heroku.com/application";
|
24
|
+
private final String TEST_FILENAME = "blobtest.txt";
|
25
|
+
private final String TEST_BLOB_CONTENT = "Blob tets at" + new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(new Date());
|
26
|
+
|
27
|
+
RhoConnectClient mClient;
|
28
|
+
RhomModel mModels[];
|
29
|
+
RhomModel mBlobTest;
|
30
|
+
|
31
|
+
@Override
|
32
|
+
protected void setUp()
|
33
|
+
{
|
34
|
+
System.loadLibrary("rhoconnectclient");
|
35
|
+
|
36
|
+
ApplicationInfo appInfo = this.getContext().getApplicationInfo();
|
37
|
+
try {
|
38
|
+
RhoFileApi.initRootPath(appInfo.dataDir, appInfo.sourceDir, null);
|
39
|
+
RhoFileApi.init(this.getContext());
|
40
|
+
RhoFileApi.setFsModeTransparrent(true);
|
41
|
+
|
42
|
+
RhoLogConf.setMinSeverity(0);
|
43
|
+
RhoLogConf.setEnabledCategories("*");
|
44
|
+
|
45
|
+
RhoConnectClient.nativeInit();
|
46
|
+
} catch (Exception e) {
|
47
|
+
fail(e.getMessage());
|
48
|
+
}
|
49
|
+
|
50
|
+
mClient = new RhoConnectClient();
|
51
|
+
|
52
|
+
mModels = new RhomModel[]{
|
53
|
+
new RhomModel("BlobTest", RhomModel.SYNC_TYPE_INCREMENTAL)
|
54
|
+
};
|
55
|
+
mBlobTest = mModels[0];
|
56
|
+
mBlobTest.getBlobAttribs().put("image_uri", false);
|
57
|
+
|
58
|
+
mClient.initialize(mModels);
|
59
|
+
mClient.setThreadedMode(false);
|
60
|
+
mClient.setPollInterval(0);
|
61
|
+
mClient.setSyncServer(SYNC_URL);
|
62
|
+
mClient.setBulkSyncState(1);
|
63
|
+
}
|
64
|
+
|
65
|
+
@Override
|
66
|
+
protected void tearDown()
|
67
|
+
{
|
68
|
+
mClient.databaseFullResetAndLogout();
|
69
|
+
mClient.close();
|
70
|
+
}
|
71
|
+
|
72
|
+
public void test1Login()
|
73
|
+
{
|
74
|
+
RhoConnectNotify notify = mClient.loginWithUserSync("test", "");
|
75
|
+
assertEquals(notify.getErrorCode(), 0);
|
76
|
+
assertTrue(mClient.isLoggedIn());
|
77
|
+
}
|
78
|
+
|
79
|
+
public void test2SupportBlobType()
|
80
|
+
{
|
81
|
+
String blobUri = new File(RhoFileApi.getDbFilesUriPath(), TEST_FILENAME).getPath();
|
82
|
+
File testFile = new File(RhoFileApi.getDbFilesPath(), TEST_FILENAME);
|
83
|
+
if (testFile.exists()) {
|
84
|
+
testFile.delete();
|
85
|
+
if (testFile.exists()) {
|
86
|
+
fail("Cannot remove test file: " + testFile.getAbsolutePath());
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
try {
|
91
|
+
testFile.createNewFile();
|
92
|
+
FileWriter writer = new FileWriter(testFile);
|
93
|
+
writer.write(TEST_BLOB_CONTENT);
|
94
|
+
writer.close();
|
95
|
+
} catch(Exception e)
|
96
|
+
{
|
97
|
+
fail("Cannot write test blob file: " + testFile.getAbsolutePath());
|
98
|
+
}
|
99
|
+
assertTrue(testFile.exists());
|
100
|
+
|
101
|
+
Map<String, String> item = new HashMap<String, String>();
|
102
|
+
item.put("name", new Long(new Date().getTime()).toString());
|
103
|
+
item.put("image_uri", blobUri);
|
104
|
+
|
105
|
+
mBlobTest.create(item);
|
106
|
+
assertTrue(item.containsKey("object"));
|
107
|
+
assertEquals(blobUri, item.get("image_uri"));
|
108
|
+
assertTrue(new File(RhoFileApi.getDbFilesPath(), TEST_FILENAME).exists());
|
109
|
+
|
110
|
+
mBlobTest.destroy(item);
|
111
|
+
|
112
|
+
Map<String, String> cond = new HashMap<String, String>();
|
113
|
+
cond.put("name", item.get("name"));
|
114
|
+
Map<String, String> itemFound = mBlobTest.findFirst(cond);
|
115
|
+
|
116
|
+
assertNull(itemFound);
|
117
|
+
assertFalse(testFile.exists());
|
118
|
+
}
|
119
|
+
public void test3SyncBlobTest()
|
120
|
+
{
|
121
|
+
RhoConnectNotify notify = mClient.loginWithUserSync("test", "");
|
122
|
+
assertEquals(notify.getErrorCode(), 0);
|
123
|
+
assertTrue(mClient.isLoggedIn());
|
124
|
+
|
125
|
+
notify = mBlobTest.sync();
|
126
|
+
assertEquals(notify.getErrorMessage(), 0, notify.getErrorCode());
|
127
|
+
}
|
128
|
+
|
129
|
+
public void test4DeleteAllBlobs()
|
130
|
+
{
|
131
|
+
RhoConnectNotify notify = mClient.loginWithUserSync("test", "");
|
132
|
+
assertEquals(notify.getErrorCode(), 0);
|
133
|
+
assertTrue(mClient.isLoggedIn());
|
134
|
+
|
135
|
+
notify = mBlobTest.sync();
|
136
|
+
assertEquals(notify.getErrorMessage(), 0, notify.getErrorCode());
|
137
|
+
|
138
|
+
Collection<Map<String, String> > items = mBlobTest.findAll(null);
|
139
|
+
if (items != null && items.size() > 0) {
|
140
|
+
for (Map<String, String> item : items) {
|
141
|
+
mBlobTest.destroy(item);
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
notify = mBlobTest.sync();
|
146
|
+
assertEquals(notify.getErrorMessage(), 0, notify.getErrorCode());
|
147
|
+
|
148
|
+
items = mBlobTest.findAll(null);
|
149
|
+
assertTrue(items == null || items.size() == 0);
|
150
|
+
}
|
151
|
+
|
152
|
+
public void test5CreateNewBlobObject()
|
153
|
+
{
|
154
|
+
String fileName = "androidtest.png";
|
155
|
+
String filePath = new File("apps", fileName).getPath();
|
156
|
+
|
157
|
+
RhoConnectNotify notify = mClient.loginWithUserSync("test", "");
|
158
|
+
assertEquals(notify.getErrorCode(), 0);
|
159
|
+
assertTrue(mClient.isLoggedIn());
|
160
|
+
|
161
|
+
Map<String, String> item = new HashMap<String, String>();
|
162
|
+
item.put("image_uri", "apps/" + fileName);
|
163
|
+
|
164
|
+
mBlobTest.create(item);
|
165
|
+
mBlobTest.save(item);
|
166
|
+
|
167
|
+
notify = mBlobTest.sync();
|
168
|
+
assertEquals(notify.getErrorMessage(), 0, notify.getErrorCode());
|
169
|
+
|
170
|
+
Collection<Map<String, String> > items = mBlobTest.findAll(null);
|
171
|
+
assertNotNull(items);
|
172
|
+
assertEquals(1, items.size());
|
173
|
+
|
174
|
+
Map<String, String> newItem = items.iterator().next();
|
175
|
+
assertFalse(filePath.equals(newItem.get("image_uri")));
|
176
|
+
|
177
|
+
String files[] = new String[] {"apps/" + fileName };
|
178
|
+
RhoFileApi.initialCopy(this.getContext(), files);
|
179
|
+
|
180
|
+
File file = new File(RhoFileApi.absolutePath(filePath));
|
181
|
+
File newFile = new File(RhoFileApi.absolutePath(newItem.get("image_uri")));
|
182
|
+
|
183
|
+
assertTrue(file.isFile());
|
184
|
+
assertEquals(file.length(), newFile.length());
|
185
|
+
|
186
|
+
FileInputStream fileStream = null;
|
187
|
+
FileInputStream newFileStream = null;
|
188
|
+
int b1 = 0;
|
189
|
+
int b2 = 0;
|
190
|
+
try {
|
191
|
+
fileStream = new FileInputStream(file);
|
192
|
+
newFileStream = new FileInputStream(newFile);
|
193
|
+
|
194
|
+
do {
|
195
|
+
b1 = fileStream.read();
|
196
|
+
b2 = newFileStream.read();
|
197
|
+
} while (b1 == b2 && (b1 != -1 && b2 != -1));
|
198
|
+
|
199
|
+
} catch (Throwable e){
|
200
|
+
try {
|
201
|
+
if (fileStream != null)
|
202
|
+
fileStream.close();
|
203
|
+
} catch (Throwable e1){}
|
204
|
+
try {
|
205
|
+
if (newFileStream != null)
|
206
|
+
newFileStream.close();
|
207
|
+
} catch (Throwable e1){}
|
208
|
+
|
209
|
+
fail(e.getMessage());
|
210
|
+
}
|
211
|
+
|
212
|
+
// Check both streams reach end
|
213
|
+
assertTrue(b1 == -1 && b2 == -1);
|
214
|
+
|
215
|
+
file.delete();
|
216
|
+
}
|
217
|
+
|
218
|
+
}
|
219
|
+
|
@@ -0,0 +1,93 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<projectDescription>
|
3
|
+
<name>RhoConnectClient</name>
|
4
|
+
<comment></comment>
|
5
|
+
<projects>
|
6
|
+
</projects>
|
7
|
+
<buildSpec>
|
8
|
+
<buildCommand>
|
9
|
+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
10
|
+
<triggers>clean,full,incremental,</triggers>
|
11
|
+
<arguments>
|
12
|
+
<dictionary>
|
13
|
+
<key>?name?</key>
|
14
|
+
<value></value>
|
15
|
+
</dictionary>
|
16
|
+
<dictionary>
|
17
|
+
<key>org.eclipse.cdt.make.core.append_environment</key>
|
18
|
+
<value>true</value>
|
19
|
+
</dictionary>
|
20
|
+
<dictionary>
|
21
|
+
<key>org.eclipse.cdt.make.core.buildArguments</key>
|
22
|
+
<value></value>
|
23
|
+
</dictionary>
|
24
|
+
<dictionary>
|
25
|
+
<key>org.eclipse.cdt.make.core.buildCommand</key>
|
26
|
+
<value>ndk-build</value>
|
27
|
+
</dictionary>
|
28
|
+
<dictionary>
|
29
|
+
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
|
30
|
+
<value>clean</value>
|
31
|
+
</dictionary>
|
32
|
+
<dictionary>
|
33
|
+
<key>org.eclipse.cdt.make.core.contents</key>
|
34
|
+
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
|
35
|
+
</dictionary>
|
36
|
+
<dictionary>
|
37
|
+
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
|
38
|
+
<value>false</value>
|
39
|
+
</dictionary>
|
40
|
+
<dictionary>
|
41
|
+
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
|
42
|
+
<value>true</value>
|
43
|
+
</dictionary>
|
44
|
+
<dictionary>
|
45
|
+
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
|
46
|
+
<value>true</value>
|
47
|
+
</dictionary>
|
48
|
+
<dictionary>
|
49
|
+
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
|
50
|
+
<value>V=1</value>
|
51
|
+
</dictionary>
|
52
|
+
<dictionary>
|
53
|
+
<key>org.eclipse.cdt.make.core.stopOnError</key>
|
54
|
+
<value>true</value>
|
55
|
+
</dictionary>
|
56
|
+
<dictionary>
|
57
|
+
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
|
58
|
+
<value>true</value>
|
59
|
+
</dictionary>
|
60
|
+
</arguments>
|
61
|
+
</buildCommand>
|
62
|
+
<buildCommand>
|
63
|
+
<name>org.eclipse.jdt.core.javabuilder</name>
|
64
|
+
<arguments>
|
65
|
+
</arguments>
|
66
|
+
</buildCommand>
|
67
|
+
<buildCommand>
|
68
|
+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
69
|
+
<triggers>full,incremental,</triggers>
|
70
|
+
<arguments>
|
71
|
+
</arguments>
|
72
|
+
</buildCommand>
|
73
|
+
</buildSpec>
|
74
|
+
<natures>
|
75
|
+
<nature>org.eclipse.jdt.core.javanature</nature>
|
76
|
+
<nature>org.eclipse.cdt.core.cnature</nature>
|
77
|
+
<nature>org.eclipse.cdt.core.ccnature</nature>
|
78
|
+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
79
|
+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
80
|
+
</natures>
|
81
|
+
<linkedResources>
|
82
|
+
<link>
|
83
|
+
<name>rhodes-jni</name>
|
84
|
+
<type>2</type>
|
85
|
+
<location>/Users/lexis_tikh/rhomobile/rhodes/platform/android/Rhodes/jni</location>
|
86
|
+
</link>
|
87
|
+
<link>
|
88
|
+
<name>shared</name>
|
89
|
+
<type>2</type>
|
90
|
+
<location>/Users/lexis_tikh/rhomobile/rhodes/platform/shared</location>
|
91
|
+
</link>
|
92
|
+
</linkedResources>
|
93
|
+
</projectDescription>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Rhodes runtime properties
|
2
|
+
#MinSeverity = 0
|
3
|
+
#LogToOutput = 1
|
4
|
+
#LogCategories = *
|
5
|
+
#ExcludeLogCategories =
|
6
|
+
|
7
|
+
# Sync server url. Typically this will look like 'http://<hostname>:<port>/application'
|
8
|
+
# For example: 'http://localhost:9292/application'
|
9
|
+
#syncserver = 'http://localhost:9292/application'
|
10
|
+
#syncserver = 'http://rhodes-store-server.herokuapp.com/application'
|
11
|
+
#sync_poll_interval=0
|
12
|
+
|
13
|
+
#syncserver = 'http://store-bulk.rhohub.com/application'
|
14
|
+
#bulksync_state=0
|
15
|
+
|
16
|
+
#logserver = 'http://rhologs.heroku.com?id=1234'
|
17
|
+
#logname='store'
|
18
|
+
|
19
|
+
#net_trace=1
|
@@ -0,0 +1 @@
|
|
1
|
+
1309958873.80886
|
@@ -0,0 +1,44 @@
|
|
1
|
+
CREATE TABLE client_info (
|
2
|
+
"client_id" VARCHAR(255) default NULL,
|
3
|
+
"session" VARCHAR(255) default NULL,
|
4
|
+
"token" VARCHAR(255) default NULL,
|
5
|
+
"token_sent" BIGINT default 0,
|
6
|
+
"reset" BIGINT default 0,
|
7
|
+
"port" VARCHAR(10) default NULL,
|
8
|
+
"last_sync_success" VARCHAR(100) default NULL);
|
9
|
+
CREATE TABLE object_values (
|
10
|
+
"source_id" BIGINT default NULL,
|
11
|
+
"attrib" varchar(255) default NULL,
|
12
|
+
"object" varchar(255) default NULL,
|
13
|
+
"value" varchar default NULL);
|
14
|
+
CREATE TABLE changed_values (
|
15
|
+
"source_id" BIGINT default NULL,
|
16
|
+
"attrib" varchar(255) default NULL,
|
17
|
+
"object" varchar(255) default NULL,
|
18
|
+
"value" varchar default NULL,
|
19
|
+
"attrib_type" varchar(255) default NULL,
|
20
|
+
"update_type" varchar(255) default NULL,
|
21
|
+
"sent" BIGINT default 0);
|
22
|
+
CREATE TABLE sources (
|
23
|
+
"source_id" BIGINT PRIMARY KEY,
|
24
|
+
"name" VARCHAR(255) default NULL,
|
25
|
+
"token" BIGINT default NULL,
|
26
|
+
"sync_priority" BIGINT,
|
27
|
+
"partition" VARCHAR(255),
|
28
|
+
"sync_type" VARCHAR(255),
|
29
|
+
"metadata" varchar default NULL,
|
30
|
+
"last_updated" BIGINT default 0,
|
31
|
+
"last_inserted_size" BIGINT default 0,
|
32
|
+
"last_deleted_size" BIGINT default 0,
|
33
|
+
"last_sync_duration" BIGINT default 0,
|
34
|
+
"last_sync_success" BIGINT default 0,
|
35
|
+
"backend_refresh_time" BIGINT default 0,
|
36
|
+
"source_attribs" varchar default NULL,
|
37
|
+
"schema" varchar default NULL,
|
38
|
+
"schema_version" varchar default NULL,
|
39
|
+
"associations" varchar default NULL,
|
40
|
+
"blob_attribs" varchar default NULL);
|
41
|
+
CREATE INDEX by_src_id on object_values ("source_id");
|
42
|
+
CREATE UNIQUE INDEX by_src_object ON object_values ("object", "attrib", "source_id");
|
43
|
+
CREATE INDEX by_src_value ON object_values ("attrib", "source_id", "value");
|
44
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
CREATE TRIGGER rhodeleteTrigger BEFORE DELETE ON object_values FOR EACH ROW
|
2
|
+
BEGIN
|
3
|
+
SELECT rhoOnDeleteObjectRecord(OLD.value, OLD.source_id, OLD.attrib );
|
4
|
+
END;
|
5
|
+
;
|
6
|
+
CREATE TRIGGER rhoupdateTrigger BEFORE UPDATE ON object_values FOR EACH ROW WHEN NEW.value != OLD.value
|
7
|
+
BEGIN
|
8
|
+
SELECT rhoOnUpdateObjectRecord(OLD.value, OLD.source_id, OLD.attrib );
|
9
|
+
END;
|
10
|
+
;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
CREATE TABLE object_attribs_to_delete(
|
2
|
+
"source_id" BIGINT default NULL,
|
3
|
+
"attrib" varchar(255) default NULL,
|
4
|
+
"object" varchar(255) default NULL,
|
5
|
+
"value" varchar default NULL);
|
6
|
+
CREATE TABLE object_attribs_to_update(
|
7
|
+
"source_id" BIGINT default NULL,
|
8
|
+
"attrib" varchar(255) default NULL,
|
9
|
+
"object" varchar(255) default NULL,
|
10
|
+
"value" varchar default NULL);
|
11
|
+
|
12
|
+
CREATE TRIGGER rhodeleteTrigger BEFORE DELETE ON object_values FOR EACH ROW
|
13
|
+
BEGIN
|
14
|
+
INSERT INTO object_attribs_to_delete(source_id, attrib, value) VALUES (OLD.source_id, OLD.attrib, OLD.value);
|
15
|
+
END;
|
16
|
+
;
|
17
|
+
CREATE TRIGGER rhoupdateTrigger BEFORE UPDATE ON object_values FOR EACH ROW WHEN NEW.value != OLD.value
|
18
|
+
BEGIN
|
19
|
+
INSERT INTO object_attribs_to_update(source_id, attrib, value) VALUES (OLD.source_id, OLD.attrib, OLD.value);
|
20
|
+
END;
|
21
|
+
;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
apps dir 4096 1309959201
|
2
|
+
apps/rhoconfig.txt file 1091 1309958873
|
3
|
+
apps/rhoconfig.txt.timestamp file 16 1309958873
|
4
|
+
db dir 4096 1309959201
|
5
|
+
db/syncdb.schema file 1609 1309958874
|
6
|
+
db/syncdb.triggers file 380 1309958874
|
7
|
+
db/syncdb_java.triggers file 821 1309958874
|
8
|
+
rho.dat file 20480 1309959201
|
@@ -0,0 +1,61 @@
|
|
1
|
+
/*------------------------------------------------------------------------
|
2
|
+
* (The MIT License)
|
3
|
+
*
|
4
|
+
* Copyright (c) 2008-2011 Rhomobile, Inc.
|
5
|
+
*
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
11
|
+
* furnished to do so, subject to the following conditions:
|
12
|
+
*
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
14
|
+
* all copies or substantial portions of the Software.
|
15
|
+
*
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
* THE SOFTWARE.
|
23
|
+
*
|
24
|
+
* http://rhomobile.com
|
25
|
+
|
26
|
+
* Copyright (c) 2011-2016 Symbol Technologies, Inc.
|
27
|
+
*
|
28
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
29
|
+
* of this software and associated documentation files (the "Software"), to deal
|
30
|
+
* in the Software without restriction, including without limitation the rights
|
31
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
32
|
+
* copies of the Software, and to permit persons to whom the Software is
|
33
|
+
* furnished to do so, subject to the following conditions:
|
34
|
+
*
|
35
|
+
* The above copyright notice and this permission notice shall be included in
|
36
|
+
* all copies or substantial portions of the Software.
|
37
|
+
*
|
38
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
39
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
40
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
41
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
42
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
43
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
44
|
+
* THE SOFTWARE.
|
45
|
+
*
|
46
|
+
* http://symbol.com
|
47
|
+
*------------------------------------------------------------------------*/
|
48
|
+
|
49
|
+
#ifndef RHOCONNECTJNINOTIFY_H_INCLUDED
|
50
|
+
#define RHOCONNECTJNINOTIFY_H_INCLUDED
|
51
|
+
|
52
|
+
#include <jni.h>
|
53
|
+
|
54
|
+
namespace rho { namespace connect_jni {
|
55
|
+
|
56
|
+
jobject rhoconnect_jni_parsenotify(JNIEnv * env, const char* res);
|
57
|
+
jobject rhoconnect_jni_parseobjectnotify(JNIEnv * env, const char* res);
|
58
|
+
|
59
|
+
}}
|
60
|
+
|
61
|
+
#endif // RHOCONNECTJNINOTIFY_H_INCLUDED
|