rhodes 3.0.2 → 3.1.0.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +13 -2
- data/Rakefile +200 -18
- data/bin/get-rhodes-info +1 -1
- data/doc/build.txt +174 -98
- data/doc/configuration.txt +13 -2
- data/doc/device-caps.txt +184 -24
- data/doc/extensions.txt +19 -1
- data/doc/generator.txt +18 -18
- data/doc/install.txt +15 -4
- data/doc/introduction.txt +19 -20
- data/doc/nfc.txt +1617 -513
- data/doc/release.txt +85 -41
- data/doc/rhom.txt +11 -1
- data/doc/simulator.txt +15 -5
- data/doc/synchronization.txt +21 -7
- data/doc/ui.txt +4 -0
- data/installer/rhostudio.nsi +464 -0
- data/lib/build/compileERB/bb.rb +26 -0
- data/lib/build/compileERB/default.rb +26 -0
- data/lib/build/compileRB/compileRB.rb +26 -0
- data/lib/build/jake.rb +27 -2
- data/lib/build/rhodes-build.rb +26 -0
- data/lib/extensions/barcode/ext.yml +3 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/AndroidManifest.xml +27 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/Rakefile +13 -13
- data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable-hdpi/cancel_icon.png +0 -0
- data/{platform/wp7/WPApplication/rho/apps/public/images/android/btn_check_on.png → lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable-hdpi/ok_icon.png} +0 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable-hdpi/retake_icon.png +0 -0
- data/{platform/wp7/WPApplication/rho/apps/public/images/android/btn_radio_on.png → lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable/cancel_icon.png} +0 -0
- data/{platform/wp7/WPApplication/rho/apps/public/images/android/disclosure.png → lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable/ok_icon.png} +0 -0
- data/{platform/wp7/WPApplication/rho/apps/public/images/android/btn_radio_off.png → lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable/retake_icon.png} +0 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/layout/capture.xml +122 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/raw/beep.ogg +0 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/values/attrs.xml +20 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/values/colors.xml +42 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/values/ids.xml +31 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/ext_build.files +15 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/jni/src/barcode.cpp +16 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/CaptureActivity.java +778 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/CaptureActivityHandler.java +136 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/DecodeHandler.java +99 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/DecodeThread.java +121 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/FinishListener.java +48 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/InactivityTimer.java +71 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/LocaleManager.java +97 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/PlanarYUVLuminanceSource.java +133 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/ViewfinderResultPointCallback.java +34 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/ViewfinderView.java +157 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/AutoFocusCallback.java +51 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/CameraConfigurationManager.java +280 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/CameraManager.java +318 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/FlashlightManager.java +148 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/PreviewCallback.java +59 -0
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/rhomobile/barcode/Barcode.java +44 -1
- data/lib/extensions/barcode/ext/barcode/platform/bb/Rakefile +1 -1
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/barcode.m +4 -0
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode.i +5 -0
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode_wrap.c +138 -389
- data/lib/extensions/barcode/ext/barcode/shared/src/zbar.c +5 -0
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/README.TXT +5 -0
- data/lib/extensions/debugger/CHANGELOG +10 -0
- data/lib/extensions/debugger/LICENSE +21 -0
- data/lib/extensions/debugger/README.md +8 -0
- data/lib/extensions/debugger/debugger.rb +57 -9
- data/lib/extensions/esri/ext/esri/platform/iphone/Classes/MapViewControllerESRI.h +24 -7
- data/lib/extensions/esri/ext/esri/platform/iphone/Classes/MapViewControllerESRI.m +18 -17
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/Nfc.java +9 -4
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcActivity.java +1 -1
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcMessage.java +0 -1
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcMessagePack.java +0 -1
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcRecord.java +1 -1
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcTechActivity.java +0 -1
- data/lib/extensions/nfc/nfc.rb +9 -3
- data/lib/extensions/rholang/rholang/lang_cs.rb +3 -3
- data/lib/extensions/rholang/rholang/lang_da.rb +3 -3
- data/lib/extensions/rholang/rholang/lang_de.rb +3 -3
- data/lib/extensions/rholang/rholang/lang_es.rb +3 -3
- data/lib/extensions/rholang/rholang/lang_es_ar.rb +3 -3
- data/lib/extensions/rholang/rholang/lang_ko.rb +3 -3
- data/lib/extensions/rholang/rholang/lang_nl.rb +3 -3
- data/lib/extensions/rholang/rholang/lang_no.rb +3 -3
- data/lib/extensions/rholang/rholang/lang_pt_br.rb +4 -4
- data/lib/extensions/rholang/rholang/lang_se.rb +3 -3
- data/lib/extensions/rholang/rholang/lang_sr.rb +3 -3
- data/lib/framework/builtinME.rb +31 -2
- data/lib/framework/dateME.rb +26 -0
- data/lib/framework/res/back_btn.sym.png +0 -0
- data/lib/framework/res/blue_pushpin_small.sym.png +0 -0
- data/lib/framework/res/callout.sym.png +0 -0
- data/lib/framework/res/callout_link.sym.png +0 -0
- data/lib/framework/res/esri.sym.png +0 -0
- data/lib/framework/res/forward_btn.sym.png +0 -0
- data/lib/framework/res/home_btn.sym.png +0 -0
- data/{platform/wp7/WPApplication/rho/apps/public/images/android/btn_check_off.png → lib/framework/res/options_btn.sym.png} +0 -0
- data/lib/framework/res/refresh_btn.sym.png +0 -0
- data/lib/framework/rho/mapview.rb +26 -0
- data/lib/framework/rho/render.rb +34 -2
- data/lib/framework/rho/rho.rb +28 -2
- data/lib/framework/rho/rhoapplication.rb +26 -0
- data/lib/framework/rho/rhobluetooth.rb +70 -0
- data/lib/framework/rho/rhocontact.rb +26 -0
- data/lib/framework/rho/rhocontroller.rb +26 -0
- data/lib/framework/rho/rhoerror.rb +26 -0
- data/lib/framework/rho/rhoevent.rb +26 -0
- data/lib/framework/rho/rhoevent_bb.rb +26 -0
- data/lib/framework/rho/rhoevent_c.rb +26 -0
- data/lib/framework/rho/rhofsconnector.rb +25 -0
- data/lib/framework/rho/rhomsg.rb +26 -0
- data/lib/framework/rho/rhonativeviewmanager.rb +25 -0
- data/lib/framework/rho/rhosupport.rb +32 -1
- data/lib/framework/rho/rhotabbar.rb +27 -1
- data/lib/framework/rho/rhotoolbar.rb +26 -1
- data/lib/framework/rho/rhoutils.rb +26 -0
- data/lib/framework/rho/rhoviewhelpers.rb +26 -0
- data/lib/framework/rhoappmanifest.rb +26 -0
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/rhoframework.rb +77 -0
- data/lib/framework/rhom/rhom.rb +30 -19
- data/lib/framework/rhom/rhom_db_adapter.rb +26 -19
- data/lib/framework/rhom/rhom_model.rb +25 -0
- data/lib/framework/rhom/rhom_object.rb +26 -19
- data/lib/framework/rhom/rhom_object_factory.rb +73 -55
- data/lib/framework/rhom/rhom_source.rb +26 -0
- data/lib/framework/rhosystem.rb +47 -16
- data/lib/framework/version.rb +1 -1
- data/lib/rhodes.rb +1 -1
- data/platform/android/Rhodes/AndroidManifest.xml +5 -4
- data/platform/android/Rhodes/default.properties +1 -1
- data/platform/android/Rhodes/jni/Android.mk +365 -0
- data/platform/android/Rhodes/jni/Application.mk +3 -0
- data/platform/android/Rhodes/jni/genconfig.h +17 -0
- data/platform/android/Rhodes/jni/include/rhodes.h +26 -0
- data/platform/android/Rhodes/jni/include/rhodes/JNIRhoRuby.h +71 -0
- data/platform/android/Rhodes/jni/include/rhodes/JNIRhodes.h +47 -33
- data/platform/android/Rhodes/jni/include/rhodes/RhoClassFactory.h +46 -1
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_RhoLogConf.h +11 -11
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_RhodesService.h +1 -9
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_camera_Camera.h +2 -2
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_file_RhoFileApi.h +8 -0
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_mainview_SplashScreen.h +39 -0
- data/platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h +26 -0
- data/platform/android/Rhodes/jni/include/rhodes/sslimpl.h +26 -0
- data/platform/android/Rhodes/jni/rhocaps.inc +12 -0
- data/platform/android/Rhodes/jni/src/JNIRhoRuby.cpp +204 -0
- data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +32 -5
- data/platform/android/Rhodes/jni/src/alert.cpp +29 -5
- data/platform/android/Rhodes/jni/src/bluetooth.cpp +68 -3
- data/platform/android/Rhodes/jni/src/callbacks.cpp +40 -15
- data/platform/android/Rhodes/jni/src/camera.cpp +84 -7
- data/platform/android/Rhodes/jni/src/datetimepicker.cpp +26 -0
- data/platform/android/Rhodes/jni/src/event.cpp +27 -0
- data/platform/android/Rhodes/jni/src/fileapi.cpp +66 -2
- data/platform/android/Rhodes/jni/src/geolocation.cpp +26 -0
- data/platform/android/Rhodes/jni/src/logconf.cpp +44 -29
- data/platform/android/Rhodes/jni/src/logger.cpp +26 -0
- data/platform/android/Rhodes/jni/src/mapview.cpp +30 -0
- data/platform/android/Rhodes/jni/src/menu.cpp +26 -0
- data/platform/android/Rhodes/jni/src/nativebar.cpp +27 -8
- data/platform/android/Rhodes/jni/src/nativeview.cpp +26 -0
- data/platform/android/Rhodes/jni/src/navbar.cpp +27 -0
- data/platform/android/Rhodes/jni/src/phonebook.cpp +27 -0
- data/platform/android/Rhodes/jni/src/rhoconf.cpp +26 -0
- data/platform/android/Rhodes/jni/src/rhocryptimpl.cpp +26 -0
- data/platform/android/Rhodes/jni/src/rhodes.cpp +40 -593
- data/platform/android/Rhodes/jni/src/rhodesapp.cpp +326 -0
- data/platform/android/Rhodes/jni/src/rhodessystem.cpp +186 -0
- data/platform/android/Rhodes/jni/src/ringtones.cpp +27 -0
- data/platform/android/Rhodes/jni/src/signature.cpp +26 -0
- data/platform/android/Rhodes/jni/src/socketimpl.cpp +26 -0
- data/platform/android/Rhodes/jni/src/splashscreen.cpp +30 -4
- data/platform/android/Rhodes/jni/src/sslimpl.cpp +27 -0
- data/platform/android/Rhodes/jni/src/webview.cpp +27 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/HttpLog.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeBar.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeLibraries.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NavBar.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Push.java +27 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/PushReceiver.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/PushService.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoConf.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoCryptImpl.java +29 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoLogConf.java +36 -30
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMenu.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +81 -73
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivityListener.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivityStartupListeners.java +1 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesAppOptions.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +83 -38
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RingtoneManager.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/Alert.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/PopupActivity.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/StatusNotification.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/IRhoBluetoothManager.java +33 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothDeviceListActivity.java +35 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManager.java +52 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManagerNew.java +182 -56
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManagerOld.java +41 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothSession.java +60 -23
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/UUIDHelper.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/Camera.java +162 -27
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraNewService.java +152 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraOldService.java +49 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSemiService.java +140 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraService.java +49 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSettings.java +147 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/FileList.java +27 -21
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCapture.java +124 -53
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCaptureCallback.java +39 -25
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePicker.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePickerScreen.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/event/Event.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/event/EventStore.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/file/RhoFileApi.java +75 -9
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +25 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +25 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/MainView.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +28 -22
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/{SplashScreen.java → mainview/SplashScreen.java} +73 -22
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +27 -21
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/Annotation.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/AnnotationsOverlay.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/ExtrasHolder.java +51 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/GoogleMapView.java +41 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapTouch.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapView.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MultiTouchHandler.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/OneTouchHandler.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/TouchHandler.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoNativeViewManager.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/Contact.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessor.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessorNew.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessorOld.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactField.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/Phonebook.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/ImageCapture.java +26 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/Signature.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/SignatureView.java +25 -19
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/RhoSockAddr.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/RhoSocket.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/RhoSocketImpl.java +28 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +85 -30
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/ui/AboutDialog.java +25 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/ui/LogOptionsDialog.java +32 -30
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/ui/LogViewDialog.java +29 -28
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/ExternalHttpHandler.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/LocalFileHandler.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/MailUriHandler.java +25 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/SmsUriHandler.java +25 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/TelUriHandler.java +25 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/UriHandler.java +25 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/VideoUriHandler.java +25 -20
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/util/ContextFactory.java +38 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/util/PerformOnUiThread.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/util/PhoneId.java +137 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/{Utils.java → util/Utils.java} +27 -17
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientNew.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettings.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java +27 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsOld.java +26 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +107 -0
- data/platform/android/build/RhodesSRC_build.files +11 -4
- data/platform/android/build/android.rake +79 -116
- data/platform/android/build/android_tools.rb +117 -0
- data/platform/android/build/androidcommon.rb +30 -4
- data/platform/android/build/libjson_build.files +1 -1
- data/platform/android/build/librhodes_build.files +3 -0
- data/platform/bb/Hsqldb/src/com/rho/db/FileUtilBB.java +26 -0
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBResult.java +26 -0
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBRowResult.java +26 -0
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBStorage.java +26 -0
- data/platform/bb/Hsqldb/src/com/rho/db/Journal.java +26 -0
- data/platform/bb/Hsqldb/src/j2me/math/BigDecimal.java +26 -0
- data/platform/bb/Hsqldb/src/j2me/math/BigInteger.java +26 -0
- data/platform/bb/Hsqldb/src/j2me/sql/Date.java +26 -0
- data/platform/bb/Hsqldb/src/j2me/sql/Time.java +26 -0
- data/platform/bb/Hsqldb/src/j2me/sql/Timestamp.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/DateTimeTokenizer.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/FilePath.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/IRhoLogSink.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/IRhoRubyHelper.java +27 -0
- data/platform/bb/RubyVM/src/com/rho/Mutex.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/Properties.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoAppAdapter.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoClassFactory.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoConf.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoCrypto.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoEmptyLogger.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoEmptyProfiler.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoLogConf.java +52 -1
- data/platform/bb/RubyVM/src/com/rho/RhoLogFileSink.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoLogOutputSink.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoLogger.java +111 -2
- data/platform/bb/RubyVM/src/com/rho/RhoParamArray.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoParams.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoProfiler.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoRuby.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoThread.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhoTimer.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/RhodesApp.java +32 -3
- data/platform/bb/RubyVM/src/com/rho/SplashScreen.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/Sprintf.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/StringScanner.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/TestProfiler.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/TestRhoLog.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/ThreadQueue.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/TimeInterval.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/Tokenizer.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/db/DBAdapter.java +32 -0
- data/platform/bb/RubyVM/src/com/rho/db/DBAttrManager.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/db/DBException.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/db/IDBCallback.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/db/IDBResult.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/db/IDBStorage.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/file/FileAccessBB.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/file/IFile.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/file/IFileAccess.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/file/IRAFile.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/file/RandomAccessFile.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/file/RhoFile.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/file/SimpleFile.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/net/AsyncHttp.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/net/IHttpConnection.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/net/NetRequest.java +295 -230
- data/platform/bb/RubyVM/src/com/rho/net/RhoConnection.java +29 -16
- data/platform/bb/RubyVM/src/com/rho/rjson/RJSONTokener.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/sync/ISyncProtocol.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/sync/ISyncStatusListener.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/sync/JSONArrayIterator.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/sync/JSONEntry.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/sync/JSONStructIterator.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/sync/SyncEngine.java +26 -19
- data/platform/bb/RubyVM/src/com/rho/sync/SyncNotify.java +26 -0
- data/platform/bb/RubyVM/src/com/rho/sync/SyncProtocol_3.java +31 -5
- data/platform/bb/RubyVM/src/com/rho/sync/SyncSource.java +49 -37
- data/platform/bb/RubyVM/src/com/rho/sync/SyncThread.java +40 -18
- data/platform/bb/RubyVM/src/com/xruby/runtime/builtin/RubyDir.java +2 -1
- data/platform/bb/RubyVM/src/com/xruby/runtime/builtin/RubyIOFileExecutor.java +7 -2
- data/platform/bb/RubyVM/src/com/xruby/runtime/builtin/RubyTime.java +43 -13
- data/platform/bb/RubyVM/src/j2me/lang/ArrayMe.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/AssertMe.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/CalendarMe.java +28 -1
- data/platform/bb/RubyVM/src/j2me/lang/CharacterDataLatin1.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/CharacterMe.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/Convert.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/MathEx.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/PrintStreamMe.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/StringBufferMe.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/StringMe.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/SystemMe.java +26 -0
- data/platform/bb/RubyVM/src/j2me/lang/TimeZoneMe.java +26 -0
- data/platform/bb/RubyVM/src/j2me/math/HugeDigit.java +26 -0
- data/platform/bb/RubyVM/src/j2me/math/HugeInt.java +26 -0
- data/platform/bb/RubyVM/src/j2me/math/HugeIntHelper.java +26 -0
- data/platform/bb/RubyVM/src/j2me/math/Number.java +26 -0
- data/platform/bb/RubyVM/src/j2me/nio/channels/FileChannel.java +26 -0
- data/platform/bb/RubyVM/src/j2me/nio/channels/Pipe.java +26 -0
- data/platform/bb/RubyVM/src/j2me/util/WeakHashMap.java +26 -0
- data/platform/bb/RubyVM/src/j2me/util/concurrent/ConcurrentHashMap.java +26 -0
- data/platform/bb/RubyVM/src/j2me/util/concurrent/locks/ReentrantLock.java +26 -0
- data/platform/bb/build/bb.rake +45 -6
- data/platform/bb/rhodes/platform/4.2.0/com/rho/BBVersionSpecific.java +26 -0
- data/platform/bb/rhodes/platform/4.2.1/com/rho/BBVersionSpecific.java +26 -0
- data/platform/bb/rhodes/platform/4.2.2/com/rho/BBVersionSpecific.java +26 -0
- data/platform/bb/rhodes/platform/4.2/com/rho/BBVersionSpecific.java +26 -0
- data/platform/bb/rhodes/platform/4.7/com/rho/RhoMainScreen.java +26 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/BrowserAdapter5.java +26 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/RhodesApplicationPlatform.java +26 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteCopyResult.java +26 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteResult.java +26 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteStorage.java +26 -0
- data/platform/bb/rhodes/platform/common/com/rho/BBVersionSpecific.java +26 -0
- data/platform/bb/rhodes/platform/common/com/rho/BrowserAdapter5.java +26 -0
- data/platform/bb/rhodes/platform/common/com/rho/RhoMainScreen.java +26 -0
- data/platform/bb/rhodes/platform/common/com/rho/RhodesApplicationPlatform.java +26 -0
- data/platform/bb/rhodes/platform/common/com/rho/db/SqliteCopyResult.java +26 -0
- data/platform/bb/rhodes/platform/common/com/rho/db/SqliteResult.java +26 -0
- data/platform/bb/rhodes/platform/common/com/rho/db/SqliteStorage.java +26 -0
- data/platform/bb/rhodes/src/com/rho/BBVersionSpecific.java +26 -0
- data/platform/bb/rhodes/src/com/rho/BrowserAdapter.java +26 -0
- data/platform/bb/rhodes/src/com/rho/BrowserAdapter5.java +26 -0
- data/platform/bb/rhodes/src/com/rho/IBrowserAdapter.java +26 -0
- data/platform/bb/rhodes/src/com/rho/RhoMainScreen.java +26 -0
- data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +45 -1
- data/platform/bb/rhodes/src/com/rho/RhodesApplicationPlatform.java +26 -0
- data/platform/bb/rhodes/src/com/rho/Version.java +26 -0
- data/platform/bb/rhodes/src/com/rho/db/SqliteCopyResult.java +26 -0
- data/platform/bb/rhodes/src/com/rho/db/SqliteResult.java +26 -0
- data/platform/bb/rhodes/src/com/rho/db/SqliteStorage.java +26 -0
- data/platform/bb/rhodes/src/com/rho/file/Jsr75File.java +26 -0
- data/platform/bb/rhodes/src/com/rho/file/Jsr75RAFileImpl.java +28 -2
- data/platform/bb/rhodes/src/com/rho/file/PersistRAFileImpl.java +29 -2
- data/platform/bb/rhodes/src/com/rho/net/BaseSocket.java +26 -0
- data/platform/bb/rhodes/src/com/rho/net/NetworkAccess.java +26 -0
- data/platform/bb/rhodes/src/com/rho/net/SSLSocket.java +26 -0
- data/platform/bb/rhodes/src/com/rho/net/TCPSocket.java +26 -0
- data/platform/bb/rhodes/src/com/rho/net/bb/BBHttpConnection.java +26 -0
- data/platform/bb/rhodes/src/com/rho/net/bb/NativeBBHttpConnection.java +26 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/Alert.java +26 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/GeoLocation.java +26 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/RhoCalendar.java +26 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/RhoPhonebook.java +26 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +27 -1
- data/platform/bb/rhodes/src/com/rho/rubyext/WebView.java +59 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/XMLParser.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/LogOptionsScreen.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/LogScreen.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/NativeBar.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/PushListeningThread.java +27 -1
- data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/RingtoneManager.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/SecondaryResourceFetchThread.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/Utilities.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/bluetooth/BluetoothManager.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/bluetooth/BluetoothPort.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/bluetooth/BluetoothScreen.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/camera/Camera.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/camera/CameraFilesListener.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/camera/CameraScreen.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/camera/ImageBrowserScreen.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/datetime/DateTimePicker.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/datetime/DateTimeScreen.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/Annotation.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapField.java +736 -695
- data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapProvider.java +40 -14
- data/platform/bb/rhodes/src/rhomobile/mapview/GeoCoding.java +39 -13
- data/platform/bb/rhodes/src/rhomobile/mapview/GoogleGeoCoding.java +216 -174
- data/platform/bb/rhodes/src/rhomobile/mapview/GoogleMapField.java +87 -45
- data/platform/bb/rhodes/src/rhomobile/mapview/GoogleMapProvider.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/MapProvider.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/MapTools.java +105 -79
- data/platform/bb/rhodes/src/rhomobile/mapview/MapView.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/MapViewParent.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/MapViewScreen.java +26 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/RhoMapField.java +26 -0
- data/platform/iphone/Classes/AppManager/AppLoader.h +25 -7
- data/platform/iphone/Classes/AppManager/AppLoader.m +26 -7
- data/platform/iphone/Classes/AppManager/AppManager.h +25 -7
- data/platform/iphone/Classes/AppManager/AppManager.m +26 -8
- data/platform/iphone/Classes/AppManager/AppManagerI.h +25 -8
- data/platform/iphone/Classes/Bluetooth/Bluetooth.h +39 -10
- data/platform/iphone/Classes/Bluetooth/Bluetooth.m +158 -28
- data/platform/iphone/Classes/Camera/PickImageDelegate.h +72 -9
- data/platform/iphone/Classes/Camera/PickImageDelegate.m +432 -15
- data/platform/iphone/Classes/DateTime.h +25 -7
- data/platform/iphone/Classes/DateTime.m +25 -7
- data/platform/iphone/Classes/DateTimePicker.m +25 -7
- data/platform/iphone/Classes/DateTimePickerDelegate.h +25 -7
- data/platform/iphone/Classes/DateTimePickerDelegate.m +25 -7
- data/platform/iphone/Classes/Dispatcher/Dispatcher.c +26 -8
- data/platform/iphone/Classes/Dispatcher/Dispatcher.h +25 -8
- data/platform/iphone/Classes/Event/Event.h +25 -7
- data/platform/iphone/Classes/GeoLocation/LocationController.h +25 -7
- data/platform/iphone/Classes/LogOptionsController.h +25 -7
- data/platform/iphone/Classes/LogOptionsController.m +25 -7
- data/platform/iphone/Classes/LogViewController.h +25 -7
- data/platform/iphone/Classes/LogViewController.m +27 -9
- data/platform/iphone/Classes/MapView/GoogleGeocoder.h +26 -0
- data/platform/iphone/Classes/MapView/GoogleGeocoder.m +26 -0
- data/platform/iphone/Classes/MapView/MapAnnotation.h +26 -6
- data/platform/iphone/Classes/MapView/MapAnnotation.m +25 -6
- data/platform/iphone/Classes/MapView/MapViewController.h +27 -8
- data/platform/iphone/Classes/MapView/MapViewController.m +26 -6
- data/platform/iphone/Classes/MapView/MapViewManager.h +26 -4
- data/platform/iphone/Classes/MapView/MapViewManager.m +25 -5
- data/platform/iphone/Classes/NativeBar.h +25 -7
- data/platform/iphone/Classes/NativeBar.m +54 -39
- data/platform/iphone/Classes/NativeView/NVDelegate.h +25 -7
- data/platform/iphone/Classes/NativeView/NVDelegate.m +25 -7
- data/platform/iphone/Classes/NativeView/NVViewController.h +25 -7
- data/platform/iphone/Classes/NativeView/NVViewController.m +25 -7
- data/platform/iphone/Classes/NativeView/RhoNativeViewManager.mm +27 -10
- data/platform/iphone/Classes/NativeView/RhoNativeViewManagerOC.h +25 -7
- data/platform/iphone/Classes/NavBar.h +25 -7
- data/platform/iphone/Classes/NavBar.m +25 -7
- data/platform/iphone/Classes/Phonebook/phonebook.h +26 -8
- data/platform/iphone/Classes/Phonebook/phonebook.m +25 -8
- data/platform/iphone/Classes/RhoAlert.h +25 -7
- data/platform/iphone/Classes/RhoAlert.m +27 -9
- data/platform/iphone/Classes/RhoDelegate.h +25 -7
- data/platform/iphone/Classes/RhoDelegate.m +25 -7
- data/platform/iphone/Classes/RhoMainView.h +26 -8
- data/platform/iphone/Classes/RhoViewController.h +25 -7
- data/platform/iphone/Classes/RhoViewController.m +25 -7
- data/platform/iphone/Classes/Rhodes.h +25 -8
- data/platform/iphone/Classes/Rhodes.m +50 -6
- data/platform/iphone/Classes/RingtoneManager.h +25 -7
- data/platform/iphone/Classes/RingtoneManager.m +25 -7
- data/platform/iphone/Classes/Signature/SignatureDelegate.h +25 -7
- data/platform/iphone/Classes/Signature/SignatureDelegate.m +25 -7
- data/platform/iphone/Classes/Signature/SignatureView.h +25 -7
- data/platform/iphone/Classes/Signature/SignatureView.m +25 -15
- data/platform/iphone/Classes/Signature/SignatureViewController.h +25 -7
- data/platform/iphone/Classes/Signature/SignatureViewController.m +25 -7
- data/platform/iphone/Classes/SimpleMainView.h +25 -7
- data/platform/iphone/Classes/SimpleMainView.m +31 -7
- data/platform/iphone/Classes/SplashViewController.h +25 -7
- data/platform/iphone/Classes/SplashViewController.m +25 -7
- data/platform/iphone/Classes/SplitView/LeftViewController.h +25 -7
- data/platform/iphone/Classes/SplitView/LeftViewController.m +25 -7
- data/platform/iphone/Classes/SplitView/RightViewController.h +25 -7
- data/platform/iphone/Classes/SplitView/RightViewController.m +25 -7
- data/platform/iphone/Classes/SplitView/SplitViewDelegate.h +25 -7
- data/platform/iphone/Classes/SplitView/SplitViewDelegate.m +25 -7
- data/platform/iphone/Classes/SplitView/SplittedMainView.h +25 -7
- data/platform/iphone/Classes/SplitView/SplittedMainView.m +29 -7
- data/platform/iphone/Classes/TabbedMainView.h +25 -7
- data/platform/iphone/Classes/TabbedMainView.m +42 -20
- data/platform/iphone/Classes/Utils/ParamsWrapper.h +25 -7
- data/platform/iphone/Classes/Utils/ParamsWrapper.m +25 -7
- data/platform/iphone/Classes/WebView.m +25 -7
- data/platform/iphone/Classes/rho/common/SplashScreenImpl.cpp +25 -8
- data/platform/iphone/Classes/rho/common/SplashScreenImpl.h +25 -8
- data/platform/iphone/Classes/rho/net/NetRequestImpl.m +26 -19
- data/platform/iphone/Info.plist +1 -1
- data/platform/iphone/Tests/Classes/TestsAppDelegate.h +25 -7
- data/platform/iphone/Tests/Classes/TestsAppDelegate.m +25 -7
- data/platform/iphone/main.m +25 -7
- data/platform/iphone/rbuild/findRhodesGuid.rb +26 -0
- data/platform/iphone/rbuild/iphone.rake +42 -6
- data/platform/iphone/rhoextlib/dosyscall.c +26 -0
- data/platform/iphone/rhoextlib/syscall.c +26 -0
- data/platform/iphone/rhoextlib/syscall.h +26 -7
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +2 -0
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +8 -8
- data/platform/linux/Rakefile +26 -0
- data/platform/linux/tasks/linux.rake +26 -0
- data/platform/osx/Rhodes Debugger/DataSource.h +26 -0
- data/platform/osx/Rhodes Debugger/DebugConnection.h +25 -4
- data/platform/osx/Rhodes Debugger/DebuggerController.h +26 -0
- data/platform/osx/Rhodes Debugger/FileSystemItem.h +26 -0
- data/platform/osx/Rhodes Debugger/GdbConnection.h +25 -7
- data/platform/osx/Rhodes Debugger/LogController.h +25 -3
- data/platform/osx/Rhodes Debugger/TcpConnection.h +25 -4
- data/platform/osx/Rhodes Launcher/RhodesController.h +25 -7
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/classes.nib +59 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/info.nib +18 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/keyedobjects.nib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtWebKit.framework/Versions/4/QtWebKit +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/phonon.framework/Versions/4/phonon +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Info.plist +20 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/MacOS/RhoSimulator +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PkgInfo +1 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqgif.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqico.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqjpeg.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqmng.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqtiff.dylib +0 -0
- data/platform/{symbian/build/rhologpath.txt → osx/bin/RhoSimulator/RhoSimulator.app/Contents/Resources/empty.lproj} +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Resources/qt.conf +2 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Resources/rho.icns +0 -0
- data/platform/osx/build/osx.rake +88 -0
- data/platform/shared/{SyncClient/SyncClient.cpp → RhoConnectClient/RhoConnectClient.cpp} +78 -52
- data/platform/shared/RhoConnectClient/RhoConnectClient.h +121 -0
- data/platform/shared/RhoConnectClient/RhoError.h +55 -0
- data/platform/shared/common/AppMenu.cpp +26 -0
- data/platform/shared/common/AppMenu.h +26 -0
- data/platform/shared/common/AutoPointer.h +26 -0
- data/platform/shared/common/IRhoBrowser.h +26 -0
- data/platform/shared/common/IRhoClassFactory.h +26 -0
- data/platform/shared/common/IRhoCrypt.h +26 -0
- data/platform/shared/common/IRhoThreadImpl.h +26 -0
- data/platform/shared/common/InputStream.h +26 -0
- data/platform/shared/common/PosixThreadImpl.cpp +31 -0
- data/platform/shared/common/PosixThreadImpl.h +26 -0
- data/platform/shared/common/RhoAppAdapter.h +26 -0
- data/platform/shared/common/RhoConf.cpp +28 -2
- data/platform/shared/common/RhoConf.h +32 -1
- data/platform/shared/common/RhoDefs.h +32 -0
- data/platform/shared/common/RhoFatalError.h +27 -1
- data/platform/shared/common/RhoFile.cpp +30 -4
- data/platform/shared/common/RhoFile.h +26 -0
- data/platform/shared/common/RhoFilePath.h +26 -0
- data/platform/shared/common/RhoMath.cpp +26 -0
- data/platform/shared/common/RhoMath.h +26 -0
- data/platform/shared/common/RhoMutexLock.h +39 -3
- data/platform/shared/common/RhoNativeViewManager.h +26 -0
- data/platform/shared/common/RhoPort.h +55 -17
- data/platform/shared/common/RhoSimConf.cpp +58 -0
- data/platform/shared/common/RhoSimConf.h +62 -0
- data/platform/shared/common/RhoStd.h +26 -0
- data/platform/shared/common/RhoSystem.h +28 -2
- data/platform/shared/common/RhoThread.cpp +26 -0
- data/platform/shared/common/RhoThread.h +26 -0
- data/platform/shared/common/RhoTime.cpp +26 -0
- data/platform/shared/common/RhoTime.h +33 -4
- data/platform/shared/common/RhodesApp.cpp +170 -68
- data/platform/shared/common/RhodesApp.h +34 -6
- data/platform/shared/common/RhodesAppBase.cpp +77 -8
- data/platform/shared/common/RhodesAppBase.h +31 -4
- data/platform/shared/common/SplashScreen.cpp +29 -0
- data/platform/shared/common/SplashScreen.h +26 -0
- data/platform/shared/common/StringConverter.h +26 -0
- data/platform/shared/common/ThreadQueue.cpp +26 -0
- data/platform/shared/common/ThreadQueue.h +26 -0
- data/platform/shared/common/Tokenizer.cpp +26 -0
- data/platform/shared/common/Tokenizer.h +26 -0
- data/platform/shared/common/iphone/RhoClassFactory.cpp +26 -0
- data/platform/shared/common/iphone/RhoClassfactory.h +44 -4
- data/platform/shared/common/iphone/RhoCryptImpl.h +26 -0
- data/platform/shared/common/iphone/RhoCryptImpl.mm +26 -0
- data/platform/shared/common/iphone/RhoFileImpl.m +26 -7
- data/platform/shared/common/iphone/RhoThreadImpl.m +26 -7
- data/platform/shared/common/map/ESRIMapEngine.cpp +26 -0
- data/platform/shared/common/map/ESRIMapEngine.h +26 -0
- data/platform/shared/common/map/GoogleMapEngine.cpp +26 -0
- data/platform/shared/common/map/GoogleMapEngine.h +26 -0
- data/platform/shared/common/map/MapEngine.cpp +28 -2
- data/platform/shared/common/map/MapEngine.h +26 -0
- data/platform/shared/common/rhoparams.cpp +26 -0
- data/platform/shared/common/rhoparams.h +26 -0
- data/platform/shared/common/stat.h +26 -0
- data/platform/shared/curl/lib/config-symbian.h +824 -0
- data/platform/shared/curl/lib/hostip.c +7 -0
- data/platform/shared/curl/lib/http.c +6 -0
- data/platform/shared/curl/lib/setup_once.h +4 -0
- data/platform/shared/db/DBAdapter.cpp +34 -2
- data/platform/shared/db/DBAdapter.h +26 -0
- data/platform/shared/db/DBAttrManager.cpp +26 -0
- data/platform/shared/db/DBAttrManager.h +26 -0
- data/platform/shared/db/DBResult.cpp +26 -0
- data/platform/shared/db/DBResult.h +26 -0
- data/platform/shared/json/JSONIterator.cpp +26 -0
- data/platform/shared/json/JSONIterator.h +26 -0
- data/platform/shared/json/RJSONTokener.c +3 -3
- data/platform/shared/json/json.h +1 -1
- data/platform/shared/json/{debug.c → json_debug.c} +2 -2
- data/platform/shared/json/{debug.h → json_debug.h} +1 -1
- data/platform/shared/json/json_object.c +1 -1
- data/platform/shared/json/json_tokener.c +1 -1
- data/platform/shared/json/json_util.c +1 -1
- data/platform/shared/json/printbuf.c +1 -1
- data/platform/shared/logging/RhoATLTrace.h +26 -0
- data/platform/shared/logging/RhoLog.cpp +90 -0
- data/platform/shared/logging/RhoLog.h +29 -1
- data/platform/shared/logging/RhoLogCat.h +26 -0
- data/platform/shared/logging/RhoLogConf.cpp +72 -10
- data/platform/shared/logging/RhoLogConf.h +39 -5
- data/platform/shared/logging/RhoLogSink.cpp +26 -0
- data/platform/shared/logging/RhoLogSink.h +26 -0
- data/platform/shared/logging/RhoPlainLog.cpp +36 -8
- data/platform/shared/logging/test/TestLog.cpp +26 -0
- data/platform/shared/logging/test/TestPlainLog.c +26 -0
- data/platform/shared/logging/test/main.cpp +26 -0
- data/platform/shared/net/AsyncHttp.cpp +27 -0
- data/platform/shared/net/AsyncHttp.h +28 -1
- data/platform/shared/net/CURLNetRequest.cpp +81 -11
- data/platform/shared/net/CURLNetRequest.h +30 -0
- data/platform/shared/net/CompatWince.cpp +26 -0
- data/platform/shared/net/CompatWince.h +26 -0
- data/platform/shared/net/HttpServer.cpp +82 -23
- data/platform/shared/net/HttpServer.h +27 -1
- data/platform/shared/net/INetRequest.cpp +26 -0
- data/platform/shared/net/INetRequest.h +26 -0
- data/platform/shared/net/RawSocket.cpp +38 -12
- data/platform/shared/net/RawSocket.h +28 -2
- data/platform/shared/net/URI.cpp +26 -6
- data/platform/shared/net/URI.h +26 -2
- data/platform/shared/net/iphone/sslimpl.cpp +39 -10
- data/platform/shared/net/iphone/sslimpl.h +25 -8
- data/platform/shared/net/ssl.cpp +26 -0
- data/platform/shared/net/ssl.h +26 -0
- data/platform/shared/qt/RhoSimulator.pro +7 -0
- data/platform/shared/qt/curl/curl.pro +181 -0
- data/platform/shared/qt/pbxproj2pro.pl +21 -0
- data/platform/shared/qt/pro_vcproj_diff.pl +59 -0
- data/platform/shared/qt/rhodes/DateTimeDialog.cpp +91 -0
- data/platform/shared/qt/rhodes/DateTimeDialog.h +54 -0
- data/platform/shared/qt/rhodes/DateTimeDialog.ui +68 -0
- data/platform/shared/qt/rhodes/ExternalWebView.cpp +46 -0
- data/platform/shared/qt/rhodes/ExternalWebView.h +49 -0
- data/platform/{wm/rhodes/emulator → shared/qt/rhodes}/ExternalWebView.ui +0 -0
- data/platform/shared/qt/rhodes/MainWindowCallback.h +51 -0
- data/platform/shared/qt/rhodes/QtMainWindow.cpp +819 -0
- data/platform/shared/qt/rhodes/QtMainWindow.h +148 -0
- data/platform/{wm/rhodes/emulator → shared/qt/rhodes}/QtMainWindow.ui +13 -1
- data/platform/shared/qt/rhodes/QtNativeTabBar.cpp +112 -0
- data/platform/shared/qt/rhodes/QtNativeTabBar.h +37 -0
- data/platform/shared/qt/rhodes/QtWebInspector.cpp +71 -0
- data/platform/shared/qt/rhodes/QtWebInspector.h +53 -0
- data/platform/shared/qt/rhodes/QtWebInspector.ui +41 -0
- data/platform/shared/qt/rhodes/impl/AlertImpl.cpp +153 -0
- data/platform/shared/qt/rhodes/impl/AlertImpl.h +65 -0
- data/platform/shared/qt/rhodes/impl/BluetoothImpl.cpp +109 -0
- data/platform/shared/qt/rhodes/impl/CalendarImpl.cpp +52 -0
- data/platform/shared/qt/rhodes/impl/CameraImpl.cpp +54 -0
- data/platform/shared/qt/rhodes/impl/DateTimePickerImpl.cpp +61 -0
- data/platform/shared/qt/rhodes/impl/DateTimePickerImpl.h +70 -0
- data/platform/shared/qt/rhodes/impl/GeoLocationImpl.cpp +65 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +727 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +160 -0
- data/platform/shared/qt/rhodes/impl/MapViewImpl.cpp +60 -0
- data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.cpp +131 -0
- data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.h +96 -0
- data/platform/shared/qt/rhodes/impl/NativeToolbarImpl.cpp +124 -0
- data/platform/shared/qt/rhodes/impl/NativeToolbarImpl.h +71 -0
- data/platform/shared/qt/rhodes/impl/PhonebookImpl.cpp +103 -0
- data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.cpp +56 -0
- data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +82 -0
- data/platform/shared/qt/rhodes/impl/RhoFileImpl.cpp +63 -0
- data/platform/shared/qt/rhodes/impl/RhoNativeViewManagerImpl.cpp +86 -0
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +114 -0
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.h +72 -0
- data/platform/shared/qt/rhodes/impl/RhodesImpl.cpp +193 -0
- data/platform/shared/qt/rhodes/impl/RingtoneManagerImpl.cpp +51 -0
- data/platform/shared/qt/rhodes/impl/SignatureImpl.cpp +43 -0
- data/platform/shared/qt/rhodes/impl/SystemImpl.cpp +229 -0
- data/platform/shared/qt/rhodes/impl/WebViewImpl.cpp +114 -0
- data/platform/shared/qt/rhodes/main.cpp +208 -0
- data/platform/shared/qt/rhodes/resources/rho.icns +0 -0
- data/platform/shared/qt/rhodes/resources/rho.ico +0 -0
- data/platform/shared/qt/rhodes/rhodes.pro +133 -0
- data/platform/shared/qt/rholib/rholib.pro +138 -0
- data/platform/shared/qt/rubylib/rubylib.pro +183 -0
- data/platform/shared/qt/sqlite3/sqlite3.pro +40 -0
- data/platform/shared/qt/syncengine/syncengine.pro +82 -0
- data/platform/shared/ruby/ext/alert/alert.i +13 -5
- data/platform/shared/ruby/ext/alert/alert_wrap.c +100 -11
- data/platform/shared/ruby/ext/asynchttp/asynchttp_wrap.c +391 -111
- data/platform/shared/ruby/ext/bluetooth/bluetooth.i +28 -14
- data/platform/shared/ruby/ext/bluetooth/bluetooth_wrap.c +311 -424
- data/platform/shared/ruby/ext/calendar/calendar_wrap.c +2278 -2278
- data/platform/shared/ruby/ext/calendar/event_wrap.c +2152 -2151
- data/platform/shared/ruby/ext/camera/camera.i +22 -2
- data/platform/shared/ruby/ext/camera/camera_wrap.c +448 -115
- data/platform/shared/ruby/ext/datetimepicker/datetimepicker_wrap.c +404 -126
- data/platform/shared/ruby/ext/geolocation/geolocation_wrap.c +17 -14
- data/platform/shared/ruby/ext/mapview/mapview_wrap.c +384 -104
- data/platform/shared/ruby/ext/nativebar/nativebar.i +0 -3
- data/platform/shared/ruby/ext/nativebar/nativebar_wrap.c +0 -35
- data/platform/shared/ruby/ext/nativeviewmanager/nativeviewmanager_wrap.c +5 -5
- data/platform/shared/ruby/ext/navbar/navbar_wrap.c +384 -104
- data/platform/shared/ruby/ext/phonebook/phonebook.h +26 -0
- data/platform/shared/ruby/ext/phonebook/phonebook_wrap.c +422 -144
- data/platform/shared/ruby/ext/rho/rhoruby.c +56 -13
- data/platform/shared/ruby/ext/rho/rhoruby.h +30 -10
- data/platform/shared/ruby/ext/rho/rhosupport.c +106 -33
- data/platform/shared/ruby/ext/rhoconf/rhoconf.i +6 -2
- data/platform/shared/ruby/ext/rhoconf/rhoconf_wrap.c +24 -8
- data/platform/shared/ruby/ext/ringtones/ringtones_wrap.c +389 -109
- data/platform/shared/ruby/ext/signature/signature.i +1 -1
- data/platform/shared/ruby/ext/signature/signature_wrap.c +5 -5
- data/platform/shared/ruby/ext/sqlite3_api/sqlite3_api_wrap.c +26 -0
- data/platform/shared/ruby/ext/syncengine/syncengine.i +4 -0
- data/platform/shared/ruby/ext/syncengine/syncengine_wrap.c +25 -5
- data/platform/shared/ruby/ext/system/system_wrap.c +3 -3
- data/platform/shared/ruby/ext/webview/webview.i +4 -0
- data/platform/shared/ruby/ext/webview/webview_wrap.c +428 -134
- data/platform/shared/ruby/gc.c +4 -0
- data/platform/shared/ruby/hash.c +3 -0
- data/platform/shared/ruby/include/ruby/defines.h +20 -1
- data/platform/shared/ruby/include/ruby/intern.h +2 -0
- data/platform/shared/ruby/include/ruby/ruby.h +7 -4
- data/platform/shared/ruby/io.c +2 -1
- data/platform/shared/ruby/iphone/ruby/config.h +2 -0
- data/platform/shared/ruby/missing/dup2.c +1 -0
- data/platform/shared/ruby/signal.c +5 -5
- data/platform/shared/ruby/symbian/assert.h +2 -2
- data/platform/shared/ruby/symbian/ruby/config.h +13 -3
- data/platform/shared/ruby/symbian/symbian.h +2 -2
- data/platform/shared/ruby/thread_pthread.c +1 -1
- data/platform/shared/ruby/win32/assert.h +27 -1
- data/platform/shared/rubyext/GeoLocation.cpp +26 -0
- data/platform/shared/rubyext/GeoLocation.h +26 -0
- data/platform/shared/rubyext/NativeToolbarExt.h +35 -0
- data/platform/shared/rubyext/RhoAppAdapter.cpp +26 -0
- data/platform/shared/rubyext/System.cpp +54 -1
- data/platform/shared/rubyext/WebView.h +26 -0
- data/platform/shared/sqlite/crypto.c +26 -0
- data/platform/shared/sqlite/sqlite3.c +9706 -4596
- data/platform/shared/sqlite/sqlite3.h +521 -119
- data/platform/shared/statistic/RhoProfiler.cpp +26 -0
- data/platform/shared/statistic/RhoProfiler.h +26 -0
- data/platform/shared/statistic/test/TestProfiling.cpp +26 -0
- data/platform/shared/sync/ClientRegister.cpp +29 -1
- data/platform/shared/sync/ClientRegister.h +26 -0
- data/platform/shared/sync/ISyncProtocol.h +27 -1
- data/platform/shared/sync/SyncEngine.cpp +26 -0
- data/platform/shared/sync/SyncEngine.h +27 -1
- data/platform/shared/sync/SyncNotify.cpp +28 -1
- data/platform/shared/sync/SyncNotify.h +26 -0
- data/platform/shared/sync/SyncProtocol_3.h +34 -6
- data/platform/shared/sync/SyncSource.cpp +52 -17
- data/platform/shared/sync/SyncSource.h +26 -0
- data/platform/shared/sync/SyncThread.cpp +41 -0
- data/platform/shared/sync/SyncThread.h +27 -2
- data/platform/shared/sync/Test/NetDataStub.h +26 -0
- data/platform/shared/sync/Test/SyncEngine_test.cpp +26 -0
- data/platform/shared/sync/Test/SyncSource_test.cpp +26 -0
- data/platform/shared/tcmalloc/rhomem.h +1 -1
- data/platform/shared/test/Tests.cpp +28 -2
- data/platform/shared/test/test_helper.cpp +26 -0
- data/platform/shared/test/test_helper.h +26 -0
- data/platform/shared/unzip/unzip.cpp +10 -4
- data/platform/shared/unzip/unzip.h +8 -0
- data/platform/shared/xruby/src/com/xruby/compiler/parser/RubyParser.java +97 -97
- data/platform/symbian/build/symbian.rake +202 -0
- data/platform/symbian/curl/curl.pro +179 -0
- data/platform/symbian/qtscroller/include/QtScrollEvent +5 -0
- data/platform/symbian/qtscroller/include/QtScrollPrepareEvent +5 -0
- data/platform/symbian/qtscroller/include/QtScroller +5 -0
- data/platform/symbian/qtscroller/include/QtScrollerProperties +5 -0
- data/platform/symbian/qtscroller/qtscroller.pri +13 -0
- data/platform/symbian/qtscroller/qtscroller.pro +3 -0
- data/platform/symbian/qtscroller/src/qtflickgesture.cpp +696 -0
- data/platform/symbian/qtscroller/src/qtflickgesture_p.h +107 -0
- data/platform/symbian/qtscroller/src/qtscroller.cpp +2081 -0
- data/platform/symbian/qtscroller/src/qtscroller.h +138 -0
- data/platform/symbian/qtscroller/src/qtscroller_p.h +206 -0
- data/platform/symbian/qtscroller/src/qtscrollerfilter.cpp +351 -0
- data/platform/symbian/qtscroller/src/qtscrollerfilter_p.h +111 -0
- data/platform/symbian/qtscroller/src/qtscrollerproperties.cpp +413 -0
- data/platform/symbian/qtscroller/src/qtscrollerproperties.h +135 -0
- data/platform/symbian/qtscroller/src/qtscrollerproperties_p.h +91 -0
- data/platform/symbian/qtscroller/src/qtscrollevent.cpp +191 -0
- data/platform/symbian/qtscroller/src/qtscrollevent.h +100 -0
- data/platform/symbian/qtscroller/src/qtscrollevent_p.h +33 -0
- data/platform/symbian/qtscroller/src/src.pro +24 -0
- data/platform/symbian/rhodes.pro +4 -0
- data/platform/symbian/rhodes.sln +72 -0
- data/platform/symbian/rhodes/deployment.pri +115 -0
- data/platform/symbian/rhodes/rhodes.pro +141 -0
- data/platform/symbian/rhodes/rhodes.vcproj +385 -0
- data/platform/symbian/rhodes/{inc → src}/ContactsConstants.h +0 -0
- data/platform/symbian/rhodes/src/RhoThreadImpl.cpp +19 -0
- data/platform/symbian/rhodes/src/phonebook/Phonebook.cpp +19 -19
- data/platform/symbian/rhodes/{inc → src}/phonebook/Phonebook.h +1 -1
- data/platform/symbian/rhodes/src/qkineticscroller.cpp +1245 -0
- data/platform/symbian/rhodes/src/qkineticscroller.h +165 -0
- data/platform/symbian/rhodes/src/qkineticscroller_p.h +168 -0
- data/platform/symbian/rhodes/src/qwebviewkineticscroller.cpp +347 -0
- data/platform/symbian/rhodes/src/qwebviewkineticscroller.h +89 -0
- data/platform/symbian/rhodes/src/qwebviewselectionsuppressor.h +113 -0
- data/platform/symbian/rhodes_win32.pro +4 -0
- data/platform/symbian/rholib/rholib.pro +108 -0
- data/platform/symbian/rholib/rholib.vcproj +1466 -0
- data/platform/symbian/rubylib/rubylib.pro +163 -0
- data/platform/symbian/rubylib/rubylib.vcproj +1166 -0
- data/platform/symbian/rubylib/src/symbian_stubs.c +45 -3
- data/platform/symbian/sqlite3/sqlite3.pro +38 -0
- data/platform/symbian/sqlite3/sqlite3.vcproj +254 -0
- data/platform/symbian/{SQLite60 → sqlite3}/src/mutex.cpp +0 -0
- data/platform/symbian/{SQLite60 → sqlite3}/src/os_symbian.cpp +0 -0
- data/platform/symbian/{SQLite60 → sqlite3}/src/os_symbian.h +0 -0
- data/platform/symbian/{SQLite60 → sqlite3}/src/sqlite3.c +1 -0
- data/platform/symbian/{SQLite60 → sqlite3}/src/sqlite3.h +0 -0
- data/platform/symbian/syncengine/syncengine.pro +64 -0
- data/platform/symbian/syncengine/syncengine.vcproj +842 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/replaceicon/replaceicon.cpp +25 -2
- data/platform/win32/replaceicon/stdafx.cpp +25 -3
- data/platform/win32/replaceicon/stdafx.h +25 -4
- data/platform/win32/updateresstring/stdafx.cpp +25 -3
- data/platform/win32/updateresstring/stdafx.h +25 -4
- data/platform/win32/updateresstring/updateresstring.cpp +25 -2
- data/platform/wm/RhoLib/RhoLib.vcproj +38 -8
- data/platform/wm/build/wm.rake +92 -76
- data/platform/wm/rhodes.sln +139 -139
- data/platform/wm/rhodes/Alert.cpp +31 -5
- data/platform/wm/rhodes/Alert.h +27 -1
- data/platform/wm/rhodes/AppManager.cpp +26 -0
- data/platform/wm/rhodes/AppManager.h +26 -0
- data/platform/wm/rhodes/DateTimePicker.cpp +26 -0
- data/platform/wm/rhodes/DateTimePicker.h +30 -0
- data/platform/wm/rhodes/LogOptionsDlg.cpp +26 -0
- data/platform/wm/rhodes/LogOptionsDlg.h +26 -0
- data/platform/wm/rhodes/LogView.cpp +26 -2
- data/platform/wm/rhodes/LogView.h +25 -1
- data/platform/wm/rhodes/Macros.h +25 -1
- data/platform/wm/rhodes/MainWindow.cpp +37 -2
- data/platform/wm/rhodes/MainWindow.h +29 -2
- data/platform/wm/rhodes/MapView/Graphics.cpp +25 -1
- data/platform/wm/rhodes/MapView/Graphics.h +26 -0
- data/platform/wm/rhodes/MapView/MapViewManager.cpp +26 -0
- data/platform/wm/rhodes/MapView/MapViewManager.h +25 -0
- data/platform/wm/rhodes/MetaHandler.cpp +26 -0
- data/platform/wm/rhodes/MetaHandler.h +26 -0
- data/platform/wm/rhodes/OkCancelModalDialog.h +26 -0
- data/platform/wm/rhodes/OutlookApp.cpp +26 -0
- data/platform/wm/rhodes/OutlookApp.h +26 -0
- data/platform/wm/rhodes/RhoNativeViewManager.cpp +26 -0
- data/platform/wm/rhodes/RhoNativeViewManagerWM.h +25 -8
- data/platform/wm/rhodes/Rhodes.cpp +127 -24
- data/platform/wm/rhodes/RingtoneManager.cpp +26 -0
- data/platform/wm/rhodes/RingtoneManager.h +26 -0
- data/platform/wm/rhodes/SyncStatusDlg.cpp +26 -0
- data/platform/wm/rhodes/SyncStatusDlg.h +26 -0
- data/platform/wm/rhodes/Utils.cpp +26 -0
- data/platform/wm/rhodes/Utils.h +26 -0
- data/platform/wm/rhodes/Vibrate.cpp +30 -9
- data/platform/wm/rhodes/Vibrate.h +27 -2
- data/platform/wm/rhodes/bluetooth/Bluetooth.cpp +63 -4
- data/platform/wm/rhodes/bluetooth/Bluetooth.h +32 -1
- data/platform/wm/rhodes/camera/Camera.cpp +40 -6
- data/platform/wm/rhodes/camera/Camera.h +32 -1
- data/platform/wm/rhodes/memory_helper.cpp +26 -0
- data/platform/wm/rhodes/menubar.cpp +26 -0
- data/platform/wm/rhodes/menubar.h +26 -0
- data/platform/wm/rhodes/phonebook/NativeAddressBook.cpp +26 -0
- data/platform/wm/rhodes/phonebook/NativeAddressBook.h +26 -0
- data/platform/wm/rhodes/phonebook/phonebook.cpp +26 -8
- data/platform/wm/rhodes/phonebook/phonebook.h +26 -8
- data/platform/wm/rhodes/resource.h +1 -0
- data/platform/wm/rhodes/rho/common/RhoClassFactory.cpp +26 -0
- data/platform/wm/rhodes/rho/common/RhoClassFactory.h +26 -0
- data/platform/wm/rhodes/rho/common/RhoCryptImpl.cpp +26 -0
- data/platform/wm/rhodes/rho/common/RhoCryptImpl.h +26 -0
- data/platform/wm/rhodes/rho/common/RhoThreadImpl.cpp +26 -0
- data/platform/wm/rhodes/rho/common/RhoThreadImpl.h +26 -0
- data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +30 -1
- data/platform/wm/rhodes/rho/net/NetRequestImpl.h +29 -0
- data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.cpp +26 -0
- data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.h +26 -0
- data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +27 -1
- data/platform/wm/rhodes/rho/rubyext/NativeToolbar.h +26 -0
- data/platform/wm/rhodes/rho/rubyext/NativeToolbarExt.cpp +71 -7
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +36 -4
- data/platform/wm/rhodes/rho/rubyext/WebView.cpp +48 -2
- data/platform/wm/rhodes/rho/rubyext/calendar.cpp +26 -0
- data/platform/wm/rhodes/rhodes.vcproj +2491 -579
- data/platform/wm/rhodes/signature/Signature.cpp +26 -0
- data/platform/wm/rhodes/signature/Signature.h +26 -0
- data/platform/wm/rhodes/simulator/MainWindowQt.cpp +852 -0
- data/platform/wm/rhodes/{emulator → simulator}/MainWindowQt.h +76 -11
- data/platform/wm/rhodes/simulator/NativeTabbarQt.cpp +91 -0
- data/platform/wm/rhodes/simulator/NativeTabbarQt.h +102 -0
- data/platform/wm/rhodes/simulator/NativeToolbarQt.cpp +82 -0
- data/platform/wm/rhodes/simulator/NativeToolbarQt.h +78 -0
- data/platform/wm/rhodes/stdafx.cpp +25 -16
- data/platform/wm/rhodes/stdafx.h +26 -4
- data/platform/wm/rubylib/rubylib.vcproj +94 -78
- data/platform/wm/sqlite3/sqlite3.vcproj +8 -8
- data/platform/wm/syncengine/syncengine.vcproj +33 -11
- data/platform/wm/tools/detool/LogServer.cpp +33 -3
- data/platform/wm/tools/detool/LogServer.h +29 -1
- data/platform/wm/tools/detool/detool.cpp +105 -14
- data/platform/wm/tools/detool/detool.h +26 -0
- data/platform/wm/tools/detool/detool.vcproj +243 -242
- data/platform/wm/tools/detool/stdafx.cpp +25 -3
- data/platform/wm/tools/detool/stdafx.h +26 -0
- data/platform/wm/tools/detool/targetver.h +26 -0
- data/platform/wm/tools/rhosetup/rhosetup.cpp +25 -2
- data/platform/wm/tools/rhosetup/stdafx.cpp +25 -3
- data/platform/wm/tools/rhosetup/stdafx.h +25 -4
- data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.Libraries.dll +0 -0
- data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.dll +0 -0
- data/platform/wp7/RhoAppRunner/Program.cs +27 -1
- data/platform/wp7/RhoLogServer/Program.cs +27 -1
- data/platform/wp7/RhoLogServer/SocketServer.cs +27 -1
- data/platform/wp7/RhoRubyExtGen/RhoAsyncHttp.cs +27 -1
- data/platform/wp7/RhoRubyExtGen/RhoConfig.cs +84 -0
- data/platform/wp7/RhoRubyExtGen/RhoDatabase.cs +27 -1
- data/platform/wp7/RhoRubyExtGen/RhoJSON.cs +26 -0
- data/platform/wp7/RhoRubyExtGen/RhoNativeBar.cs +35 -3
- data/platform/wp7/RhoRubyExtGen/RhoRubyExtGen.csproj +2 -0
- data/platform/wp7/RhoRubyExtGen/RhoSyncEngine.cs +34 -2
- data/platform/wp7/RhoRubyExtGen/RhoSystem.cs +144 -0
- data/platform/wp7/RhoRubyExtGen/RhoWebView.cs +33 -2
- data/platform/wp7/RhoRubyLib/Initializers.Generated.cs +149 -5
- data/platform/wp7/RhoRubyLib/RhoAppAdapter.cs +27 -1
- data/platform/wp7/RhoRubyLib/RhoRuby.cs +27 -1
- data/platform/wp7/RhoRubyLib/RhoRubyLib.csproj +24 -1
- data/platform/wp7/RhoRubyLib/WP_PlatformAdaptationLayer.cs +26 -15
- data/platform/wp7/RhoRubyLib/common/IInputStream.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/Mutex.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoConf.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoEmptyProfiler.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoFile.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoFilePath.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoParamArray.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoParams.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoProfiler.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoResourceMap.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoStd.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhoThread.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +232 -16
- data/platform/wp7/RhoRubyLib/common/ThreadQueue.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/TimeInterval.cs +27 -1
- data/platform/wp7/RhoRubyLib/common/Tokenizer.cs +27 -1
- data/platform/wp7/RhoRubyLib/db/DBAdapter.cs +33 -1
- data/platform/wp7/RhoRubyLib/db/DBAttrManager.cs +27 -1
- data/platform/wp7/RhoRubyLib/db/DBCommand.cs +428 -0
- data/platform/wp7/RhoRubyLib/db/DBException.cs +27 -1
- data/platform/wp7/RhoRubyLib/db/IDBCallback.cs +27 -1
- data/platform/wp7/RhoRubyLib/db/IDBResult.cs +27 -1
- data/platform/wp7/RhoRubyLib/db/IDBStorage.cs +27 -1
- data/platform/wp7/RhoRubyLib/db/SqliteCopyResult.cs +27 -1
- data/platform/wp7/RhoRubyLib/db/SqliteResult.cs +27 -1
- data/platform/wp7/RhoRubyLib/db/SqliteStorage.cs +27 -1
- data/platform/wp7/RhoRubyLib/json/JSONArrayIterator.cs +27 -1
- data/platform/wp7/RhoRubyLib/json/JSONEntry.cs +27 -1
- data/platform/wp7/RhoRubyLib/json/JSONStructIterator.cs +27 -1
- data/platform/wp7/RhoRubyLib/json/JsonParser.cs +26 -0
- data/platform/wp7/RhoRubyLib/json/RJSONTokener.cs +26 -0
- data/platform/wp7/RhoRubyLib/logging/IRhoLogSink.cs +27 -1
- data/platform/wp7/RhoRubyLib/logging/RhoEmptyLogger.cs +26 -0
- data/platform/wp7/RhoRubyLib/logging/RhoLogConf.cs +27 -1
- data/platform/wp7/RhoRubyLib/logging/RhoLogFileSink.cs +27 -1
- data/platform/wp7/RhoRubyLib/logging/RhoLogServerSink.cs +27 -1
- data/platform/wp7/RhoRubyLib/logging/RhoLogger.cs +27 -1
- data/platform/wp7/RhoRubyLib/net/AsyncHttp.cs +27 -1
- data/platform/wp7/RhoRubyLib/net/HttpServer.cs +28 -2
- data/platform/wp7/RhoRubyLib/net/NetRequest.cs +28 -2
- data/platform/wp7/RhoRubyLib/net/NetResponse.cs +27 -1
- data/platform/wp7/RhoRubyLib/net/URI.cs +27 -1
- data/platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs +27 -1
- data/platform/wp7/RhoRubyLib/rubyext/RhoConfig.cs +188 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoDatabase.cs +27 -1
- data/platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs +26 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoKernelOps.cs +27 -1
- data/platform/wp7/RhoRubyLib/rubyext/RhoNativeBar.cs +130 -6
- data/platform/wp7/RhoRubyLib/rubyext/RhoSyncEngine.cs +42 -2
- data/platform/wp7/RhoRubyLib/rubyext/RhoSystem.cs +153 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoWebView.cs +49 -4
- data/platform/wp7/RhoRubyLib/sync/SyncSource.cs +17 -17
- data/platform/wp7/RhoRubyLib/views/RhoTabHeader.xaml +18 -0
- data/platform/wp7/RhoRubyLib/views/RhoTabHeader.xaml.cs +56 -0
- data/platform/wp7/RhoRubyLib/views/RhoView.xaml +16 -0
- data/platform/wp7/RhoRubyLib/views/RhoView.xaml.cs +153 -0
- data/platform/wp7/build/wp.rake +31 -0
- data/platform/wp7/rhodes/App.xaml.cs +28 -2
- data/platform/wp7/rhodes/MainPage.xaml +4 -3
- data/platform/wp7/rhodes/MainPage.xaml.cs +50 -11
- data/platform/wp7/sqlite3/SQLiteClient.cs +27 -1
- data/rakefile.rb +200 -18
- data/res/build-tools/detool.exe +0 -0
- data/res/generators/rhogen.rb +2 -1
- data/res/generators/templates/application/app/Settings/home.bb.erb +14 -13
- data/res/generators/templates/application/app/Settings/home.erb +16 -17
- data/res/generators/templates/application/app/Settings/index.bb.erb +26 -27
- data/res/generators/templates/application/app/Settings/index.erb +28 -27
- data/res/generators/templates/application/app/Settings/login.bb.erb +25 -31
- data/res/generators/templates/application/app/Settings/login.erb +20 -22
- data/res/generators/templates/application/app/Settings/reset.bb.erb +12 -11
- data/res/generators/templates/application/app/Settings/reset.erb +10 -13
- data/res/generators/templates/application/app/Settings/wait.bb.erb +9 -2
- data/res/generators/templates/application/app/Settings/wait.erb +9 -4
- data/res/generators/templates/application/app/index.erb +17 -24
- data/res/generators/templates/application/app/layout.erb +51 -21
- data/res/generators/templates/application/build.yml +3 -1
- data/res/generators/templates/application/icon/icon.svg +5334 -0
- data/res/generators/templates/application/public/css/android.css +6 -1
- data/res/generators/templates/application/public/css/blackberry.css +6 -1
- data/res/generators/templates/application/public/css/iphone.css +4 -0
- data/res/generators/templates/application/public/jqmobile/images/ajax-loader.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icon-search-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-18-white.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-36-white.png +0 -0
- data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.css +1661 -0
- data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.js +5626 -0
- data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.min.css +8 -0
- data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.min.js +146 -0
- data/res/generators/templates/application/public/{jqtouch/jqtouch-iphone.css → jqmobile/jquery.mobile.iphone.css} +1 -1
- data/res/generators/templates/application/public/jquery/jquery-1.6.2.js +8981 -0
- data/res/generators/templates/application/public/jquery/jquery-1.6.2.min.js +18 -0
- data/res/generators/templates/application/public/js/jqmobile-patch.js +231 -0
- data/res/generators/templates/model/controller.rb +3 -2
- data/res/generators/templates/model/edit.bb.erb +17 -17
- data/res/generators/templates/model/edit.erb +15 -20
- data/res/generators/templates/model/index.bb.erb +19 -19
- data/res/generators/templates/model/index.erb +23 -26
- data/res/generators/templates/model/new.bb.erb +18 -19
- data/res/generators/templates/model/new.erb +17 -19
- data/res/generators/templates/model/show.bb.erb +10 -11
- data/res/generators/templates/model/show.erb +16 -19
- data/rhobuild.yml.example +2 -1
- data/rhodes.gemspec +4 -3
- data/rhomobile-debug.gemspec +22 -0
- data/spec/framework_spec/app/layout.erb +1 -1
- data/spec/perfomance_spec/app/layout.erb +1 -1
- data/spec/phone_spec/app/spec/asynchttp_spec.rb +1 -1
- data/spec/phone_spec/app/spec/mapview_spec.rb +43 -0
- data/spec/phone_spec/app/spec/rho_spec.rb +23 -0
- data/spec/phone_spec/app/spec/syncengine_spec.rb +49 -8
- metadata +244 -344
- data/Manifest.txt +0 -6409
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/COPYING +0 -27
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/README +0 -95
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar.h +0 -1415
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Decoder.h +0 -201
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Exception.h +0 -187
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Image.h +0 -321
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ImageScanner.h +0 -130
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Processor.h +0 -223
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/QZBar.h +0 -169
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/QZBarImage.h +0 -72
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Scanner.h +0 -162
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Symbol.h +0 -529
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Video.h +0 -170
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Window.h +0 -136
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarCaptureReader.h +0 -99
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarImage.h +0 -69
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarImageScanner.h +0 -50
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarReaderController.h +0 -142
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarReaderView.h +0 -119
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarReaderViewController.h +0 -99
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarSymbol.h +0 -67
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/zbargtk.h +0 -205
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/config.c +0 -157
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/convert.c +0 -1172
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/debug.h +0 -87
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder.c +0 -409
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder.h +0 -219
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/code128.c +0 -528
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/code128.h +0 -49
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/code39.c +0 -335
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/code39.h +0 -50
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/ean.c +0 -660
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/ean.h +0 -86
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/i25.c +0 -243
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/i25.h +0 -50
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/pdf417.c +0 -223
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/pdf417.h +0 -49
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/pdf417_hash.h +0 -545
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/qr_finder.c +0 -102
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/qr_finder.h +0 -23
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/error.c +0 -183
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/error.h +0 -240
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/event.h +0 -62
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/image.c +0 -358
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/image.h +0 -142
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/img_scanner.c +0 -819
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/img_scanner.h +0 -38
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/jpeg.c +0 -241
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/mutex.h +0 -160
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor.c +0 -700
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor.h +0 -126
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/lock.c +0 -227
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/null.c +0 -62
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/posix.c +0 -337
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/posix.h +0 -138
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/win.c +0 -335
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/x.c +0 -269
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode.h +0 -66
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/bch15_5.c +0 -184
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/bch15_5.h +0 -20
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/binarize.c +0 -639
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/binarize.h +0 -17
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/isaac.c +0 -139
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/isaac.h +0 -41
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/qrdec.c +0 -3957
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/qrdec.h +0 -168
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/qrdectxt.c +0 -405
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/rs.c +0 -799
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/rs.h +0 -66
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/util.c +0 -140
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/util.h +0 -48
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/refcnt.c +0 -48
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/refcnt.h +0 -96
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/scanner.c +0 -317
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/svg.c +0 -184
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/svg.h +0 -65
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/symbol.c +0 -325
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/symbol.h +0 -93
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/thread.h +0 -127
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/timer.h +0 -151
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/unistd.h +0 -1
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video.c +0 -384
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video.h +0 -160
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video/null.c +0 -37
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video/v4l1.c +0 -435
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video/v4l2.c +0 -509
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video/vfw.c +0 -494
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window.c +0 -318
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window.h +0 -144
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/dib.c +0 -75
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/null.c +0 -103
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/vfw.c +0 -104
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/win.c +0 -334
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/win.h +0 -46
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/x.c +0 -356
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/x.h +0 -74
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/ximage.c +0 -219
- data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/xv.c +0 -273
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_SplashScreen.h +0 -39
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NetworkConnectivityListener.java +0 -222
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NetworkStateTracker.java +0 -185
- data/platform/shared/SyncClient/RhoError.h +0 -29
- data/platform/shared/SyncClient/SyncClient.h +0 -95
- data/platform/symbian/RhoLib/group/RhoLib.mmp +0 -41
- data/platform/symbian/RhoLib/group/bld.inf +0 -15
- data/platform/symbian/SQLite60/group/SQLite60.mmp +0 -21
- data/platform/symbian/SQLite60/group/bld.inf +0 -7
- data/platform/symbian/build/build.properties +0 -80
- data/platform/symbian/build/build.xml +0 -649
- data/platform/symbian/build/insertRhoBundle2pkg.rb +0 -26
- data/platform/symbian/build/lib/stlport.zip +0 -0
- data/platform/symbian/build/logfile.template +0 -1
- data/platform/symbian/build/release.properties +0 -7
- data/platform/symbian/lib/pips_nokia_1_3_ss.sis +0 -0
- data/platform/symbian/rhodes/data/loading.html +0 -11
- data/platform/symbian/rhodes/data/rhodes.rls +0 -91
- data/platform/symbian/rhodes/data/rhodes.rss +0 -537
- data/platform/symbian/rhodes/data/rhodes_reg.rss +0 -40
- data/platform/symbian/rhodes/gfx/qgn_menu_rhodes.svg +0 -55
- data/platform/symbian/rhodes/group/Icons_scalable_dc.mk +0 -50
- data/platform/symbian/rhodes/group/bld.inf +0 -10
- data/platform/symbian/rhodes/group/rhodes.mmp +0 -180
- data/platform/symbian/rhodes/help/Custom.xml +0 -18
- data/platform/symbian/rhodes/help/build_help.mk +0 -45
- data/platform/symbian/rhodes/help/rhodes.cshlp +0 -19
- data/platform/symbian/rhodes/help/rhodes.xml +0 -13
- data/platform/symbian/rhodes/inc/AppManager.h +0 -89
- data/platform/symbian/rhodes/inc/AppSoftkeysObserver.h +0 -95
- data/platform/symbian/rhodes/inc/ConnectionManager.h +0 -115
- data/platform/symbian/rhodes/inc/GeoLocationService.h +0 -89
- data/platform/symbian/rhodes/inc/HttpClient.h +0 -161
- data/platform/symbian/rhodes/inc/HttpConstants.h +0 -72
- data/platform/symbian/rhodes/inc/HttpEventHandler.h +0 -130
- data/platform/symbian/rhodes/inc/HttpFileManager.h +0 -116
- data/platform/symbian/rhodes/inc/HttpServer.h +0 -119
- data/platform/symbian/rhodes/inc/LogOptionsDialog.h +0 -59
- data/platform/symbian/rhodes/inc/RhoCamera.h +0 -321
- data/platform/symbian/rhodes/inc/SpecialLoadObserver.h +0 -115
- data/platform/symbian/rhodes/inc/SyncEngineWrap.h +0 -107
- data/platform/symbian/rhodes/inc/geolocation/GeoLocation.h +0 -91
- data/platform/symbian/rhodes/inc/ports_mngt.h +0 -23
- data/platform/symbian/rhodes/inc/posix_http_client.h +0 -37
- data/platform/symbian/rhodes/inc/rhodes.hrh +0 -106
- data/platform/symbian/rhodes/inc/rhodes.pan +0 -42
- data/platform/symbian/rhodes/inc/rhodesAppUi.h +0 -153
- data/platform/symbian/rhodes/inc/rhodesAppView.h +0 -242
- data/platform/symbian/rhodes/inc/rhodesApplication.h +0 -69
- data/platform/symbian/rhodes/inc/rhodesDocument.h +0 -103
- data/platform/symbian/rhodes/sis/backup_registration.xml +0 -5
- data/platform/symbian/rhodes/sis/cert/rhodes_cert.cer +0 -27
- data/platform/symbian/rhodes/sis/cert/rhodes_pid.key +0 -23
- data/platform/symbian/rhodes/sis/rhodes.pkg +0 -42
- data/platform/symbian/rhodes/src/AppManager.cpp +0 -153
- data/platform/symbian/rhodes/src/AppSoftkeysObserver.cpp +0 -88
- data/platform/symbian/rhodes/src/ConnectionManager.cpp +0 -337
- data/platform/symbian/rhodes/src/GeoLocationService.cpp +0 -151
- data/platform/symbian/rhodes/src/HttpClient.cpp +0 -489
- data/platform/symbian/rhodes/src/HttpConstants.cpp +0 -35
- data/platform/symbian/rhodes/src/HttpEventHandler.cpp +0 -587
- data/platform/symbian/rhodes/src/HttpFileManager.cpp +0 -282
- data/platform/symbian/rhodes/src/HttpServer.cpp +0 -275
- data/platform/symbian/rhodes/src/LogOptionsDialog.cpp +0 -179
- data/platform/symbian/rhodes/src/RhoCamera.cpp +0 -675
- data/platform/symbian/rhodes/src/SpecialLoadObserver.cpp +0 -95
- data/platform/symbian/rhodes/src/SyncEngineWrap.cpp +0 -400
- data/platform/symbian/rhodes/src/camera/camera.cpp +0 -23
- data/platform/symbian/rhodes/src/geolocation/GeoLocation.cpp +0 -110
- data/platform/symbian/rhodes/src/geolocation/ruby_geolocation.cpp +0 -38
- data/platform/symbian/rhodes/src/notification.cpp +0 -117
- data/platform/symbian/rhodes/src/ports_mngt.c +0 -103
- data/platform/symbian/rhodes/src/posix_http_client.c +0 -460
- data/platform/symbian/rhodes/src/rhodes.cpp +0 -43
- data/platform/symbian/rhodes/src/rhodesAppUi.cpp +0 -436
- data/platform/symbian/rhodes/src/rhodesAppView.cpp +0 -851
- data/platform/symbian/rhodes/src/rhodesApplication.cpp +0 -51
- data/platform/symbian/rhodes/src/rhodesDocument.cpp +0 -97
- data/platform/symbian/rhodes/src/rsyncengine.c +0 -11
- data/platform/symbian/rhodes/src/webview/webview.cpp +0 -44
- data/platform/symbian/rubylib/group/bld.inf +0 -7
- data/platform/symbian/rubylib/group/rubylib.mmp +0 -143
- data/platform/symbian/shttpd/group/bld.inf +0 -5
- data/platform/symbian/shttpd/group/shttpd.mmp +0 -24
- data/platform/symbian/tcmalloc/group/bld.inf +0 -15
- data/platform/symbian/tcmalloc/group/tcmalloc.mmp +0 -31
- data/platform/wm/rhodes/emulator/ExternalWebView.cpp +0 -20
- data/platform/wm/rhodes/emulator/ExternalWebView.h +0 -23
- data/platform/wm/rhodes/emulator/MainWindowCallback.h +0 -19
- data/platform/wm/rhodes/emulator/MainWindowProxy.cpp +0 -270
- data/platform/wm/rhodes/emulator/MainWindowProxy.h +0 -34
- data/platform/wm/rhodes/emulator/MainWindowQt.cpp +0 -356
- data/platform/wm/rhodes/emulator/NativeToolbarQt.cpp +0 -57
- data/platform/wm/rhodes/emulator/NativeToolbarQt.h +0 -52
- data/platform/wm/rhodes/emulator/QtMainWindow.cpp +0 -252
- data/platform/wm/rhodes/emulator/QtMainWindow.h +0 -62
- data/platform/wm/rhodes/rho/rubyext/NativeToolbarExt.h +0 -6
- data/platform/wp7/WPApplication.sln +0 -50
- data/platform/wp7/WPApplication/App.xaml +0 -19
- data/platform/wp7/WPApplication/App.xaml.cs +0 -211
- data/platform/wp7/WPApplication/ApplicationIcon.png +0 -0
- data/platform/wp7/WPApplication/Background.png +0 -0
- data/platform/wp7/WPApplication/MainPage.xaml +0 -44
- data/platform/wp7/WPApplication/MainPage.xaml.cs +0 -132
- data/platform/wp7/WPApplication/Properties/AppManifest.xml +0 -6
- data/platform/wp7/WPApplication/Properties/AssemblyInfo.cs +0 -35
- data/platform/wp7/WPApplication/Properties/WMAppManifest.xml +0 -32
- data/platform/wp7/WPApplication/SplashScreenImage.jpg +0 -0
- data/platform/wp7/WPApplication/WPApplication.csproj +0 -201
- data/platform/wp7/WPApplication/WP_PlatformAdaptationLayer.cs +0 -88
- data/platform/wp7/WPApplication/app_manifest.txt +0 -1
- data/platform/wp7/WPApplication/readme.htm +0 -40
- data/platform/wp7/WPApplication/readme2.htm +0 -37
- data/platform/wp7/WPApplication/rho/apps/app/Model1/edit.bb.erb +0 -29
- data/platform/wp7/WPApplication/rho/apps/app/Model1/edit.erb +0 -32
- data/platform/wp7/WPApplication/rho/apps/app/Model1/index.bb.erb +0 -21
- data/platform/wp7/WPApplication/rho/apps/app/Model1/index.erb +0 -26
- data/platform/wp7/WPApplication/rho/apps/app/Model1/model1.rb +0 -10
- data/platform/wp7/WPApplication/rho/apps/app/Model1/model1_controller.rb +0 -58
- data/platform/wp7/WPApplication/rho/apps/app/Model1/new.bb.erb +0 -29
- data/platform/wp7/WPApplication/rho/apps/app/Model1/new.erb +0 -31
- data/platform/wp7/WPApplication/rho/apps/app/Model1/show.bb.erb +0 -26
- data/platform/wp7/WPApplication/rho/apps/app/Model1/show.erb +0 -28
- data/platform/wp7/WPApplication/rho/apps/app/Settings/controller.rb +0 -75
- data/platform/wp7/WPApplication/rho/apps/app/Settings/home.bb.erb +0 -17
- data/platform/wp7/WPApplication/rho/apps/app/Settings/home.erb +0 -20
- data/platform/wp7/WPApplication/rho/apps/app/Settings/index.bb.erb +0 -32
- data/platform/wp7/WPApplication/rho/apps/app/Settings/index.erb +0 -30
- data/platform/wp7/WPApplication/rho/apps/app/Settings/login.bb.erb +0 -35
- data/platform/wp7/WPApplication/rho/apps/app/Settings/login.erb +0 -27
- data/platform/wp7/WPApplication/rho/apps/app/Settings/reset.bb.erb +0 -15
- data/platform/wp7/WPApplication/rho/apps/app/Settings/reset.erb +0 -17
- data/platform/wp7/WPApplication/rho/apps/app/Settings/wait.bb.erb +0 -3
- data/platform/wp7/WPApplication/rho/apps/app/Settings/wait.erb +0 -5
- data/platform/wp7/WPApplication/rho/apps/app/application.rb +0 -16
- data/platform/wp7/WPApplication/rho/apps/app/helpers/application_helper.rb +0 -126
- data/platform/wp7/WPApplication/rho/apps/app/helpers/browser_helper.rb +0 -18
- data/platform/wp7/WPApplication/rho/apps/app/index.bb.erb +0 -26
- data/platform/wp7/WPApplication/rho/apps/app/index.erb +0 -26
- data/platform/wp7/WPApplication/rho/apps/app/layout.erb +0 -47
- data/platform/wp7/WPApplication/rho/apps/app/loading.html +0 -11
- data/platform/wp7/WPApplication/rho/apps/app_manifest.txt +0 -1
- data/platform/wp7/WPApplication/rho/apps/public/css/android.css +0 -330
- data/platform/wp7/WPApplication/rho/apps/public/css/blackberry.css +0 -115
- data/platform/wp7/WPApplication/rho/apps/public/css/iphone.css +0 -410
- data/platform/wp7/WPApplication/rho/apps/public/css/windows_mobile.css +0 -222
- data/platform/wp7/WPApplication/rho/apps/public/images/IUI_LICENSE.txt +0 -21
- data/platform/wp7/WPApplication/rho/apps/public/images/android/ic_menu_more.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/backButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/blueButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/cancel.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/grayButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/disclosure.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/disclosure_detail.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/backButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/blueButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/cancel.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/chevron.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/grayButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/listArrowSel.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/listGroup.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/loading.gif +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/on_off.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/pinstripes.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/selection.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/thumb.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toggle.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toggleOn.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toolButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toolbar.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/whiteButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/radiobutton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/select.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iphone/switch.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/iui-logo-touch-icon.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/listArrow.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/listArrowDown.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/listArrowSel.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/listGroup.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/loading.gif +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/pinstripes.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/right_button.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/selection.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/thumb.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toggle.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toggleOn.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toolButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toolButton_new.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/toolbar.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/images/whiteButton.png +0 -0
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch-iphone.css +0 -9
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.css +0 -374
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.js +0 -742
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.transitions.js +0 -60
- data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jquery.1.3.2.min.js +0 -19
- data/platform/wp7/WPApplication/rho/apps/public/js/application.js +0 -1
- data/platform/wp7/WPApplication/rho/apps/public/js/rho.js +0 -4
- data/platform/wp7/WPApplication/rho/apps/public/js/rhogeolocation-wm.js +0 -59
- data/platform/wp7/WPApplication/rho/apps/public/js/rhogeolocation.js +0 -11
- data/platform/wp7/WPApplication/rho/apps/rhoconfig.txt +0 -32
- data/platform/wp7/WPApplication/rhoconfig.txt +0 -32
- data/platform/wp7/WPApplication/windows_mobile.css +0 -222
- data/res/generators/templates/application/public/jqtouch/changes.txt +0 -20
- data/res/generators/templates/application/public/jqtouch/jqtouch.css +0 -374
- data/res/generators/templates/application/public/jqtouch/jqtouch.js +0 -771
- data/res/generators/templates/application/public/jqtouch/jqtouch.transitions.js +0 -60
- data/res/generators/templates/application/public/jqtouch/jquery.1.3.2.min.js +0 -19
- data/res/generators/templates/application/public/js/wp7.js +0 -7
@@ -1,20 +1,25 @@
|
|
1
1
|
/* signature.i */
|
2
2
|
%module RhoBluetooth
|
3
3
|
%{
|
4
|
-
extern int
|
5
|
-
extern void
|
6
|
-
extern void
|
7
|
-
extern const char*
|
8
|
-
extern const char*
|
9
|
-
extern const char*
|
4
|
+
extern int rho_bluetooth_is_bluetooth_available();
|
5
|
+
extern void rho_bluetooth_off_bluetooth();
|
6
|
+
extern void rho_bluetooth_set_device_name(const char* device_name);
|
7
|
+
extern const char* rho_bluetooth_get_device_name();
|
8
|
+
extern const char* rho_bluetooth_get_last_error();
|
9
|
+
extern const char* rho_bluetooth_create_session(const char* role, const char* callback_url);
|
10
|
+
|
11
|
+
extern const char* rho_bluetooth_create_custom_server_session(const char* client_name, const char* callback_url, int accept_any_device);
|
12
|
+
extern const char* rho_bluetooth_create_custom_client_session(const char* server_name, const char* callback_url);
|
13
|
+
extern const char* rho_bluetooth_stop_current_connection_process();
|
10
14
|
|
11
|
-
|
12
|
-
extern void
|
13
|
-
extern
|
14
|
-
extern
|
15
|
-
extern
|
16
|
-
extern
|
17
|
-
extern
|
15
|
+
|
16
|
+
extern void rho_bluetooth_session_set_callback(const char* connected_device_name, const char* callback_url);
|
17
|
+
extern void rho_bluetooth_session_disconnect(const char* connected_device_name);
|
18
|
+
extern int rho_bluetooth_session_get_status(const char* connected_device_name);
|
19
|
+
extern VALUE rho_bluetooth_session_read_string(const char* connected_device_name);
|
20
|
+
extern void rho_bluetooth_session_write_string(const char* connected_device_name, const char* str);
|
21
|
+
extern VALUE rho_bluetooth_session_read_data(const char* connected_device_name);
|
22
|
+
extern void rho_bluetooth_session_write_data(const char* connected_device_name, VALUE data);
|
18
23
|
|
19
24
|
|
20
25
|
#define is_bluetooth_available rho_bluetooth_is_bluetooth_available
|
@@ -24,6 +29,11 @@ extern void session_write_data(const char* connected_device_name, VALUE data);
|
|
24
29
|
#define get_last_error rho_bluetooth_get_last_error
|
25
30
|
#define create_session rho_bluetooth_create_session
|
26
31
|
|
32
|
+
#define create_custom_server_session rho_bluetooth_create_custom_server_session
|
33
|
+
#define create_custom_client_session rho_bluetooth_create_custom_client_session
|
34
|
+
#define stop_current_connection_process rho_bluetooth_stop_current_connection_process
|
35
|
+
|
36
|
+
|
27
37
|
#define session_set_callback rho_bluetooth_session_set_callback
|
28
38
|
#define session_disconnect rho_bluetooth_session_disconnect
|
29
39
|
#define session_get_status rho_bluetooth_session_get_status
|
@@ -47,10 +57,14 @@ extern const char* get_device_name();
|
|
47
57
|
extern const char* get_last_error();
|
48
58
|
extern const char* create_session(const char* role, const char* callback_url);
|
49
59
|
|
60
|
+
extern const char* create_custom_server_session(const char* client_name, const char* callback_url, int accept_any_device);
|
61
|
+
extern const char* create_custom_client_session(const char* server_name, const char* callback_url);
|
62
|
+
extern const char* stop_current_connection_process();
|
63
|
+
|
50
64
|
extern void session_set_callback(const char* connected_device_name, const char* callback_url);
|
51
65
|
extern void session_disconnect(const char* connected_device_name);
|
52
66
|
extern int session_get_status(const char* connected_device_name);
|
53
|
-
extern
|
67
|
+
extern VALUE session_read_string(const char* connected_device_name);
|
54
68
|
extern void session_write_string(const char* connected_device_name, const char* str);
|
55
69
|
extern VALUE session_read_data(const char* connected_device_name);
|
56
70
|
extern void session_write_data(const char* connected_device_name, VALUE data);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version
|
3
|
+
* Version 1.3.31
|
4
4
|
*
|
5
5
|
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
@@ -9,7 +9,6 @@
|
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
11
|
#define SWIGRUBY
|
12
|
-
|
13
12
|
/* -----------------------------------------------------------------------------
|
14
13
|
* This section contains generic SWIG labels for method/variable
|
15
14
|
* declarations/attributes, and other compiler dependent labels.
|
@@ -17,14 +16,14 @@
|
|
17
16
|
|
18
17
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
19
18
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
20
|
-
# if defined(__SUNPRO_CC)
|
21
|
-
#
|
22
|
-
#
|
23
|
-
|
24
|
-
|
25
|
-
#
|
19
|
+
# if defined(__SUNPRO_CC)
|
20
|
+
# if (__SUNPRO_CC <= 0x560)
|
21
|
+
# define SWIGTEMPLATEDISAMBIGUATOR template
|
22
|
+
# else
|
23
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
24
|
+
# endif
|
26
25
|
# else
|
27
|
-
#
|
26
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
28
27
|
# endif
|
29
28
|
#endif
|
30
29
|
|
@@ -52,12 +51,6 @@
|
|
52
51
|
# endif
|
53
52
|
#endif
|
54
53
|
|
55
|
-
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
56
|
-
# if defined(_MSC_VER)
|
57
|
-
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
58
|
-
# endif
|
59
|
-
#endif
|
60
|
-
|
61
54
|
#ifndef SWIGUNUSEDPARM
|
62
55
|
# ifdef __cplusplus
|
63
56
|
# define SWIGUNUSEDPARM(p)
|
@@ -113,12 +106,6 @@
|
|
113
106
|
# define _CRT_SECURE_NO_DEPRECATE
|
114
107
|
#endif
|
115
108
|
|
116
|
-
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
|
117
|
-
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
|
118
|
-
# define _SCL_SECURE_NO_DEPRECATE
|
119
|
-
#endif
|
120
|
-
|
121
|
-
|
122
109
|
/* -----------------------------------------------------------------------------
|
123
110
|
* This section contains generic SWIG labels for method/variable
|
124
111
|
* declarations/attributes, and other compiler dependent labels.
|
@@ -126,14 +113,14 @@
|
|
126
113
|
|
127
114
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
128
115
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
129
|
-
# if defined(__SUNPRO_CC)
|
130
|
-
#
|
131
|
-
#
|
132
|
-
|
133
|
-
|
134
|
-
#
|
116
|
+
# if defined(__SUNPRO_CC)
|
117
|
+
# if (__SUNPRO_CC <= 0x560)
|
118
|
+
# define SWIGTEMPLATEDISAMBIGUATOR template
|
119
|
+
# else
|
120
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
121
|
+
# endif
|
135
122
|
# else
|
136
|
-
#
|
123
|
+
# define SWIGTEMPLATEDISAMBIGUATOR
|
137
124
|
# endif
|
138
125
|
#endif
|
139
126
|
|
@@ -161,12 +148,6 @@
|
|
161
148
|
# endif
|
162
149
|
#endif
|
163
150
|
|
164
|
-
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
165
|
-
# if defined(_MSC_VER)
|
166
|
-
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
167
|
-
# endif
|
168
|
-
#endif
|
169
|
-
|
170
151
|
#ifndef SWIGUNUSEDPARM
|
171
152
|
# ifdef __cplusplus
|
172
153
|
# define SWIGUNUSEDPARM(p)
|
@@ -222,22 +203,16 @@
|
|
222
203
|
# define _CRT_SECURE_NO_DEPRECATE
|
223
204
|
#endif
|
224
205
|
|
225
|
-
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
|
226
|
-
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
|
227
|
-
# define _SCL_SECURE_NO_DEPRECATE
|
228
|
-
#endif
|
229
|
-
|
230
|
-
|
231
206
|
/* -----------------------------------------------------------------------------
|
232
207
|
* swigrun.swg
|
233
208
|
*
|
234
|
-
* This file contains generic
|
209
|
+
* This file contains generic CAPI SWIG runtime support for pointer
|
235
210
|
* type checking.
|
236
211
|
* ----------------------------------------------------------------------------- */
|
237
212
|
|
238
213
|
/* This should only be incremented when either the layout of swig_type_info changes,
|
239
214
|
or for whatever reason, the runtime changes incompatibly */
|
240
|
-
#define SWIG_RUNTIME_VERSION "
|
215
|
+
#define SWIG_RUNTIME_VERSION "3"
|
241
216
|
|
242
217
|
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
|
243
218
|
#ifdef SWIG_TYPE_TABLE
|
@@ -250,11 +225,11 @@
|
|
250
225
|
|
251
226
|
/*
|
252
227
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
253
|
-
creating a static or dynamic library from the
|
254
|
-
In 99.9% of the cases,
|
228
|
+
creating a static or dynamic library from the swig runtime code.
|
229
|
+
In 99.9% of the cases, swig just needs to declare them as 'static'.
|
255
230
|
|
256
|
-
But only do this if strictly necessary, ie, if you have problems
|
257
|
-
with your compiler or
|
231
|
+
But only do this if is strictly necessary, ie, if you have problems
|
232
|
+
with your compiler or so.
|
258
233
|
*/
|
259
234
|
|
260
235
|
#ifndef SWIGRUNTIME
|
@@ -272,7 +247,6 @@
|
|
272
247
|
|
273
248
|
/* Flags for pointer conversions */
|
274
249
|
#define SWIG_POINTER_DISOWN 0x1
|
275
|
-
#define SWIG_CAST_NEW_MEMORY 0x2
|
276
250
|
|
277
251
|
/* Flags for new pointer objects */
|
278
252
|
#define SWIG_POINTER_OWN 0x1
|
@@ -281,14 +255,14 @@
|
|
281
255
|
/*
|
282
256
|
Flags/methods for returning states.
|
283
257
|
|
284
|
-
The
|
258
|
+
The swig conversion methods, as ConvertPtr, return and integer
|
285
259
|
that tells if the conversion was successful or not. And if not,
|
286
260
|
an error code can be returned (see swigerrors.swg for the codes).
|
287
261
|
|
288
262
|
Use the following macros/flags to set or process the returning
|
289
263
|
states.
|
290
264
|
|
291
|
-
In old versions
|
265
|
+
In old swig versions, you usually write code as:
|
292
266
|
|
293
267
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
294
268
|
// success code
|
@@ -296,7 +270,7 @@
|
|
296
270
|
//fail code
|
297
271
|
}
|
298
272
|
|
299
|
-
Now you can be more explicit:
|
273
|
+
Now you can be more explicit as:
|
300
274
|
|
301
275
|
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
|
302
276
|
if (SWIG_IsOK(res)) {
|
@@ -305,7 +279,7 @@
|
|
305
279
|
// fail code
|
306
280
|
}
|
307
281
|
|
308
|
-
|
282
|
+
that seems to be the same, but now you can also do
|
309
283
|
|
310
284
|
Type *ptr;
|
311
285
|
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
|
@@ -323,7 +297,7 @@
|
|
323
297
|
|
324
298
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
325
299
|
identify the case and take care of the deallocation. Of course that
|
326
|
-
also
|
300
|
+
requires also to SWIG_ConvertPtr to return new result values, as
|
327
301
|
|
328
302
|
int SWIG_ConvertPtr(obj, ptr,...) {
|
329
303
|
if (<obj is ok>) {
|
@@ -341,7 +315,7 @@
|
|
341
315
|
|
342
316
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
343
317
|
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
|
344
|
-
|
318
|
+
swig errors code.
|
345
319
|
|
346
320
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
347
321
|
allows to return the 'cast rank', for example, if you have this
|
@@ -355,8 +329,9 @@
|
|
355
329
|
fooi(1) // cast rank '0'
|
356
330
|
|
357
331
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
358
|
-
*/
|
359
332
|
|
333
|
+
|
334
|
+
*/
|
360
335
|
#define SWIG_OK (0)
|
361
336
|
#define SWIG_ERROR (-1)
|
362
337
|
#define SWIG_IsOK(r) (r >= 0)
|
@@ -381,6 +356,7 @@
|
|
381
356
|
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
|
382
357
|
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
|
383
358
|
|
359
|
+
|
384
360
|
/* Cast-Rank Mode */
|
385
361
|
#if defined(SWIG_CASTRANK_MODE)
|
386
362
|
# ifndef SWIG_TypeRank
|
@@ -403,16 +379,18 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
|
403
379
|
#endif
|
404
380
|
|
405
381
|
|
382
|
+
|
383
|
+
|
406
384
|
#include <string.h>
|
407
385
|
|
408
386
|
#ifdef __cplusplus
|
409
387
|
extern "C" {
|
410
388
|
#endif
|
411
389
|
|
412
|
-
typedef void *(*swig_converter_func)(void
|
390
|
+
typedef void *(*swig_converter_func)(void *);
|
413
391
|
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
414
392
|
|
415
|
-
/* Structure to store
|
393
|
+
/* Structure to store inforomation on one type */
|
416
394
|
typedef struct swig_type_info {
|
417
395
|
const char *name; /* mangled name of this type */
|
418
396
|
const char *str; /* human readable name of this type */
|
@@ -457,7 +435,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1,
|
|
457
435
|
while ((*f2 == ' ') && (f2 != l2)) ++f2;
|
458
436
|
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
|
459
437
|
}
|
460
|
-
return (
|
438
|
+
return (l1 - f1) - (l2 - f2);
|
461
439
|
}
|
462
440
|
|
463
441
|
/*
|
@@ -499,66 +477,48 @@ SWIG_TypeCompare(const char *nb, const char *tb) {
|
|
499
477
|
}
|
500
478
|
|
501
479
|
|
480
|
+
/* think of this as a c++ template<> or a scheme macro */
|
481
|
+
#define SWIG_TypeCheck_Template(comparison, ty) \
|
482
|
+
if (ty) { \
|
483
|
+
swig_cast_info *iter = ty->cast; \
|
484
|
+
while (iter) { \
|
485
|
+
if (comparison) { \
|
486
|
+
if (iter == ty->cast) return iter; \
|
487
|
+
/* Move iter to the top of the linked list */ \
|
488
|
+
iter->prev->next = iter->next; \
|
489
|
+
if (iter->next) \
|
490
|
+
iter->next->prev = iter->prev; \
|
491
|
+
iter->next = ty->cast; \
|
492
|
+
iter->prev = 0; \
|
493
|
+
if (ty->cast) ty->cast->prev = iter; \
|
494
|
+
ty->cast = iter; \
|
495
|
+
return iter; \
|
496
|
+
} \
|
497
|
+
iter = iter->next; \
|
498
|
+
} \
|
499
|
+
} \
|
500
|
+
return 0
|
501
|
+
|
502
502
|
/*
|
503
503
|
Check the typename
|
504
504
|
*/
|
505
505
|
SWIGRUNTIME swig_cast_info *
|
506
506
|
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
507
|
-
|
508
|
-
swig_cast_info *iter = ty->cast;
|
509
|
-
while (iter) {
|
510
|
-
if (strcmp(iter->type->name, c) == 0) {
|
511
|
-
if (iter == ty->cast)
|
512
|
-
return iter;
|
513
|
-
/* Move iter to the top of the linked list */
|
514
|
-
iter->prev->next = iter->next;
|
515
|
-
if (iter->next)
|
516
|
-
iter->next->prev = iter->prev;
|
517
|
-
iter->next = ty->cast;
|
518
|
-
iter->prev = 0;
|
519
|
-
if (ty->cast) ty->cast->prev = iter;
|
520
|
-
ty->cast = iter;
|
521
|
-
return iter;
|
522
|
-
}
|
523
|
-
iter = iter->next;
|
524
|
-
}
|
525
|
-
}
|
526
|
-
return 0;
|
507
|
+
SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
|
527
508
|
}
|
528
509
|
|
529
|
-
/*
|
530
|
-
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
531
|
-
*/
|
510
|
+
/* Same as previous function, except strcmp is replaced with a pointer comparison */
|
532
511
|
SWIGRUNTIME swig_cast_info *
|
533
|
-
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *
|
534
|
-
|
535
|
-
swig_cast_info *iter = ty->cast;
|
536
|
-
while (iter) {
|
537
|
-
if (iter->type == from) {
|
538
|
-
if (iter == ty->cast)
|
539
|
-
return iter;
|
540
|
-
/* Move iter to the top of the linked list */
|
541
|
-
iter->prev->next = iter->next;
|
542
|
-
if (iter->next)
|
543
|
-
iter->next->prev = iter->prev;
|
544
|
-
iter->next = ty->cast;
|
545
|
-
iter->prev = 0;
|
546
|
-
if (ty->cast) ty->cast->prev = iter;
|
547
|
-
ty->cast = iter;
|
548
|
-
return iter;
|
549
|
-
}
|
550
|
-
iter = iter->next;
|
551
|
-
}
|
552
|
-
}
|
553
|
-
return 0;
|
512
|
+
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
|
513
|
+
SWIG_TypeCheck_Template(iter->type == from, into);
|
554
514
|
}
|
555
515
|
|
556
516
|
/*
|
557
517
|
Cast a pointer up an inheritance hierarchy
|
558
518
|
*/
|
559
519
|
SWIGRUNTIMEINLINE void *
|
560
|
-
SWIG_TypeCast(swig_cast_info *ty, void *ptr
|
561
|
-
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr
|
520
|
+
SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
|
521
|
+
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
|
562
522
|
}
|
563
523
|
|
564
524
|
/*
|
@@ -831,33 +791,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
831
791
|
|
832
792
|
#include <ruby.h>
|
833
793
|
|
834
|
-
/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
|
835
|
-
* breaks using rb_intern as an lvalue, as SWIG does. We work around this
|
836
|
-
* issue for now by disabling this.
|
837
|
-
* https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
|
838
|
-
*/
|
839
|
-
#ifdef rb_intern
|
840
|
-
# undef rb_intern
|
841
|
-
#endif
|
842
|
-
|
843
|
-
/* Remove global macros defined in Ruby's win32.h */
|
844
|
-
#ifdef write
|
845
|
-
# undef write
|
846
|
-
#endif
|
847
|
-
#ifdef read
|
848
|
-
# undef read
|
849
|
-
#endif
|
850
|
-
#ifdef bind
|
851
|
-
# undef bind
|
852
|
-
#endif
|
853
|
-
#ifdef close
|
854
|
-
# undef close
|
855
|
-
#endif
|
856
|
-
#ifdef connect
|
857
|
-
# undef connect
|
858
|
-
#endif
|
859
|
-
|
860
|
-
|
861
794
|
/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
|
862
795
|
#ifndef NUM2LL
|
863
796
|
#define NUM2LL(x) NUM2LONG((x))
|
@@ -886,44 +819,12 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
886
819
|
#ifndef RSTRING_PTR
|
887
820
|
# define RSTRING_PTR(x) RSTRING(x)->ptr
|
888
821
|
#endif
|
889
|
-
#ifndef RSTRING_END
|
890
|
-
# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
|
891
|
-
#endif
|
892
822
|
#ifndef RARRAY_LEN
|
893
823
|
# define RARRAY_LEN(x) RARRAY(x)->len
|
894
824
|
#endif
|
895
825
|
#ifndef RARRAY_PTR
|
896
826
|
# define RARRAY_PTR(x) RARRAY(x)->ptr
|
897
827
|
#endif
|
898
|
-
#ifndef RFLOAT_VALUE
|
899
|
-
# define RFLOAT_VALUE(x) RFLOAT(x)->value
|
900
|
-
#endif
|
901
|
-
#ifndef DOUBLE2NUM
|
902
|
-
# define DOUBLE2NUM(x) rb_float_new(x)
|
903
|
-
#endif
|
904
|
-
#ifndef RHASH_TBL
|
905
|
-
# define RHASH_TBL(x) (RHASH(x)->tbl)
|
906
|
-
#endif
|
907
|
-
#ifndef RHASH_ITER_LEV
|
908
|
-
# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
|
909
|
-
#endif
|
910
|
-
#ifndef RHASH_IFNONE
|
911
|
-
# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
|
912
|
-
#endif
|
913
|
-
#ifndef RHASH_SIZE
|
914
|
-
# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
|
915
|
-
#endif
|
916
|
-
#ifndef RHASH_EMPTY_P
|
917
|
-
# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
|
918
|
-
#endif
|
919
|
-
#ifndef RSTRUCT_LEN
|
920
|
-
# define RSTRUCT_LEN(x) RSTRUCT(x)->len
|
921
|
-
#endif
|
922
|
-
#ifndef RSTRUCT_PTR
|
923
|
-
# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
|
924
|
-
#endif
|
925
|
-
|
926
|
-
|
927
828
|
|
928
829
|
/*
|
929
830
|
* Need to be very careful about how these macros are defined, especially
|
@@ -985,7 +886,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
985
886
|
#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
|
986
887
|
#endif
|
987
888
|
|
988
|
-
static VALUE _mSWIG = Qnil;
|
989
889
|
|
990
890
|
/* -----------------------------------------------------------------------------
|
991
891
|
* error manipulation
|
@@ -1076,73 +976,12 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
|
|
1076
976
|
}
|
1077
977
|
|
1078
978
|
|
1079
|
-
/* This function is called when a user inputs a wrong argument to
|
1080
|
-
a method.
|
1081
|
-
*/
|
1082
|
-
SWIGINTERN
|
1083
|
-
const char* Ruby_Format_TypeError( const char* msg,
|
1084
|
-
const char* type,
|
1085
|
-
const char* name,
|
1086
|
-
const int argn,
|
1087
|
-
VALUE input )
|
1088
|
-
{
|
1089
|
-
char buf[128];
|
1090
|
-
VALUE str;
|
1091
|
-
VALUE asStr;
|
1092
|
-
if ( msg && *msg )
|
1093
|
-
{
|
1094
|
-
str = rb_str_new2(msg);
|
1095
|
-
}
|
1096
|
-
else
|
1097
|
-
{
|
1098
|
-
str = rb_str_new(NULL, 0);
|
1099
|
-
}
|
1100
|
-
|
1101
|
-
str = rb_str_cat2( str, "Expected argument " );
|
1102
|
-
sprintf( buf, "%d of type ", argn-1 );
|
1103
|
-
str = rb_str_cat2( str, buf );
|
1104
|
-
str = rb_str_cat2( str, type );
|
1105
|
-
str = rb_str_cat2( str, ", but got " );
|
1106
|
-
str = rb_str_cat2( str, rb_obj_classname(input) );
|
1107
|
-
str = rb_str_cat2( str, " " );
|
1108
|
-
asStr = rb_inspect(input);
|
1109
|
-
if ( RSTRING_LEN(asStr) > 30 )
|
1110
|
-
{
|
1111
|
-
str = rb_str_cat( str, StringValuePtr(asStr), 30 );
|
1112
|
-
str = rb_str_cat2( str, "..." );
|
1113
|
-
}
|
1114
|
-
else
|
1115
|
-
{
|
1116
|
-
str = rb_str_append( str, asStr );
|
1117
|
-
}
|
1118
|
-
|
1119
|
-
if ( name )
|
1120
|
-
{
|
1121
|
-
str = rb_str_cat2( str, "\n\tin SWIG method '" );
|
1122
|
-
str = rb_str_cat2( str, name );
|
1123
|
-
str = rb_str_cat2( str, "'" );
|
1124
|
-
}
|
1125
979
|
|
1126
|
-
return StringValuePtr( str );
|
1127
|
-
}
|
1128
|
-
|
1129
|
-
/* This function is called when an overloaded method fails */
|
1130
|
-
SWIGINTERN
|
1131
|
-
void Ruby_Format_OverloadedError(
|
1132
|
-
const int argc,
|
1133
|
-
const int maxargs,
|
1134
|
-
const char* method,
|
1135
|
-
const char* prototypes
|
1136
|
-
)
|
1137
|
-
{
|
1138
|
-
const char* msg = "Wrong # of arguments";
|
1139
|
-
if ( argc <= maxargs ) msg = "Wrong arguments";
|
1140
|
-
rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
|
1141
|
-
"Possible C/C++ prototypes are:\n%s",
|
1142
|
-
msg, method, prototypes);
|
1143
|
-
}
|
1144
980
|
|
1145
981
|
/* -----------------------------------------------------------------------------
|
982
|
+
* See the LICENSE file for information on copyright, usage and redistribution
|
983
|
+
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
984
|
+
*
|
1146
985
|
* rubytracking.swg
|
1147
986
|
*
|
1148
987
|
* This file contains support for tracking mappings from
|
@@ -1155,51 +994,23 @@ void Ruby_Format_OverloadedError(
|
|
1155
994
|
extern "C" {
|
1156
995
|
#endif
|
1157
996
|
|
1158
|
-
/* Ruby 1.8 actually assumes the first case. */
|
1159
|
-
#if SIZEOF_VOIDP == SIZEOF_LONG
|
1160
|
-
# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
|
1161
|
-
# define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
|
1162
|
-
#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
|
1163
|
-
# define SWIG2NUM(v) LL2NUM((unsigned long long)v)
|
1164
|
-
# define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
|
1165
|
-
#else
|
1166
|
-
# error sizeof(void*) is not the same as long or long long
|
1167
|
-
#endif
|
1168
|
-
|
1169
997
|
|
1170
998
|
/* Global Ruby hash table to store Trackings from C/C++
|
1171
|
-
structs to Ruby Objects.
|
1172
|
-
|
1173
|
-
static VALUE swig_ruby_trackings = Qnil;
|
999
|
+
structs to Ruby Objects. */
|
1000
|
+
static VALUE swig_ruby_trackings;
|
1174
1001
|
|
1175
1002
|
/* Global variable that stores a reference to the ruby
|
1176
1003
|
hash table delete function. */
|
1177
|
-
static ID swig_ruby_hash_delete;
|
1004
|
+
static ID swig_ruby_hash_delete = 0;
|
1178
1005
|
|
1179
1006
|
/* Setup a Ruby hash table to store Trackings */
|
1180
1007
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
1181
1008
|
/* Create a ruby hash table to store Trackings from C++
|
1182
|
-
objects to Ruby objects.
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
This is done to allow multiple DSOs to share the same
|
1188
|
-
tracking table.
|
1189
|
-
*/
|
1190
|
-
ID trackings_id = rb_intern( "@__trackings__" );
|
1191
|
-
VALUE verbose = rb_gv_get("VERBOSE");
|
1192
|
-
rb_gv_set("VERBOSE", Qfalse);
|
1193
|
-
swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
|
1194
|
-
rb_gv_set("VERBOSE", verbose);
|
1195
|
-
|
1196
|
-
/* No, it hasn't. Create one ourselves */
|
1197
|
-
if ( swig_ruby_trackings == Qnil )
|
1198
|
-
{
|
1199
|
-
swig_ruby_trackings = rb_hash_new();
|
1200
|
-
rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
|
1201
|
-
}
|
1202
|
-
|
1009
|
+
objects to Ruby objects. Also make sure to tell
|
1010
|
+
the garabage collector about the hash table. */
|
1011
|
+
swig_ruby_trackings = rb_hash_new();
|
1012
|
+
rb_gc_register_address(&swig_ruby_trackings);
|
1013
|
+
|
1203
1014
|
/* Now store a reference to the hash table delete function
|
1204
1015
|
so that we only have to look it up once.*/
|
1205
1016
|
swig_ruby_hash_delete = rb_intern("delete");
|
@@ -1212,7 +1023,8 @@ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
|
|
1212
1023
|
a Ruby number object. */
|
1213
1024
|
|
1214
1025
|
/* Convert the pointer to a Ruby number */
|
1215
|
-
|
1026
|
+
unsigned long value = (unsigned long) ptr;
|
1027
|
+
return LONG2NUM(value);
|
1216
1028
|
}
|
1217
1029
|
|
1218
1030
|
/* Get a Ruby number to reference an object */
|
@@ -1222,7 +1034,8 @@ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
|
|
1222
1034
|
a Ruby number object. */
|
1223
1035
|
|
1224
1036
|
/* Convert the Object to a Ruby number */
|
1225
|
-
|
1037
|
+
unsigned long value = (unsigned long) object;
|
1038
|
+
return LONG2NUM(value);
|
1226
1039
|
}
|
1227
1040
|
|
1228
1041
|
/* Get a Ruby object from a previously stored reference */
|
@@ -1230,8 +1043,9 @@ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
|
|
1230
1043
|
/* The provided Ruby number object is a reference
|
1231
1044
|
to the Ruby object we want.*/
|
1232
1045
|
|
1233
|
-
/*
|
1234
|
-
|
1046
|
+
/* First convert the Ruby number to a C number */
|
1047
|
+
unsigned long value = NUM2LONG(reference);
|
1048
|
+
return (VALUE) value;
|
1235
1049
|
}
|
1236
1050
|
|
1237
1051
|
/* Add a Tracking from a C/C++ struct to a Ruby object */
|
@@ -1323,21 +1137,15 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1323
1137
|
return target;
|
1324
1138
|
}
|
1325
1139
|
|
1326
|
-
/* For ruby1.8.4 and earlier. */
|
1327
|
-
#ifndef RUBY_INIT_STACK
|
1328
|
-
RUBY_EXTERN void Init_stack(VALUE* addr);
|
1329
|
-
# define RUBY_INIT_STACK \
|
1330
|
-
VALUE variable_in_this_stack_frame; \
|
1331
|
-
Init_stack(&variable_in_this_stack_frame);
|
1332
|
-
#endif
|
1333
|
-
|
1334
|
-
|
1335
1140
|
#ifdef __cplusplus
|
1336
1141
|
}
|
1337
1142
|
#endif
|
1338
1143
|
|
1339
1144
|
|
1340
1145
|
/* -----------------------------------------------------------------------------
|
1146
|
+
* See the LICENSE file for information on copyright, usage and redistribution
|
1147
|
+
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
1148
|
+
*
|
1341
1149
|
* rubyrun.swg
|
1342
1150
|
*
|
1343
1151
|
* This file contains the runtime support for Ruby modules
|
@@ -1381,7 +1189,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1381
1189
|
/* Error manipulation */
|
1382
1190
|
|
1383
1191
|
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1384
|
-
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code),
|
1192
|
+
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
|
1385
1193
|
#define SWIG_fail goto fail
|
1386
1194
|
|
1387
1195
|
|
@@ -1393,7 +1201,6 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1393
1201
|
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1394
1202
|
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1395
1203
|
|
1396
|
-
#include "assert.h"
|
1397
1204
|
|
1398
1205
|
/* -----------------------------------------------------------------------------
|
1399
1206
|
* pointers/data manipulation
|
@@ -1401,6 +1208,9 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1401
1208
|
|
1402
1209
|
#ifdef __cplusplus
|
1403
1210
|
extern "C" {
|
1211
|
+
#if 0
|
1212
|
+
} /* cc-mode */
|
1213
|
+
#endif
|
1404
1214
|
#endif
|
1405
1215
|
|
1406
1216
|
typedef struct {
|
@@ -1412,44 +1222,10 @@ typedef struct {
|
|
1412
1222
|
} swig_class;
|
1413
1223
|
|
1414
1224
|
|
1415
|
-
|
1225
|
+
static VALUE _mSWIG = Qnil;
|
1416
1226
|
static VALUE _cSWIG_Pointer = Qnil;
|
1417
1227
|
static VALUE swig_runtime_data_type_pointer = Qnil;
|
1418
1228
|
|
1419
|
-
/* Global IDs used to keep some internal SWIG stuff */
|
1420
|
-
static ID swig_arity_id = 0;
|
1421
|
-
static ID swig_call_id = 0;
|
1422
|
-
|
1423
|
-
/*
|
1424
|
-
If your swig extension is to be run within an embedded ruby and has
|
1425
|
-
director callbacks, you should set -DRUBY_EMBEDDED during compilation.
|
1426
|
-
This will reset ruby's stack frame on each entry point from the main
|
1427
|
-
program the first time a virtual director function is invoked (in a
|
1428
|
-
non-recursive way).
|
1429
|
-
If this is not done, you run the risk of Ruby trashing the stack.
|
1430
|
-
*/
|
1431
|
-
|
1432
|
-
#ifdef RUBY_EMBEDDED
|
1433
|
-
|
1434
|
-
# define SWIG_INIT_STACK \
|
1435
|
-
if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
|
1436
|
-
++swig_virtual_calls;
|
1437
|
-
# define SWIG_RELEASE_STACK --swig_virtual_calls;
|
1438
|
-
# define Ruby_DirectorTypeMismatchException(x) \
|
1439
|
-
rb_raise( rb_eTypeError, "%s", x ); return c_result;
|
1440
|
-
|
1441
|
-
static unsigned int swig_virtual_calls = 0;
|
1442
|
-
|
1443
|
-
#else /* normal non-embedded extension */
|
1444
|
-
|
1445
|
-
# define SWIG_INIT_STACK
|
1446
|
-
# define SWIG_RELEASE_STACK
|
1447
|
-
# define Ruby_DirectorTypeMismatchException(x) \
|
1448
|
-
throw Swig::DirectorTypeMismatchException( x );
|
1449
|
-
|
1450
|
-
#endif /* RUBY_EMBEDDED */
|
1451
|
-
|
1452
|
-
|
1453
1229
|
SWIGRUNTIME VALUE
|
1454
1230
|
getExceptionClass(void) {
|
1455
1231
|
static int init = 0;
|
@@ -1481,8 +1257,6 @@ SWIG_Ruby_InitRuntime(void)
|
|
1481
1257
|
{
|
1482
1258
|
if (_mSWIG == Qnil) {
|
1483
1259
|
_mSWIG = rb_define_module("SWIG");
|
1484
|
-
swig_call_id = rb_intern("call");
|
1485
|
-
swig_arity_id = rb_intern("arity");
|
1486
1260
|
}
|
1487
1261
|
}
|
1488
1262
|
|
@@ -1506,7 +1280,7 @@ SWIGRUNTIME VALUE
|
|
1506
1280
|
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
1507
1281
|
{
|
1508
1282
|
int own = flags & SWIG_POINTER_OWN;
|
1509
|
-
|
1283
|
+
|
1510
1284
|
char *klass_name;
|
1511
1285
|
swig_class *sklass;
|
1512
1286
|
VALUE klass;
|
@@ -1519,15 +1293,14 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1519
1293
|
sklass = (swig_class *) type->clientdata;
|
1520
1294
|
|
1521
1295
|
/* Are we tracking this class and have we already returned this Ruby object? */
|
1522
|
-
|
1523
|
-
if (track) {
|
1296
|
+
if (sklass->trackObjects) {
|
1524
1297
|
obj = SWIG_RubyInstanceFor(ptr);
|
1525
1298
|
|
1526
1299
|
/* Check the object's type and make sure it has the correct type.
|
1527
1300
|
It might not in cases where methods do things like
|
1528
1301
|
downcast methods. */
|
1529
1302
|
if (obj != Qnil) {
|
1530
|
-
VALUE value = rb_iv_get(obj, "
|
1303
|
+
VALUE value = rb_iv_get(obj, "__swigtype__");
|
1531
1304
|
char* type_name = RSTRING_PTR(value);
|
1532
1305
|
|
1533
1306
|
if (strcmp(type->name, type_name) == 0) {
|
@@ -1537,13 +1310,10 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1537
1310
|
}
|
1538
1311
|
|
1539
1312
|
/* Create a new Ruby object */
|
1540
|
-
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
1541
|
-
( own ? VOIDFUNC(sklass->destroy) :
|
1542
|
-
(track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
|
1543
|
-
), ptr);
|
1313
|
+
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), (own ? VOIDFUNC(sklass->destroy) : 0), ptr);
|
1544
1314
|
|
1545
1315
|
/* If tracking is on for this class then track this object. */
|
1546
|
-
if (
|
1316
|
+
if (sklass->trackObjects) {
|
1547
1317
|
SWIG_RubyAddTracking(ptr, obj);
|
1548
1318
|
}
|
1549
1319
|
} else {
|
@@ -1553,7 +1323,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1553
1323
|
free((void *) klass_name);
|
1554
1324
|
obj = Data_Wrap_Struct(klass, 0, 0, ptr);
|
1555
1325
|
}
|
1556
|
-
rb_iv_set(obj, "
|
1326
|
+
rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
|
1557
1327
|
|
1558
1328
|
return obj;
|
1559
1329
|
}
|
@@ -1565,7 +1335,7 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
|
|
1565
1335
|
VALUE obj;
|
1566
1336
|
swig_class *sklass = (swig_class *) type->clientdata;
|
1567
1337
|
obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
|
1568
|
-
rb_iv_set(obj, "
|
1338
|
+
rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
|
1569
1339
|
return obj;
|
1570
1340
|
}
|
1571
1341
|
|
@@ -1573,7 +1343,7 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
|
|
1573
1343
|
SWIGRUNTIMEINLINE char *
|
1574
1344
|
SWIG_Ruby_MangleStr(VALUE obj)
|
1575
1345
|
{
|
1576
|
-
VALUE stype = rb_iv_get(obj, "
|
1346
|
+
VALUE stype = rb_iv_get(obj, "__swigtype__");
|
1577
1347
|
return StringValuePtr(stype);
|
1578
1348
|
}
|
1579
1349
|
|
@@ -1655,11 +1425,8 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1655
1425
|
tc = SWIG_TypeCheck(c, ty);
|
1656
1426
|
if (!tc) {
|
1657
1427
|
return SWIG_ERROR;
|
1658
|
-
} else {
|
1659
|
-
int newmemory = 0;
|
1660
|
-
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
1661
|
-
assert(!newmemory); /* newmemory handling not yet implemented */
|
1662
1428
|
}
|
1429
|
+
*ptr = SWIG_TypeCast(tc, vptr);
|
1663
1430
|
} else {
|
1664
1431
|
*ptr = vptr;
|
1665
1432
|
}
|
@@ -1740,42 +1507,10 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
|
|
1740
1507
|
rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
|
1741
1508
|
}
|
1742
1509
|
|
1743
|
-
/* This function can be used to check whether a proc or method or similarly
|
1744
|
-
callable function has been passed. Usually used in a %typecheck, like:
|
1745
|
-
|
1746
|
-
%typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
|
1747
|
-
$result = SWIG_Ruby_isCallable( $input );
|
1748
|
-
}
|
1749
|
-
*/
|
1750
|
-
SWIGINTERN
|
1751
|
-
int SWIG_Ruby_isCallable( VALUE proc )
|
1752
|
-
{
|
1753
|
-
if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
|
1754
|
-
return 1;
|
1755
|
-
return 0;
|
1756
|
-
}
|
1757
|
-
|
1758
|
-
/* This function can be used to check the arity (number of arguments)
|
1759
|
-
a proc or method can take. Usually used in a %typecheck.
|
1760
|
-
Valid arities will be that equal to minimal or those < 0
|
1761
|
-
which indicate a variable number of parameters at the end.
|
1762
|
-
*/
|
1763
|
-
SWIGINTERN
|
1764
|
-
int SWIG_Ruby_arity( VALUE proc, int minimal )
|
1765
|
-
{
|
1766
|
-
if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
|
1767
|
-
{
|
1768
|
-
VALUE num = rb_funcall( proc, swig_arity_id, 0 );
|
1769
|
-
int arity = NUM2INT(num);
|
1770
|
-
if ( arity < 0 && (arity+1) < -minimal ) return 1;
|
1771
|
-
if ( arity == minimal ) return 1;
|
1772
|
-
return 1;
|
1773
|
-
}
|
1774
|
-
return 0;
|
1775
|
-
}
|
1776
|
-
|
1777
|
-
|
1778
1510
|
#ifdef __cplusplus
|
1511
|
+
#if 0
|
1512
|
+
{ /* cc-mode */
|
1513
|
+
#endif
|
1779
1514
|
}
|
1780
1515
|
#endif
|
1781
1516
|
|
@@ -1802,11 +1537,7 @@ static swig_module_info swig_module = {swig_types, 1, 0, 0, 0, 0};
|
|
1802
1537
|
|
1803
1538
|
static VALUE mRhoBluetooth;
|
1804
1539
|
|
1805
|
-
#define
|
1806
|
-
#define SWIG_RUBY_THREAD_END_BLOCK
|
1807
|
-
|
1808
|
-
|
1809
|
-
#define SWIGVERSION 0x020000
|
1540
|
+
#define SWIGVERSION 0x010331
|
1810
1541
|
#define SWIG_VERSION SWIGVERSION
|
1811
1542
|
|
1812
1543
|
|
@@ -1814,20 +1545,25 @@ static VALUE mRhoBluetooth;
|
|
1814
1545
|
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
1815
1546
|
|
1816
1547
|
|
1817
|
-
extern int
|
1818
|
-
extern void
|
1819
|
-
extern void
|
1820
|
-
extern const char*
|
1821
|
-
extern const char*
|
1822
|
-
extern const char*
|
1548
|
+
extern int rho_bluetooth_is_bluetooth_available();
|
1549
|
+
extern void rho_bluetooth_off_bluetooth();
|
1550
|
+
extern void rho_bluetooth_set_device_name(const char* device_name);
|
1551
|
+
extern const char* rho_bluetooth_get_device_name();
|
1552
|
+
extern const char* rho_bluetooth_get_last_error();
|
1553
|
+
extern const char* rho_bluetooth_create_session(const char* role, const char* callback_url);
|
1554
|
+
|
1555
|
+
extern const char* rho_bluetooth_create_custom_server_session(const char* client_name, const char* callback_url, int accept_any_device);
|
1556
|
+
extern const char* rho_bluetooth_create_custom_client_session(const char* server_name, const char* callback_url);
|
1557
|
+
extern const char* rho_bluetooth_stop_current_connection_process();
|
1823
1558
|
|
1824
|
-
|
1825
|
-
extern void
|
1826
|
-
extern
|
1827
|
-
extern
|
1828
|
-
extern
|
1829
|
-
extern
|
1830
|
-
extern
|
1559
|
+
|
1560
|
+
extern void rho_bluetooth_session_set_callback(const char* connected_device_name, const char* callback_url);
|
1561
|
+
extern void rho_bluetooth_session_disconnect(const char* connected_device_name);
|
1562
|
+
extern int rho_bluetooth_session_get_status(const char* connected_device_name);
|
1563
|
+
extern VALUE rho_bluetooth_session_read_string(const char* connected_device_name);
|
1564
|
+
extern void rho_bluetooth_session_write_string(const char* connected_device_name, const char* str);
|
1565
|
+
extern VALUE rho_bluetooth_session_read_data(const char* connected_device_name);
|
1566
|
+
extern void rho_bluetooth_session_write_data(const char* connected_device_name, VALUE data);
|
1831
1567
|
|
1832
1568
|
|
1833
1569
|
#define is_bluetooth_available rho_bluetooth_is_bluetooth_available
|
@@ -1837,6 +1573,11 @@ extern void session_write_data(const char* connected_device_name, VALUE data);
|
|
1837
1573
|
#define get_last_error rho_bluetooth_get_last_error
|
1838
1574
|
#define create_session rho_bluetooth_create_session
|
1839
1575
|
|
1576
|
+
#define create_custom_server_session rho_bluetooth_create_custom_server_session
|
1577
|
+
#define create_custom_client_session rho_bluetooth_create_custom_client_session
|
1578
|
+
#define stop_current_connection_process rho_bluetooth_stop_current_connection_process
|
1579
|
+
|
1580
|
+
|
1840
1581
|
#define session_set_callback rho_bluetooth_session_set_callback
|
1841
1582
|
#define session_disconnect rho_bluetooth_session_disconnect
|
1842
1583
|
#define session_get_status rho_bluetooth_session_get_status
|
@@ -1854,12 +1595,14 @@ extern void session_write_data(const char* connected_device_name, VALUE data);
|
|
1854
1595
|
|
1855
1596
|
|
1856
1597
|
#include <limits.h>
|
1857
|
-
#
|
1858
|
-
#
|
1859
|
-
#
|
1860
|
-
#
|
1861
|
-
#
|
1862
|
-
#
|
1598
|
+
#ifndef LLONG_MIN
|
1599
|
+
# define LLONG_MIN LONG_LONG_MIN
|
1600
|
+
#endif
|
1601
|
+
#ifndef LLONG_MAX
|
1602
|
+
# define LLONG_MAX LONG_LONG_MAX
|
1603
|
+
#endif
|
1604
|
+
#ifndef ULLONG_MAX
|
1605
|
+
# define ULLONG_MAX ULONG_LONG_MAX
|
1863
1606
|
#endif
|
1864
1607
|
|
1865
1608
|
|
@@ -1890,11 +1633,11 @@ SWIGINTERN int
|
|
1890
1633
|
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
1891
1634
|
{
|
1892
1635
|
if (TYPE(obj) == T_STRING) {
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1636
|
+
|
1637
|
+
|
1638
|
+
|
1896
1639
|
char *cstr = STR2CSTR(obj);
|
1897
|
-
|
1640
|
+
|
1898
1641
|
size_t size = RSTRING_LEN(obj) + 1;
|
1899
1642
|
if (cptr) {
|
1900
1643
|
if (alloc) {
|
@@ -1950,6 +1693,58 @@ SWIG_FromCharPtr(const char *cptr)
|
|
1950
1693
|
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
|
1951
1694
|
}
|
1952
1695
|
|
1696
|
+
|
1697
|
+
SWIGINTERN VALUE
|
1698
|
+
SWIG_ruby_failed(void)
|
1699
|
+
{
|
1700
|
+
return Qnil;
|
1701
|
+
}
|
1702
|
+
|
1703
|
+
|
1704
|
+
/*@SWIG:%ruby_aux_method@*/
|
1705
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
1706
|
+
{
|
1707
|
+
VALUE obj = args[0];
|
1708
|
+
VALUE type = TYPE(obj);
|
1709
|
+
long *res = (long *)(args[1]);
|
1710
|
+
*res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
|
1711
|
+
return obj;
|
1712
|
+
}
|
1713
|
+
/*@SWIG@*/
|
1714
|
+
|
1715
|
+
SWIGINTERN int
|
1716
|
+
SWIG_AsVal_long (VALUE obj, long* val)
|
1717
|
+
{
|
1718
|
+
VALUE type = TYPE(obj);
|
1719
|
+
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
1720
|
+
long v;
|
1721
|
+
VALUE a[2];
|
1722
|
+
a[0] = obj;
|
1723
|
+
a[1] = (VALUE)(&v);
|
1724
|
+
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
1725
|
+
if (val) *val = v;
|
1726
|
+
return SWIG_OK;
|
1727
|
+
}
|
1728
|
+
}
|
1729
|
+
return SWIG_TypeError;
|
1730
|
+
}
|
1731
|
+
|
1732
|
+
|
1733
|
+
SWIGINTERN int
|
1734
|
+
SWIG_AsVal_int (VALUE obj, int *val)
|
1735
|
+
{
|
1736
|
+
long v;
|
1737
|
+
int res = SWIG_AsVal_long (obj, &v);
|
1738
|
+
if (SWIG_IsOK(res)) {
|
1739
|
+
if ((v < INT_MIN || v > INT_MAX)) {
|
1740
|
+
return SWIG_OverflowError;
|
1741
|
+
} else {
|
1742
|
+
if (val) *val = (int)(v);
|
1743
|
+
}
|
1744
|
+
}
|
1745
|
+
return res;
|
1746
|
+
}
|
1747
|
+
|
1953
1748
|
SWIGINTERN VALUE
|
1954
1749
|
_wrap_is_bluetooth_available(int argc, VALUE *argv, VALUE self) {
|
1955
1750
|
int result;
|
@@ -1990,7 +1785,7 @@ _wrap_set_device_name(int argc, VALUE *argv, VALUE self) {
|
|
1990
1785
|
}
|
1991
1786
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
1992
1787
|
if (!SWIG_IsOK(res1)) {
|
1993
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
1788
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "set_device_name" "', argument " "1"" of type '" "char const *""'");
|
1994
1789
|
}
|
1995
1790
|
arg1 = (char *)(buf1);
|
1996
1791
|
set_device_name((char const *)arg1);
|
@@ -2038,13 +1833,13 @@ SWIGINTERN VALUE
|
|
2038
1833
|
_wrap_create_session(int argc, VALUE *argv, VALUE self) {
|
2039
1834
|
char *arg1 = (char *) 0 ;
|
2040
1835
|
char *arg2 = (char *) 0 ;
|
1836
|
+
char *result = 0 ;
|
2041
1837
|
int res1 ;
|
2042
1838
|
char *buf1 = 0 ;
|
2043
1839
|
int alloc1 = 0 ;
|
2044
1840
|
int res2 ;
|
2045
1841
|
char *buf2 = 0 ;
|
2046
1842
|
int alloc2 = 0 ;
|
2047
|
-
char *result = 0 ;
|
2048
1843
|
VALUE vresult = Qnil;
|
2049
1844
|
|
2050
1845
|
if ((argc < 2) || (argc > 2)) {
|
@@ -2052,12 +1847,12 @@ _wrap_create_session(int argc, VALUE *argv, VALUE self) {
|
|
2052
1847
|
}
|
2053
1848
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
2054
1849
|
if (!SWIG_IsOK(res1)) {
|
2055
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
1850
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "create_session" "', argument " "1"" of type '" "char const *""'");
|
2056
1851
|
}
|
2057
1852
|
arg1 = (char *)(buf1);
|
2058
1853
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
2059
1854
|
if (!SWIG_IsOK(res2)) {
|
2060
|
-
SWIG_exception_fail(SWIG_ArgError(res2),
|
1855
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "create_session" "', argument " "2"" of type '" "char const *""'");
|
2061
1856
|
}
|
2062
1857
|
arg2 = (char *)(buf2);
|
2063
1858
|
result = (char *)create_session((char const *)arg1,(char const *)arg2);
|
@@ -2072,6 +1867,106 @@ fail:
|
|
2072
1867
|
}
|
2073
1868
|
|
2074
1869
|
|
1870
|
+
SWIGINTERN VALUE
|
1871
|
+
_wrap_create_custom_server_session(int argc, VALUE *argv, VALUE self) {
|
1872
|
+
char *arg1 = (char *) 0 ;
|
1873
|
+
char *arg2 = (char *) 0 ;
|
1874
|
+
int arg3 ;
|
1875
|
+
char *result = 0 ;
|
1876
|
+
int res1 ;
|
1877
|
+
char *buf1 = 0 ;
|
1878
|
+
int alloc1 = 0 ;
|
1879
|
+
int res2 ;
|
1880
|
+
char *buf2 = 0 ;
|
1881
|
+
int alloc2 = 0 ;
|
1882
|
+
int val3 ;
|
1883
|
+
int ecode3 = 0 ;
|
1884
|
+
VALUE vresult = Qnil;
|
1885
|
+
|
1886
|
+
if ((argc < 3) || (argc > 3)) {
|
1887
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
1888
|
+
}
|
1889
|
+
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
1890
|
+
if (!SWIG_IsOK(res1)) {
|
1891
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "create_custom_server_session" "', argument " "1"" of type '" "char const *""'");
|
1892
|
+
}
|
1893
|
+
arg1 = (char *)(buf1);
|
1894
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
1895
|
+
if (!SWIG_IsOK(res2)) {
|
1896
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "create_custom_server_session" "', argument " "2"" of type '" "char const *""'");
|
1897
|
+
}
|
1898
|
+
arg2 = (char *)(buf2);
|
1899
|
+
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
1900
|
+
if (!SWIG_IsOK(ecode3)) {
|
1901
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "create_custom_server_session" "', argument " "3"" of type '" "int""'");
|
1902
|
+
}
|
1903
|
+
arg3 = (int)(val3);
|
1904
|
+
result = (char *)create_custom_server_session((char const *)arg1,(char const *)arg2,arg3);
|
1905
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
1906
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1907
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
1908
|
+
return vresult;
|
1909
|
+
fail:
|
1910
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1911
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
1912
|
+
return Qnil;
|
1913
|
+
}
|
1914
|
+
|
1915
|
+
|
1916
|
+
SWIGINTERN VALUE
|
1917
|
+
_wrap_create_custom_client_session(int argc, VALUE *argv, VALUE self) {
|
1918
|
+
char *arg1 = (char *) 0 ;
|
1919
|
+
char *arg2 = (char *) 0 ;
|
1920
|
+
char *result = 0 ;
|
1921
|
+
int res1 ;
|
1922
|
+
char *buf1 = 0 ;
|
1923
|
+
int alloc1 = 0 ;
|
1924
|
+
int res2 ;
|
1925
|
+
char *buf2 = 0 ;
|
1926
|
+
int alloc2 = 0 ;
|
1927
|
+
VALUE vresult = Qnil;
|
1928
|
+
|
1929
|
+
if ((argc < 2) || (argc > 2)) {
|
1930
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
1931
|
+
}
|
1932
|
+
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
1933
|
+
if (!SWIG_IsOK(res1)) {
|
1934
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "create_custom_client_session" "', argument " "1"" of type '" "char const *""'");
|
1935
|
+
}
|
1936
|
+
arg1 = (char *)(buf1);
|
1937
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
1938
|
+
if (!SWIG_IsOK(res2)) {
|
1939
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "create_custom_client_session" "', argument " "2"" of type '" "char const *""'");
|
1940
|
+
}
|
1941
|
+
arg2 = (char *)(buf2);
|
1942
|
+
result = (char *)create_custom_client_session((char const *)arg1,(char const *)arg2);
|
1943
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
1944
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1945
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
1946
|
+
return vresult;
|
1947
|
+
fail:
|
1948
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1949
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
1950
|
+
return Qnil;
|
1951
|
+
}
|
1952
|
+
|
1953
|
+
|
1954
|
+
SWIGINTERN VALUE
|
1955
|
+
_wrap_stop_current_connection_process(int argc, VALUE *argv, VALUE self) {
|
1956
|
+
char *result = 0 ;
|
1957
|
+
VALUE vresult = Qnil;
|
1958
|
+
|
1959
|
+
if ((argc < 0) || (argc > 0)) {
|
1960
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
1961
|
+
}
|
1962
|
+
result = (char *)stop_current_connection_process();
|
1963
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
1964
|
+
return vresult;
|
1965
|
+
fail:
|
1966
|
+
return Qnil;
|
1967
|
+
}
|
1968
|
+
|
1969
|
+
|
2075
1970
|
SWIGINTERN VALUE
|
2076
1971
|
_wrap_session_set_callback(int argc, VALUE *argv, VALUE self) {
|
2077
1972
|
char *arg1 = (char *) 0 ;
|
@@ -2088,12 +1983,12 @@ _wrap_session_set_callback(int argc, VALUE *argv, VALUE self) {
|
|
2088
1983
|
}
|
2089
1984
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
2090
1985
|
if (!SWIG_IsOK(res1)) {
|
2091
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
1986
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "session_set_callback" "', argument " "1"" of type '" "char const *""'");
|
2092
1987
|
}
|
2093
1988
|
arg1 = (char *)(buf1);
|
2094
1989
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
2095
1990
|
if (!SWIG_IsOK(res2)) {
|
2096
|
-
SWIG_exception_fail(SWIG_ArgError(res2),
|
1991
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "session_set_callback" "', argument " "2"" of type '" "char const *""'");
|
2097
1992
|
}
|
2098
1993
|
arg2 = (char *)(buf2);
|
2099
1994
|
session_set_callback((char const *)arg1,(char const *)arg2);
|
@@ -2119,7 +2014,7 @@ _wrap_session_disconnect(int argc, VALUE *argv, VALUE self) {
|
|
2119
2014
|
}
|
2120
2015
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
2121
2016
|
if (!SWIG_IsOK(res1)) {
|
2122
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
2017
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "session_disconnect" "', argument " "1"" of type '" "char const *""'");
|
2123
2018
|
}
|
2124
2019
|
arg1 = (char *)(buf1);
|
2125
2020
|
session_disconnect((char const *)arg1);
|
@@ -2134,10 +2029,10 @@ fail:
|
|
2134
2029
|
SWIGINTERN VALUE
|
2135
2030
|
_wrap_session_get_status(int argc, VALUE *argv, VALUE self) {
|
2136
2031
|
char *arg1 = (char *) 0 ;
|
2032
|
+
int result;
|
2137
2033
|
int res1 ;
|
2138
2034
|
char *buf1 = 0 ;
|
2139
2035
|
int alloc1 = 0 ;
|
2140
|
-
int result;
|
2141
2036
|
VALUE vresult = Qnil;
|
2142
2037
|
|
2143
2038
|
if ((argc < 1) || (argc > 1)) {
|
@@ -2145,7 +2040,7 @@ _wrap_session_get_status(int argc, VALUE *argv, VALUE self) {
|
|
2145
2040
|
}
|
2146
2041
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
2147
2042
|
if (!SWIG_IsOK(res1)) {
|
2148
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
2043
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "session_get_status" "', argument " "1"" of type '" "char const *""'");
|
2149
2044
|
}
|
2150
2045
|
arg1 = (char *)(buf1);
|
2151
2046
|
result = (int)session_get_status((char const *)arg1);
|
@@ -2161,10 +2056,10 @@ fail:
|
|
2161
2056
|
SWIGINTERN VALUE
|
2162
2057
|
_wrap_session_read_string(int argc, VALUE *argv, VALUE self) {
|
2163
2058
|
char *arg1 = (char *) 0 ;
|
2059
|
+
VALUE result;
|
2164
2060
|
int res1 ;
|
2165
2061
|
char *buf1 = 0 ;
|
2166
2062
|
int alloc1 = 0 ;
|
2167
|
-
char *result = 0 ;
|
2168
2063
|
VALUE vresult = Qnil;
|
2169
2064
|
|
2170
2065
|
if ((argc < 1) || (argc > 1)) {
|
@@ -2172,11 +2067,11 @@ _wrap_session_read_string(int argc, VALUE *argv, VALUE self) {
|
|
2172
2067
|
}
|
2173
2068
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
2174
2069
|
if (!SWIG_IsOK(res1)) {
|
2175
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
2070
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "session_read_string" "', argument " "1"" of type '" "char const *""'");
|
2176
2071
|
}
|
2177
2072
|
arg1 = (char *)(buf1);
|
2178
|
-
result = (
|
2179
|
-
vresult =
|
2073
|
+
result = (VALUE)session_read_string((char const *)arg1);
|
2074
|
+
vresult = result;
|
2180
2075
|
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
2181
2076
|
return vresult;
|
2182
2077
|
fail:
|
@@ -2201,12 +2096,12 @@ _wrap_session_write_string(int argc, VALUE *argv, VALUE self) {
|
|
2201
2096
|
}
|
2202
2097
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
2203
2098
|
if (!SWIG_IsOK(res1)) {
|
2204
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
2099
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "session_write_string" "', argument " "1"" of type '" "char const *""'");
|
2205
2100
|
}
|
2206
2101
|
arg1 = (char *)(buf1);
|
2207
2102
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
2208
2103
|
if (!SWIG_IsOK(res2)) {
|
2209
|
-
SWIG_exception_fail(SWIG_ArgError(res2),
|
2104
|
+
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "session_write_string" "', argument " "2"" of type '" "char const *""'");
|
2210
2105
|
}
|
2211
2106
|
arg2 = (char *)(buf2);
|
2212
2107
|
session_write_string((char const *)arg1,(char const *)arg2);
|
@@ -2223,10 +2118,10 @@ fail:
|
|
2223
2118
|
SWIGINTERN VALUE
|
2224
2119
|
_wrap_session_read_data(int argc, VALUE *argv, VALUE self) {
|
2225
2120
|
char *arg1 = (char *) 0 ;
|
2121
|
+
VALUE result;
|
2226
2122
|
int res1 ;
|
2227
2123
|
char *buf1 = 0 ;
|
2228
2124
|
int alloc1 = 0 ;
|
2229
|
-
VALUE result;
|
2230
2125
|
VALUE vresult = Qnil;
|
2231
2126
|
|
2232
2127
|
if ((argc < 1) || (argc > 1)) {
|
@@ -2234,7 +2129,7 @@ _wrap_session_read_data(int argc, VALUE *argv, VALUE self) {
|
|
2234
2129
|
}
|
2235
2130
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
2236
2131
|
if (!SWIG_IsOK(res1)) {
|
2237
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
2132
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "session_read_data" "', argument " "1"" of type '" "char const *""'");
|
2238
2133
|
}
|
2239
2134
|
arg1 = (char *)(buf1);
|
2240
2135
|
result = (VALUE)session_read_data((char const *)arg1);
|
@@ -2260,7 +2155,7 @@ _wrap_session_write_data(int argc, VALUE *argv, VALUE self) {
|
|
2260
2155
|
}
|
2261
2156
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
2262
2157
|
if (!SWIG_IsOK(res1)) {
|
2263
|
-
SWIG_exception_fail(SWIG_ArgError(res1),
|
2158
|
+
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "session_write_data" "', argument " "1"" of type '" "char const *""'");
|
2264
2159
|
}
|
2265
2160
|
arg1 = (char *)(buf1);
|
2266
2161
|
arg2 = argv[1];
|
@@ -2348,7 +2243,7 @@ SWIGRUNTIME void
|
|
2348
2243
|
SWIG_InitializeModule(void *clientdata) {
|
2349
2244
|
size_t i;
|
2350
2245
|
swig_module_info *module_head, *iter;
|
2351
|
-
int found
|
2246
|
+
int found;
|
2352
2247
|
|
2353
2248
|
clientdata = clientdata;
|
2354
2249
|
|
@@ -2358,9 +2253,6 @@ SWIG_InitializeModule(void *clientdata) {
|
|
2358
2253
|
swig_module.type_initial = swig_type_initial;
|
2359
2254
|
swig_module.cast_initial = swig_cast_initial;
|
2360
2255
|
swig_module.next = &swig_module;
|
2361
|
-
init = 1;
|
2362
|
-
} else {
|
2363
|
-
init = 0;
|
2364
2256
|
}
|
2365
2257
|
|
2366
2258
|
/* Try and load any already created modules */
|
@@ -2389,12 +2281,6 @@ SWIG_InitializeModule(void *clientdata) {
|
|
2389
2281
|
module_head->next = &swig_module;
|
2390
2282
|
}
|
2391
2283
|
|
2392
|
-
/* When multiple interpeters are used, a module could have already been initialized in
|
2393
|
-
a different interpreter, but not yet have a pointer in this interpreter.
|
2394
|
-
In this case, we do not want to continue adding types... everything should be
|
2395
|
-
set up already */
|
2396
|
-
if (init == 0) return;
|
2397
|
-
|
2398
2284
|
/* Now work on filling in swig_module.types */
|
2399
2285
|
#ifdef SWIGRUNTIME_DEBUG
|
2400
2286
|
printf("SWIG_InitializeModule: size %d\n", swig_module.size);
|
@@ -2528,9 +2414,7 @@ SWIG_PropagateClientData(void) {
|
|
2528
2414
|
}
|
2529
2415
|
#endif
|
2530
2416
|
|
2531
|
-
/*
|
2532
2417
|
|
2533
|
-
*/
|
2534
2418
|
#ifdef __cplusplus
|
2535
2419
|
extern "C"
|
2536
2420
|
#endif
|
@@ -2552,6 +2436,9 @@ SWIGEXPORT void Init_RhoBluetooth(void) {
|
|
2552
2436
|
rb_define_module_function(mRhoBluetooth, "get_device_name", _wrap_get_device_name, -1);
|
2553
2437
|
rb_define_module_function(mRhoBluetooth, "get_last_error", _wrap_get_last_error, -1);
|
2554
2438
|
rb_define_module_function(mRhoBluetooth, "create_session", _wrap_create_session, -1);
|
2439
|
+
rb_define_module_function(mRhoBluetooth, "create_custom_server_session", _wrap_create_custom_server_session, -1);
|
2440
|
+
rb_define_module_function(mRhoBluetooth, "create_custom_client_session", _wrap_create_custom_client_session, -1);
|
2441
|
+
rb_define_module_function(mRhoBluetooth, "stop_current_connection_process", _wrap_stop_current_connection_process, -1);
|
2555
2442
|
rb_define_module_function(mRhoBluetooth, "session_set_callback", _wrap_session_set_callback, -1);
|
2556
2443
|
rb_define_module_function(mRhoBluetooth, "session_disconnect", _wrap_session_disconnect, -1);
|
2557
2444
|
rb_define_module_function(mRhoBluetooth, "session_get_status", _wrap_session_get_status, -1);
|