rhodes 3.0.2 → 3.1.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,27 +0,0 @@
|
|
1
|
-
The ZBar Bar Code Reader is Copyright (C) 2007-2009 Jeff Brown
|
2
|
-
<spadix@users.sourceforge.net>
|
3
|
-
The QR Code reader is Copyright (C) 1999-2009 Timothy B. Terriberry
|
4
|
-
<tterribe@xiph.org>
|
5
|
-
|
6
|
-
You can redistribute this library and/or modify it under the terms of the GNU
|
7
|
-
Lesser General Public License as published by the Free Software Foundation;
|
8
|
-
either version 2.1 of the License, or (at your option) any later version.
|
9
|
-
|
10
|
-
This library is distributed in the hope that it will be useful, but WITHOUT
|
11
|
-
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
12
|
-
FOR A PARTICULAR PURPOSE.
|
13
|
-
See the GNU Lesser General Public License for more details.
|
14
|
-
|
15
|
-
You should have received a copy of the GNU Lesser General Public License along
|
16
|
-
with this library; if not, write to the Free Software Foundation, Inc.,
|
17
|
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
-
|
19
|
-
ISAAC is based on the public domain implementation by Robert J. Jenkins Jr.,
|
20
|
-
and is itself public domain.
|
21
|
-
|
22
|
-
Portions of the bit stream reader are copyright (C) The Xiph.Org Foundation
|
23
|
-
1994-2008, and are licensed under a BSD-style license.
|
24
|
-
|
25
|
-
The Reed-Solomon decoder is derived from an implementation (C) 1991-1995 Henry
|
26
|
-
Minsky (hqm@ua.com, hqm@ai.mit.edu), and is licensed under the LGPL with
|
27
|
-
permission.
|
@@ -1,95 +0,0 @@
|
|
1
|
-
ZBAR BAR CODE READER
|
2
|
-
====================
|
3
|
-
|
4
|
-
ZBar Bar Code Reader is an open source software suite for reading bar
|
5
|
-
codes from various sources, such as video streams, image files and raw
|
6
|
-
intensity sensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128,
|
7
|
-
Code 39, Interleaved 2 of 5 and QR Code. Included with the library
|
8
|
-
are basic applications for decoding captured bar code images and using
|
9
|
-
a video device (eg, webcam) as a bar code scanner. For application
|
10
|
-
developers, language bindings are included for C, C++, Python and Perl
|
11
|
-
as well as GUI widgets for Qt, GTK and PyGTK.
|
12
|
-
|
13
|
-
Check the ZBar home page for the latest release, mailing lists, etc.
|
14
|
-
http://zbar.sourceforge.net/
|
15
|
-
|
16
|
-
License information can be found in 'COPYING'.
|
17
|
-
|
18
|
-
|
19
|
-
BUILDING
|
20
|
-
========
|
21
|
-
|
22
|
-
See 'INSTALL' for generic configuration and build instructions.
|
23
|
-
|
24
|
-
The scanner/decoder library itself only requires a few standard
|
25
|
-
library functions which should be avilable almost anywhere.
|
26
|
-
|
27
|
-
The zbarcam program uses the video4linux API (v4l1 or v4l2) to access
|
28
|
-
the video device. This interface is part of the linux kernel, a 2.6
|
29
|
-
kernel is recommended for full support. More information is available
|
30
|
-
at
|
31
|
-
http://www.linuxtv.org/wiki/
|
32
|
-
|
33
|
-
pkg-config is used to locate installed libraries. You should have
|
34
|
-
installed pkg-config if you need any of the remaining components.
|
35
|
-
pkg-config may be obtained from
|
36
|
-
http://pkg-config.freedesktop.org/
|
37
|
-
|
38
|
-
The zbarimg program uses ImageMagick to read image files in many
|
39
|
-
different formats. You will need at least ImageMagick version 6.2.6
|
40
|
-
if you want to scan image files. ImageMagick may be obtained from
|
41
|
-
http://www.imagemagick.org/
|
42
|
-
|
43
|
-
The Qt widget requires Qt4. You will need Qt4 if you would like to
|
44
|
-
use or develop a Qt GUI application with an integrated bar code
|
45
|
-
scanning widget. Qt4 may be obtained from
|
46
|
-
http://qt.nokia.com/products
|
47
|
-
|
48
|
-
The GTK+ widget requires GTK+-2.x. You will need GTK+ if you would
|
49
|
-
like to use or develop a GTK+ GUI application with an integrated bar
|
50
|
-
code scanning widget. GTK+ may be obtained from
|
51
|
-
http://www.gtk.org/
|
52
|
-
|
53
|
-
The PyGTK wrapper for the GTK+ widget requires Python and PyGTK. You
|
54
|
-
will need both if you would like to use or develop a PyGTK GUI
|
55
|
-
application with an integrated bar code scanning widget. PyGTK may be
|
56
|
-
obtained from
|
57
|
-
http://www.pygtk.org/
|
58
|
-
|
59
|
-
The Python bindings require Python (version?). You will need Python
|
60
|
-
if you would like to scan images or video directly using Python.
|
61
|
-
Python is available from
|
62
|
-
http://python.org/
|
63
|
-
|
64
|
-
The Perl bindings require Perl (version?). You will need Perl if you
|
65
|
-
would like to scan images or video directly using Perl. Perl is
|
66
|
-
available from
|
67
|
-
http://www.perl.org/
|
68
|
-
|
69
|
-
If required libraries are not available you may disable building for
|
70
|
-
the corresponding component using configure (see configure --help).
|
71
|
-
|
72
|
-
The Perl bindings must be built separately after installing the
|
73
|
-
library. see
|
74
|
-
perl/README
|
75
|
-
|
76
|
-
|
77
|
-
RUNNING
|
78
|
-
=======
|
79
|
-
|
80
|
-
'make install' will install the library and application programs. Run
|
81
|
-
'zbarcam' to start the video scanner. use 'zbarimg barcode.jpg' to
|
82
|
-
decode a saved image file. Check the manual to find specific options
|
83
|
-
for each program.
|
84
|
-
|
85
|
-
|
86
|
-
REPORTING BUGS
|
87
|
-
==============
|
88
|
-
|
89
|
-
Bugs can be reported on the sourceforge project page
|
90
|
-
http://www.sourceforge.net/projects/zbar/
|
91
|
-
|
92
|
-
Please include the ZBar version number and a detailed description of
|
93
|
-
the problem. You'll probably have better luck if you're also familiar
|
94
|
-
with the concepts from:
|
95
|
-
http://www.catb.org/~esr/faqs/smart-questions.html
|
@@ -1,1415 +0,0 @@
|
|
1
|
-
/*------------------------------------------------------------------------
|
2
|
-
* Copyright 2007-2010 (c) Jeff Brown <spadix@users.sourceforge.net>
|
3
|
-
*
|
4
|
-
* This file is part of the ZBar Bar Code Reader.
|
5
|
-
*
|
6
|
-
* The ZBar Bar Code Reader is free software; you can redistribute it
|
7
|
-
* and/or modify it under the terms of the GNU Lesser Public License as
|
8
|
-
* published by the Free Software Foundation; either version 2.1 of
|
9
|
-
* the License, or (at your option) any later version.
|
10
|
-
*
|
11
|
-
* The ZBar Bar Code Reader is distributed in the hope that it will be
|
12
|
-
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
13
|
-
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
* GNU Lesser Public License for more details.
|
15
|
-
*
|
16
|
-
* You should have received a copy of the GNU Lesser Public License
|
17
|
-
* along with the ZBar Bar Code Reader; if not, write to the Free
|
18
|
-
* Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
19
|
-
* Boston, MA 02110-1301 USA
|
20
|
-
*
|
21
|
-
* http://sourceforge.net/projects/zbar
|
22
|
-
*------------------------------------------------------------------------*/
|
23
|
-
#ifndef _ZBAR_H_
|
24
|
-
#define _ZBAR_H_
|
25
|
-
|
26
|
-
/** @file
|
27
|
-
* ZBar Barcode Reader C API definition
|
28
|
-
*/
|
29
|
-
|
30
|
-
/** @mainpage
|
31
|
-
*
|
32
|
-
* interface to the barcode reader is available at several levels.
|
33
|
-
* most applications will want to use the high-level interfaces:
|
34
|
-
*
|
35
|
-
* @section high-level High-Level Interfaces
|
36
|
-
*
|
37
|
-
* these interfaces wrap all library functionality into an easy-to-use
|
38
|
-
* package for a specific toolkit:
|
39
|
-
* - the "GTK+ 2.x widget" may be used with GTK GUI applications. a
|
40
|
-
* Python wrapper is included for PyGtk
|
41
|
-
* - the @ref zbar::QZBar "Qt4 widget" may be used with Qt GUI
|
42
|
-
* applications
|
43
|
-
* - the Processor interface (in @ref c-processor "C" or @ref
|
44
|
-
* zbar::Processor "C++") adds a scanning window to an application
|
45
|
-
* with no GUI.
|
46
|
-
*
|
47
|
-
* @section mid-level Intermediate Interfaces
|
48
|
-
*
|
49
|
-
* building blocks used to construct high-level interfaces:
|
50
|
-
* - the ImageScanner (in @ref c-imagescanner "C" or @ref
|
51
|
-
* zbar::ImageScanner "C++") looks for barcodes in a library defined
|
52
|
-
* image object
|
53
|
-
* - the Window abstraction (in @ref c-window "C" or @ref
|
54
|
-
* zbar::Window "C++") sinks library images, displaying them on the
|
55
|
-
* platform display
|
56
|
-
* - the Video abstraction (in @ref c-video "C" or @ref zbar::Video
|
57
|
-
* "C++") sources library images from a video device
|
58
|
-
*
|
59
|
-
* @section low-level Low-Level Interfaces
|
60
|
-
*
|
61
|
-
* direct interaction with barcode scanning and decoding:
|
62
|
-
* - the Scanner (in @ref c-scanner "C" or @ref zbar::Scanner "C++")
|
63
|
-
* looks for barcodes in a linear intensity sample stream
|
64
|
-
* - the Decoder (in @ref c-decoder "C" or @ref zbar::Decoder "C++")
|
65
|
-
* extracts barcodes from a stream of bar and space widths
|
66
|
-
*/
|
67
|
-
|
68
|
-
|
69
|
-
#include "../../config.h"
|
70
|
-
|
71
|
-
|
72
|
-
#ifdef __cplusplus
|
73
|
-
|
74
|
-
/** C++ namespace for library interfaces */
|
75
|
-
namespace zbar {
|
76
|
-
extern "C" {
|
77
|
-
#endif
|
78
|
-
|
79
|
-
|
80
|
-
/** @name Global library interfaces */
|
81
|
-
/*@{*/
|
82
|
-
|
83
|
-
/** "color" of element: bar or space. */
|
84
|
-
typedef enum zbar_color_e {
|
85
|
-
ZBAR_SPACE = 0, /**< light area or space between bars */
|
86
|
-
ZBAR_BAR = 1, /**< dark area or colored bar segment */
|
87
|
-
} zbar_color_t;
|
88
|
-
|
89
|
-
/** decoded symbol type. */
|
90
|
-
typedef enum zbar_symbol_type_e {
|
91
|
-
ZBAR_NONE = 0, /**< no symbol decoded */
|
92
|
-
ZBAR_PARTIAL = 1, /**< intermediate status */
|
93
|
-
ZBAR_EAN8 = 8, /**< EAN-8 */
|
94
|
-
ZBAR_UPCE = 9, /**< UPC-E */
|
95
|
-
ZBAR_ISBN10 = 10, /**< ISBN-10 (from EAN-13). @since 0.4 */
|
96
|
-
ZBAR_UPCA = 12, /**< UPC-A */
|
97
|
-
ZBAR_EAN13 = 13, /**< EAN-13 */
|
98
|
-
ZBAR_ISBN13 = 14, /**< ISBN-13 (from EAN-13). @since 0.4 */
|
99
|
-
ZBAR_I25 = 25, /**< Interleaved 2 of 5. @since 0.4 */
|
100
|
-
ZBAR_CODE39 = 39, /**< Code 39. @since 0.4 */
|
101
|
-
ZBAR_PDF417 = 57, /**< PDF417. @since 0.6 */
|
102
|
-
ZBAR_QRCODE = 64, /**< QR Code. @since 0.10 */
|
103
|
-
ZBAR_CODE128 = 128, /**< Code 128 */
|
104
|
-
ZBAR_SYMBOL = 0x00ff, /**< mask for base symbol type */
|
105
|
-
ZBAR_ADDON2 = 0x0200, /**< 2-digit add-on flag */
|
106
|
-
ZBAR_ADDON5 = 0x0500, /**< 5-digit add-on flag */
|
107
|
-
ZBAR_ADDON = 0x0700, /**< add-on flag mask */
|
108
|
-
} zbar_symbol_type_t;
|
109
|
-
|
110
|
-
/** decoded symbol coarse orientation.
|
111
|
-
* @since 0.11
|
112
|
-
*/
|
113
|
-
typedef enum zbar_orientation_e {
|
114
|
-
ZBAR_ORIENT_UNKNOWN = -1, /**< unable to determine orientation */
|
115
|
-
ZBAR_ORIENT_UP, /**< upright, read left to right */
|
116
|
-
ZBAR_ORIENT_RIGHT, /**< sideways, read top to bottom */
|
117
|
-
ZBAR_ORIENT_DOWN, /**< upside-down, read right to left */
|
118
|
-
ZBAR_ORIENT_LEFT, /**< sideways, read bottom to top */
|
119
|
-
} zbar_orientation_t;
|
120
|
-
|
121
|
-
/** error codes. */
|
122
|
-
typedef enum zbar_error_e {
|
123
|
-
ZBAR_OK = 0, /**< no error */
|
124
|
-
ZBAR_ERR_NOMEM, /**< out of memory */
|
125
|
-
ZBAR_ERR_INTERNAL, /**< internal library error */
|
126
|
-
ZBAR_ERR_UNSUPPORTED, /**< unsupported request */
|
127
|
-
ZBAR_ERR_INVALID, /**< invalid request */
|
128
|
-
ZBAR_ERR_SYSTEM, /**< system error */
|
129
|
-
ZBAR_ERR_LOCKING, /**< locking error */
|
130
|
-
ZBAR_ERR_BUSY, /**< all resources busy */
|
131
|
-
ZBAR_ERR_XDISPLAY, /**< X11 display error */
|
132
|
-
ZBAR_ERR_XPROTO, /**< X11 protocol error */
|
133
|
-
ZBAR_ERR_CLOSED, /**< output window is closed */
|
134
|
-
ZBAR_ERR_WINAPI, /**< windows system error */
|
135
|
-
ZBAR_ERR_NUM /**< number of error codes */
|
136
|
-
} zbar_error_t;
|
137
|
-
|
138
|
-
/** decoder configuration options.
|
139
|
-
* @since 0.4
|
140
|
-
*/
|
141
|
-
typedef enum zbar_config_e {
|
142
|
-
ZBAR_CFG_ENABLE = 0, /**< enable symbology/feature */
|
143
|
-
ZBAR_CFG_ADD_CHECK, /**< enable check digit when optional */
|
144
|
-
ZBAR_CFG_EMIT_CHECK, /**< return check digit when present */
|
145
|
-
ZBAR_CFG_ASCII, /**< enable full ASCII character set */
|
146
|
-
ZBAR_CFG_NUM, /**< number of boolean decoder configs */
|
147
|
-
|
148
|
-
ZBAR_CFG_MIN_LEN = 0x20, /**< minimum data length for valid decode */
|
149
|
-
ZBAR_CFG_MAX_LEN, /**< maximum data length for valid decode */
|
150
|
-
|
151
|
-
ZBAR_CFG_UNCERTAINTY = 0x40,/**< required video consistency frames */
|
152
|
-
|
153
|
-
ZBAR_CFG_POSITION = 0x80, /**< enable scanner to collect position data */
|
154
|
-
|
155
|
-
ZBAR_CFG_X_DENSITY = 0x100, /**< image scanner vertical scan density */
|
156
|
-
ZBAR_CFG_Y_DENSITY, /**< image scanner horizontal scan density */
|
157
|
-
} zbar_config_t;
|
158
|
-
|
159
|
-
/** retrieve runtime library version information.
|
160
|
-
* @param major set to the running major version (unless NULL)
|
161
|
-
* @param minor set to the running minor version (unless NULL)
|
162
|
-
* @returns 0
|
163
|
-
*/
|
164
|
-
extern int zbar_version(unsigned *major,
|
165
|
-
unsigned *minor);
|
166
|
-
|
167
|
-
/** set global library debug level.
|
168
|
-
* @param verbosity desired debug level. higher values create more spew
|
169
|
-
*/
|
170
|
-
extern void zbar_set_verbosity(int verbosity);
|
171
|
-
|
172
|
-
/** increase global library debug level.
|
173
|
-
* eg, for -vvvv
|
174
|
-
*/
|
175
|
-
extern void zbar_increase_verbosity(void);
|
176
|
-
|
177
|
-
/** retrieve string name for symbol encoding.
|
178
|
-
* @param sym symbol type encoding
|
179
|
-
* @returns the static string name for the specified symbol type,
|
180
|
-
* or "UNKNOWN" if the encoding is not recognized
|
181
|
-
*/
|
182
|
-
extern const char *zbar_get_symbol_name(zbar_symbol_type_t sym);
|
183
|
-
|
184
|
-
/** retrieve string name for addon encoding.
|
185
|
-
* @param sym symbol type encoding
|
186
|
-
* @returns static string name for any addon, or the empty string
|
187
|
-
* if no addons were decoded
|
188
|
-
*/
|
189
|
-
extern const char *zbar_get_addon_name(zbar_symbol_type_t sym);
|
190
|
-
|
191
|
-
/** retrieve string name for orientation.
|
192
|
-
* @param orientation orientation encoding
|
193
|
-
* @returns the static string name for the specified orientation,
|
194
|
-
* or "UNKNOWN" if the orientation is not recognized
|
195
|
-
* @since 0.11
|
196
|
-
*/
|
197
|
-
extern const char *zbar_get_orientation_name(zbar_orientation_t orientation);
|
198
|
-
|
199
|
-
/** parse a configuration string of the form "[symbology.]config[=value]".
|
200
|
-
* the config must match one of the recognized names.
|
201
|
-
* the symbology, if present, must match one of the recognized names.
|
202
|
-
* if symbology is unspecified, it will be set to 0.
|
203
|
-
* if value is unspecified it will be set to 1.
|
204
|
-
* @returns 0 if the config is parsed successfully, 1 otherwise
|
205
|
-
* @since 0.4
|
206
|
-
*/
|
207
|
-
extern int zbar_parse_config(const char *config_string,
|
208
|
-
zbar_symbol_type_t *symbology,
|
209
|
-
zbar_config_t *config,
|
210
|
-
int *value);
|
211
|
-
|
212
|
-
/** consistently compute fourcc values across architectures
|
213
|
-
* (adapted from v4l2 specification)
|
214
|
-
* @since 0.11
|
215
|
-
*/
|
216
|
-
#define zbar_fourcc(a, b, c, d) \
|
217
|
-
((unsigned long)(a) | \
|
218
|
-
((unsigned long)(b) << 8) | \
|
219
|
-
((unsigned long)(c) << 16) | \
|
220
|
-
((unsigned long)(d) << 24))
|
221
|
-
|
222
|
-
/** parse a fourcc string into its encoded integer value.
|
223
|
-
* @since 0.11
|
224
|
-
*/
|
225
|
-
static inline unsigned long zbar_fourcc_parse (const char *format)
|
226
|
-
{
|
227
|
-
unsigned long fourcc = 0;
|
228
|
-
if(format) {
|
229
|
-
int i;
|
230
|
-
for(i = 0; i < 4 && format[i]; i++)
|
231
|
-
fourcc |= ((unsigned long)format[i]) << (i * 8);
|
232
|
-
}
|
233
|
-
return(fourcc);
|
234
|
-
}
|
235
|
-
|
236
|
-
/** @internal type unsafe error API (don't use) */
|
237
|
-
extern int _zbar_error_spew(const void *object,
|
238
|
-
int verbosity);
|
239
|
-
extern const char *_zbar_error_string(const void *object,
|
240
|
-
int verbosity);
|
241
|
-
extern zbar_error_t _zbar_get_error_code(const void *object);
|
242
|
-
|
243
|
-
/*@}*/
|
244
|
-
|
245
|
-
struct zbar_symbol_s;
|
246
|
-
typedef struct zbar_symbol_s zbar_symbol_t;
|
247
|
-
|
248
|
-
struct zbar_symbol_set_s;
|
249
|
-
typedef struct zbar_symbol_set_s zbar_symbol_set_t;
|
250
|
-
|
251
|
-
|
252
|
-
/*------------------------------------------------------------*/
|
253
|
-
/** @name Symbol interface
|
254
|
-
* decoded barcode symbol result object. stores type, data, and image
|
255
|
-
* location of decoded symbol. all memory is owned by the library
|
256
|
-
*/
|
257
|
-
/*@{*/
|
258
|
-
|
259
|
-
/** @typedef zbar_symbol_t
|
260
|
-
* opaque decoded symbol object.
|
261
|
-
*/
|
262
|
-
|
263
|
-
/** symbol reference count manipulation.
|
264
|
-
* increment the reference count when you store a new reference to the
|
265
|
-
* symbol. decrement when the reference is no longer used. do not
|
266
|
-
* refer to the symbol once the count is decremented and the
|
267
|
-
* containing image has been recycled or destroyed.
|
268
|
-
* @note the containing image holds a reference to the symbol, so you
|
269
|
-
* only need to use this if you keep a symbol after the image has been
|
270
|
-
* destroyed or reused.
|
271
|
-
* @since 0.9
|
272
|
-
*/
|
273
|
-
extern void zbar_symbol_ref(const zbar_symbol_t *symbol,
|
274
|
-
int refs);
|
275
|
-
|
276
|
-
/** retrieve type of decoded symbol.
|
277
|
-
* @returns the symbol type
|
278
|
-
*/
|
279
|
-
extern zbar_symbol_type_t zbar_symbol_get_type(const zbar_symbol_t *symbol);
|
280
|
-
|
281
|
-
/** retrieve data decoded from symbol.
|
282
|
-
* @returns the data string
|
283
|
-
*/
|
284
|
-
extern const char *zbar_symbol_get_data(const zbar_symbol_t *symbol);
|
285
|
-
|
286
|
-
/** retrieve length of binary data.
|
287
|
-
* @returns the length of the decoded data
|
288
|
-
*/
|
289
|
-
extern unsigned int zbar_symbol_get_data_length(const zbar_symbol_t *symbol);
|
290
|
-
|
291
|
-
/** retrieve a symbol confidence metric.
|
292
|
-
* @returns an unscaled, relative quantity: larger values are better
|
293
|
-
* than smaller values, where "large" and "small" are application
|
294
|
-
* dependent.
|
295
|
-
* @note expect the exact definition of this quantity to change as the
|
296
|
-
* metric is refined. currently, only the ordered relationship
|
297
|
-
* between two values is defined and will remain stable in the future
|
298
|
-
* @since 0.9
|
299
|
-
*/
|
300
|
-
extern int zbar_symbol_get_quality(const zbar_symbol_t *symbol);
|
301
|
-
|
302
|
-
/** retrieve current cache count. when the cache is enabled for the
|
303
|
-
* image_scanner this provides inter-frame reliability and redundancy
|
304
|
-
* information for video streams.
|
305
|
-
* @returns < 0 if symbol is still uncertain.
|
306
|
-
* @returns 0 if symbol is newly verified.
|
307
|
-
* @returns > 0 for duplicate symbols
|
308
|
-
*/
|
309
|
-
extern int zbar_symbol_get_count(const zbar_symbol_t *symbol);
|
310
|
-
|
311
|
-
/** retrieve the number of points in the location polygon. the
|
312
|
-
* location polygon defines the image area that the symbol was
|
313
|
-
* extracted from.
|
314
|
-
* @returns the number of points in the location polygon
|
315
|
-
* @note this is currently not a polygon, but the scan locations
|
316
|
-
* where the symbol was decoded
|
317
|
-
*/
|
318
|
-
extern unsigned zbar_symbol_get_loc_size(const zbar_symbol_t *symbol);
|
319
|
-
|
320
|
-
/** retrieve location polygon x-coordinates.
|
321
|
-
* points are specified by 0-based index.
|
322
|
-
* @returns the x-coordinate for a point in the location polygon.
|
323
|
-
* @returns -1 if index is out of range
|
324
|
-
*/
|
325
|
-
extern int zbar_symbol_get_loc_x(const zbar_symbol_t *symbol,
|
326
|
-
unsigned index);
|
327
|
-
|
328
|
-
/** retrieve location polygon y-coordinates.
|
329
|
-
* points are specified by 0-based index.
|
330
|
-
* @returns the y-coordinate for a point in the location polygon.
|
331
|
-
* @returns -1 if index is out of range
|
332
|
-
*/
|
333
|
-
extern int zbar_symbol_get_loc_y(const zbar_symbol_t *symbol,
|
334
|
-
unsigned index);
|
335
|
-
|
336
|
-
/** retrieve general orientation of decoded symbol.
|
337
|
-
* @returns a coarse, axis-aligned indication of symbol orientation or
|
338
|
-
* ZBAR_ORIENT_UNKNOWN if unknown
|
339
|
-
* @since 0.11
|
340
|
-
*/
|
341
|
-
extern zbar_orientation_t
|
342
|
-
zbar_symbol_get_orientation(const zbar_symbol_t *symbol);
|
343
|
-
|
344
|
-
/** iterate the set to which this symbol belongs (there can be only one).
|
345
|
-
* @returns the next symbol in the set, or
|
346
|
-
* @returns NULL when no more results are available
|
347
|
-
*/
|
348
|
-
extern const zbar_symbol_t *zbar_symbol_next(const zbar_symbol_t *symbol);
|
349
|
-
|
350
|
-
/** retrieve components of a composite result.
|
351
|
-
* @returns the symbol set containing the components
|
352
|
-
* @returns NULL if the symbol is already a physical symbol
|
353
|
-
* @since 0.10
|
354
|
-
*/
|
355
|
-
extern const zbar_symbol_set_t*
|
356
|
-
zbar_symbol_get_components(const zbar_symbol_t *symbol);
|
357
|
-
|
358
|
-
/** iterate components of a composite result.
|
359
|
-
* @returns the first physical component symbol of a composite result
|
360
|
-
* @returns NULL if the symbol is already a physical symbol
|
361
|
-
* @since 0.10
|
362
|
-
*/
|
363
|
-
extern const zbar_symbol_t*
|
364
|
-
zbar_symbol_first_component(const zbar_symbol_t *symbol);
|
365
|
-
|
366
|
-
/** print XML symbol element representation to user result buffer.
|
367
|
-
* @see http://zbar.sourceforge.net/2008/barcode.xsd for the schema.
|
368
|
-
* @param symbol is the symbol to print
|
369
|
-
* @param buffer is the inout result pointer, it will be reallocated
|
370
|
-
* with a larger size if necessary.
|
371
|
-
* @param buflen is inout length of the result buffer.
|
372
|
-
* @returns the buffer pointer
|
373
|
-
* @since 0.6
|
374
|
-
*/
|
375
|
-
extern char *zbar_symbol_xml(const zbar_symbol_t *symbol,
|
376
|
-
char **buffer,
|
377
|
-
unsigned *buflen);
|
378
|
-
|
379
|
-
/*@}*/
|
380
|
-
|
381
|
-
/*------------------------------------------------------------*/
|
382
|
-
/** @name Symbol Set interface
|
383
|
-
* container for decoded result symbols associated with an image
|
384
|
-
* or a composite symbol.
|
385
|
-
* @since 0.10
|
386
|
-
*/
|
387
|
-
/*@{*/
|
388
|
-
|
389
|
-
/** @typedef zbar_symbol_set_t
|
390
|
-
* opaque symbol iterator object.
|
391
|
-
* @since 0.10
|
392
|
-
*/
|
393
|
-
|
394
|
-
/** reference count manipulation.
|
395
|
-
* increment the reference count when you store a new reference.
|
396
|
-
* decrement when the reference is no longer used. do not refer to
|
397
|
-
* the object any longer once references have been released.
|
398
|
-
* @since 0.10
|
399
|
-
*/
|
400
|
-
extern void zbar_symbol_set_ref(const zbar_symbol_set_t *symbols,
|
401
|
-
int refs);
|
402
|
-
|
403
|
-
/** retrieve set size.
|
404
|
-
* @returns the number of symbols in the set.
|
405
|
-
* @since 0.10
|
406
|
-
*/
|
407
|
-
extern int zbar_symbol_set_get_size(const zbar_symbol_set_t *symbols);
|
408
|
-
|
409
|
-
/** set iterator.
|
410
|
-
* @returns the first decoded symbol result in a set
|
411
|
-
* @returns NULL if the set is empty
|
412
|
-
* @since 0.10
|
413
|
-
*/
|
414
|
-
extern const zbar_symbol_t*
|
415
|
-
zbar_symbol_set_first_symbol(const zbar_symbol_set_t *symbols);
|
416
|
-
|
417
|
-
/** raw result iterator.
|
418
|
-
* @returns the first decoded symbol result in a set, *before* filtering
|
419
|
-
* @returns NULL if the set is empty
|
420
|
-
* @since 0.11
|
421
|
-
*/
|
422
|
-
extern const zbar_symbol_t*
|
423
|
-
zbar_symbol_set_first_unfiltered(const zbar_symbol_set_t *symbols);
|
424
|
-
|
425
|
-
/*@}*/
|
426
|
-
|
427
|
-
/*------------------------------------------------------------*/
|
428
|
-
/** @name Image interface
|
429
|
-
* stores image data samples along with associated format and size
|
430
|
-
* metadata
|
431
|
-
*/
|
432
|
-
/*@{*/
|
433
|
-
|
434
|
-
struct zbar_image_s;
|
435
|
-
/** opaque image object. */
|
436
|
-
typedef struct zbar_image_s zbar_image_t;
|
437
|
-
|
438
|
-
/** cleanup handler callback function.
|
439
|
-
* called to free sample data when an image is destroyed.
|
440
|
-
*/
|
441
|
-
typedef void (zbar_image_cleanup_handler_t)(zbar_image_t *image);
|
442
|
-
|
443
|
-
/** data handler callback function.
|
444
|
-
* called when decoded symbol results are available for an image
|
445
|
-
*/
|
446
|
-
typedef void (zbar_image_data_handler_t)(zbar_image_t *image,
|
447
|
-
const void *userdata);
|
448
|
-
|
449
|
-
/** new image constructor.
|
450
|
-
* @returns a new image object with uninitialized data and format.
|
451
|
-
* this image should be destroyed (using zbar_image_destroy()) as
|
452
|
-
* soon as the application is finished with it
|
453
|
-
*/
|
454
|
-
extern zbar_image_t *zbar_image_create(void);
|
455
|
-
|
456
|
-
/** image destructor. all images created by or returned to the
|
457
|
-
* application should be destroyed using this function. when an image
|
458
|
-
* is destroyed, the associated data cleanup handler will be invoked
|
459
|
-
* if available
|
460
|
-
* @note make no assumptions about the image or the data buffer.
|
461
|
-
* they may not be destroyed/cleaned immediately if the library
|
462
|
-
* is still using them. if necessary, use the cleanup handler hook
|
463
|
-
* to keep track of image data buffers
|
464
|
-
*/
|
465
|
-
extern void zbar_image_destroy(zbar_image_t *image);
|
466
|
-
|
467
|
-
/** image reference count manipulation.
|
468
|
-
* increment the reference count when you store a new reference to the
|
469
|
-
* image. decrement when the reference is no longer used. do not
|
470
|
-
* refer to the image any longer once the count is decremented.
|
471
|
-
* zbar_image_ref(image, -1) is the same as zbar_image_destroy(image)
|
472
|
-
* @since 0.5
|
473
|
-
*/
|
474
|
-
extern void zbar_image_ref(zbar_image_t *image,
|
475
|
-
int refs);
|
476
|
-
|
477
|
-
/** image format conversion. refer to the documentation for supported
|
478
|
-
* image formats
|
479
|
-
* @returns a @em new image with the sample data from the original image
|
480
|
-
* converted to the requested format. the original image is
|
481
|
-
* unaffected.
|
482
|
-
* @note the converted image size may be rounded (up) due to format
|
483
|
-
* constraints
|
484
|
-
*/
|
485
|
-
extern zbar_image_t *zbar_image_convert(const zbar_image_t *image,
|
486
|
-
unsigned long format);
|
487
|
-
|
488
|
-
/** image format conversion with crop/pad.
|
489
|
-
* if the requested size is larger than the image, the last row/column
|
490
|
-
* are duplicated to cover the difference. if the requested size is
|
491
|
-
* smaller than the image, the extra rows/columns are dropped from the
|
492
|
-
* right/bottom.
|
493
|
-
* @returns a @em new image with the sample data from the original
|
494
|
-
* image converted to the requested format and size.
|
495
|
-
* @note the image is @em not scaled
|
496
|
-
* @see zbar_image_convert()
|
497
|
-
* @since 0.4
|
498
|
-
*/
|
499
|
-
extern zbar_image_t *zbar_image_convert_resize(const zbar_image_t *image,
|
500
|
-
unsigned long format,
|
501
|
-
unsigned width,
|
502
|
-
unsigned height);
|
503
|
-
|
504
|
-
/** retrieve the image format.
|
505
|
-
* @returns the fourcc describing the format of the image sample data
|
506
|
-
*/
|
507
|
-
extern unsigned long zbar_image_get_format(const zbar_image_t *image);
|
508
|
-
|
509
|
-
/** retrieve a "sequence" (page/frame) number associated with this image.
|
510
|
-
* @since 0.6
|
511
|
-
*/
|
512
|
-
extern unsigned zbar_image_get_sequence(const zbar_image_t *image);
|
513
|
-
|
514
|
-
/** retrieve the width of the image.
|
515
|
-
* @returns the width in sample columns
|
516
|
-
*/
|
517
|
-
extern unsigned zbar_image_get_width(const zbar_image_t *image);
|
518
|
-
|
519
|
-
/** retrieve the height of the image.
|
520
|
-
* @returns the height in sample rows
|
521
|
-
*/
|
522
|
-
extern unsigned zbar_image_get_height(const zbar_image_t *image);
|
523
|
-
|
524
|
-
/** retrieve both dimensions of the image.
|
525
|
-
* fills in the width and height in samples
|
526
|
-
*/
|
527
|
-
extern void zbar_image_get_size(const zbar_image_t *image,
|
528
|
-
unsigned *width,
|
529
|
-
unsigned *height);
|
530
|
-
|
531
|
-
/** retrieve the crop rectangle.
|
532
|
-
* fills in the image coordinates of the upper left corner and size
|
533
|
-
* of an axis-aligned rectangular area of the image that will be scanned.
|
534
|
-
* defaults to the full image
|
535
|
-
* @since 0.11
|
536
|
-
*/
|
537
|
-
extern void zbar_image_get_crop(const zbar_image_t *image,
|
538
|
-
unsigned *x,
|
539
|
-
unsigned *y,
|
540
|
-
unsigned *width,
|
541
|
-
unsigned *height);
|
542
|
-
|
543
|
-
/** return the image sample data. the returned data buffer is only
|
544
|
-
* valid until zbar_image_destroy() is called
|
545
|
-
*/
|
546
|
-
extern const void *zbar_image_get_data(const zbar_image_t *image);
|
547
|
-
|
548
|
-
/** return the size of image data.
|
549
|
-
* @since 0.6
|
550
|
-
*/
|
551
|
-
extern unsigned long zbar_image_get_data_length(const zbar_image_t *img);
|
552
|
-
|
553
|
-
/** retrieve the decoded results.
|
554
|
-
* @returns the (possibly empty) set of decoded symbols
|
555
|
-
* @returns NULL if the image has not been scanned
|
556
|
-
* @since 0.10
|
557
|
-
*/
|
558
|
-
extern const zbar_symbol_set_t*
|
559
|
-
zbar_image_get_symbols(const zbar_image_t *image);
|
560
|
-
|
561
|
-
/** associate the specified symbol set with the image, replacing any
|
562
|
-
* existing results. use NULL to release the current results from the
|
563
|
-
* image.
|
564
|
-
* @see zbar_image_scanner_recycle_image()
|
565
|
-
* @since 0.10
|
566
|
-
*/
|
567
|
-
extern void zbar_image_set_symbols(zbar_image_t *image,
|
568
|
-
const zbar_symbol_set_t *symbols);
|
569
|
-
|
570
|
-
/** image_scanner decode result iterator.
|
571
|
-
* @returns the first decoded symbol result for an image
|
572
|
-
* or NULL if no results are available
|
573
|
-
*/
|
574
|
-
extern const zbar_symbol_t*
|
575
|
-
zbar_image_first_symbol(const zbar_image_t *image);
|
576
|
-
|
577
|
-
/** specify the fourcc image format code for image sample data.
|
578
|
-
* refer to the documentation for supported formats.
|
579
|
-
* @note this does not convert the data!
|
580
|
-
* (see zbar_image_convert() for that)
|
581
|
-
*/
|
582
|
-
extern void zbar_image_set_format(zbar_image_t *image,
|
583
|
-
unsigned long format);
|
584
|
-
|
585
|
-
/** associate a "sequence" (page/frame) number with this image.
|
586
|
-
* @since 0.6
|
587
|
-
*/
|
588
|
-
extern void zbar_image_set_sequence(zbar_image_t *image,
|
589
|
-
unsigned sequence_num);
|
590
|
-
|
591
|
-
/** specify the pixel size of the image.
|
592
|
-
* @note this also resets the crop rectangle to the full image
|
593
|
-
* (0, 0, width, height)
|
594
|
-
* @note this does not affect the data!
|
595
|
-
*/
|
596
|
-
extern void zbar_image_set_size(zbar_image_t *image,
|
597
|
-
unsigned width,
|
598
|
-
unsigned height);
|
599
|
-
|
600
|
-
/** specify a rectangular region of the image to scan.
|
601
|
-
* the rectangle will be clipped to the image boundaries.
|
602
|
-
* defaults to the full image specified by zbar_image_set_size()
|
603
|
-
*/
|
604
|
-
extern void zbar_image_set_crop(zbar_image_t *image,
|
605
|
-
unsigned x,
|
606
|
-
unsigned y,
|
607
|
-
unsigned width,
|
608
|
-
unsigned height);
|
609
|
-
|
610
|
-
/** specify image sample data. when image data is no longer needed by
|
611
|
-
* the library the specific data cleanup handler will be called
|
612
|
-
* (unless NULL)
|
613
|
-
* @note application image data will not be modified by the library
|
614
|
-
*/
|
615
|
-
extern void zbar_image_set_data(zbar_image_t *image,
|
616
|
-
const void *data,
|
617
|
-
unsigned long data_byte_length,
|
618
|
-
zbar_image_cleanup_handler_t *cleanup_hndlr);
|
619
|
-
|
620
|
-
/** built-in cleanup handler.
|
621
|
-
* passes the image data buffer to free()
|
622
|
-
*/
|
623
|
-
extern void zbar_image_free_data(zbar_image_t *image);
|
624
|
-
|
625
|
-
/** associate user specified data value with an image.
|
626
|
-
* @since 0.5
|
627
|
-
*/
|
628
|
-
extern void zbar_image_set_userdata(zbar_image_t *image,
|
629
|
-
void *userdata);
|
630
|
-
|
631
|
-
/** return user specified data value associated with the image.
|
632
|
-
* @since 0.5
|
633
|
-
*/
|
634
|
-
extern void *zbar_image_get_userdata(const zbar_image_t *image);
|
635
|
-
|
636
|
-
/** dump raw image data to a file for debug.
|
637
|
-
* the data will be prefixed with a 16 byte header consisting of:
|
638
|
-
* - 4 bytes uint = 0x676d697a ("zimg")
|
639
|
-
* - 4 bytes format fourcc
|
640
|
-
* - 2 bytes width
|
641
|
-
* - 2 bytes height
|
642
|
-
* - 4 bytes size of following image data in bytes
|
643
|
-
* this header can be dumped w/eg:
|
644
|
-
* @verbatim
|
645
|
-
od -Ax -tx1z -N16 -w4 [file]
|
646
|
-
@endverbatim
|
647
|
-
* for some formats the image can be displayed/converted using
|
648
|
-
* ImageMagick, eg:
|
649
|
-
* @verbatim
|
650
|
-
display -size 640x480+16 [-depth ?] [-sampling-factor ?x?] \
|
651
|
-
{GRAY,RGB,UYVY,YUV}:[file]
|
652
|
-
@endverbatim
|
653
|
-
*
|
654
|
-
* @param image the image object to dump
|
655
|
-
* @param filebase base filename, appended with ".XXXX.zimg" where
|
656
|
-
* XXXX is the format fourcc
|
657
|
-
* @returns 0 on success or a system error code on failure
|
658
|
-
*/
|
659
|
-
extern int zbar_image_write(const zbar_image_t *image,
|
660
|
-
const char *filebase);
|
661
|
-
|
662
|
-
/** read back an image in the format written by zbar_image_write()
|
663
|
-
* @note TBD
|
664
|
-
*/
|
665
|
-
extern zbar_image_t *zbar_image_read(char *filename);
|
666
|
-
|
667
|
-
/*@}*/
|
668
|
-
|
669
|
-
/*------------------------------------------------------------*/
|
670
|
-
/** @name Processor interface
|
671
|
-
* @anchor c-processor
|
672
|
-
* high-level self-contained image processor.
|
673
|
-
* processes video and images for barcodes, optionally displaying
|
674
|
-
* images to a library owned output window
|
675
|
-
*/
|
676
|
-
/*@{*/
|
677
|
-
|
678
|
-
struct zbar_processor_s;
|
679
|
-
/** opaque standalone processor object. */
|
680
|
-
typedef struct zbar_processor_s zbar_processor_t;
|
681
|
-
|
682
|
-
/** constructor.
|
683
|
-
* if threaded is set and threading is available the processor
|
684
|
-
* will spawn threads where appropriate to avoid blocking and
|
685
|
-
* improve responsiveness
|
686
|
-
*/
|
687
|
-
extern zbar_processor_t *zbar_processor_create(int threaded);
|
688
|
-
|
689
|
-
/** destructor. cleans up all resources associated with the processor
|
690
|
-
*/
|
691
|
-
extern void zbar_processor_destroy(zbar_processor_t *processor);
|
692
|
-
|
693
|
-
/** (re)initialization.
|
694
|
-
* opens a video input device and/or prepares to display output
|
695
|
-
*/
|
696
|
-
extern int zbar_processor_init(zbar_processor_t *processor,
|
697
|
-
const char *video_device,
|
698
|
-
int enable_display);
|
699
|
-
|
700
|
-
/** request a preferred size for the video image from the device.
|
701
|
-
* the request may be adjusted or completely ignored by the driver.
|
702
|
-
* @note must be called before zbar_processor_init()
|
703
|
-
* @since 0.6
|
704
|
-
*/
|
705
|
-
extern int zbar_processor_request_size(zbar_processor_t *processor,
|
706
|
-
unsigned width,
|
707
|
-
unsigned height);
|
708
|
-
|
709
|
-
/** request a preferred video driver interface version for
|
710
|
-
* debug/testing.
|
711
|
-
* @note must be called before zbar_processor_init()
|
712
|
-
* @since 0.6
|
713
|
-
*/
|
714
|
-
extern int zbar_processor_request_interface(zbar_processor_t *processor,
|
715
|
-
int version);
|
716
|
-
|
717
|
-
/** request a preferred video I/O mode for debug/testing. You will
|
718
|
-
* get errors if the driver does not support the specified mode.
|
719
|
-
* @verbatim
|
720
|
-
0 = auto-detect
|
721
|
-
1 = force I/O using read()
|
722
|
-
2 = force memory mapped I/O using mmap()
|
723
|
-
3 = force USERPTR I/O (v4l2 only)
|
724
|
-
@endverbatim
|
725
|
-
* @note must be called before zbar_processor_init()
|
726
|
-
* @since 0.7
|
727
|
-
*/
|
728
|
-
extern int zbar_processor_request_iomode(zbar_processor_t *video,
|
729
|
-
int iomode);
|
730
|
-
|
731
|
-
/** force specific input and output formats for debug/testing.
|
732
|
-
* @note must be called before zbar_processor_init()
|
733
|
-
*/
|
734
|
-
extern int zbar_processor_force_format(zbar_processor_t *processor,
|
735
|
-
unsigned long input_format,
|
736
|
-
unsigned long output_format);
|
737
|
-
|
738
|
-
/** setup result handler callback.
|
739
|
-
* the specified function will be called by the processor whenever
|
740
|
-
* new results are available from the video stream or a static image.
|
741
|
-
* pass a NULL value to disable callbacks.
|
742
|
-
* @param processor the object on which to set the handler.
|
743
|
-
* @param handler the function to call when new results are available.
|
744
|
-
* @param userdata is set as with zbar_processor_set_userdata().
|
745
|
-
* @returns the previously registered handler
|
746
|
-
*/
|
747
|
-
extern zbar_image_data_handler_t*
|
748
|
-
zbar_processor_set_data_handler(zbar_processor_t *processor,
|
749
|
-
zbar_image_data_handler_t *handler,
|
750
|
-
const void *userdata);
|
751
|
-
|
752
|
-
/** associate user specified data value with the processor.
|
753
|
-
* @since 0.6
|
754
|
-
*/
|
755
|
-
extern void zbar_processor_set_userdata(zbar_processor_t *processor,
|
756
|
-
void *userdata);
|
757
|
-
|
758
|
-
/** return user specified data value associated with the processor.
|
759
|
-
* @since 0.6
|
760
|
-
*/
|
761
|
-
extern void *zbar_processor_get_userdata(const zbar_processor_t *processor);
|
762
|
-
|
763
|
-
/** set config for indicated symbology (0 for all) to specified value.
|
764
|
-
* @returns 0 for success, non-0 for failure (config does not apply to
|
765
|
-
* specified symbology, or value out of range)
|
766
|
-
* @see zbar_decoder_set_config()
|
767
|
-
* @since 0.4
|
768
|
-
*/
|
769
|
-
extern int zbar_processor_set_config(zbar_processor_t *processor,
|
770
|
-
zbar_symbol_type_t symbology,
|
771
|
-
zbar_config_t config,
|
772
|
-
int value);
|
773
|
-
|
774
|
-
/** parse configuration string using zbar_parse_config()
|
775
|
-
* and apply to processor using zbar_processor_set_config().
|
776
|
-
* @returns 0 for success, non-0 for failure
|
777
|
-
* @see zbar_parse_config()
|
778
|
-
* @see zbar_processor_set_config()
|
779
|
-
* @since 0.4
|
780
|
-
*/
|
781
|
-
static inline int zbar_processor_parse_config (zbar_processor_t *processor,
|
782
|
-
const char *config_string)
|
783
|
-
{
|
784
|
-
zbar_symbol_type_t sym;
|
785
|
-
zbar_config_t cfg;
|
786
|
-
int val;
|
787
|
-
return(zbar_parse_config(config_string, &sym, &cfg, &val) ||
|
788
|
-
zbar_processor_set_config(processor, sym, cfg, val));
|
789
|
-
}
|
790
|
-
|
791
|
-
/** retrieve the current state of the ouput window.
|
792
|
-
* @returns 1 if the output window is currently displayed, 0 if not.
|
793
|
-
* @returns -1 if an error occurs
|
794
|
-
*/
|
795
|
-
extern int zbar_processor_is_visible(zbar_processor_t *processor);
|
796
|
-
|
797
|
-
/** show or hide the display window owned by the library.
|
798
|
-
* the size will be adjusted to the input size
|
799
|
-
*/
|
800
|
-
extern int zbar_processor_set_visible(zbar_processor_t *processor,
|
801
|
-
int visible);
|
802
|
-
|
803
|
-
/** control the processor in free running video mode.
|
804
|
-
* only works if video input is initialized. if threading is in use,
|
805
|
-
* scanning will occur in the background, otherwise this is only
|
806
|
-
* useful wrapping calls to zbar_processor_user_wait(). if the
|
807
|
-
* library output window is visible, video display will be enabled.
|
808
|
-
*/
|
809
|
-
extern int zbar_processor_set_active(zbar_processor_t *processor,
|
810
|
-
int active);
|
811
|
-
|
812
|
-
/** retrieve decode results for last scanned image/frame.
|
813
|
-
* @returns the symbol set result container or NULL if no results are
|
814
|
-
* available
|
815
|
-
* @note the returned symbol set has its reference count incremented;
|
816
|
-
* ensure that the count is decremented after use
|
817
|
-
* @since 0.10
|
818
|
-
*/
|
819
|
-
extern const zbar_symbol_set_t*
|
820
|
-
zbar_processor_get_results(const zbar_processor_t *processor);
|
821
|
-
|
822
|
-
/** wait for input to the display window from the user
|
823
|
-
* (via mouse or keyboard).
|
824
|
-
* @returns >0 when input is received, 0 if timeout ms expired
|
825
|
-
* with no input or -1 in case of an error
|
826
|
-
*/
|
827
|
-
extern int zbar_processor_user_wait(zbar_processor_t *processor,
|
828
|
-
int timeout);
|
829
|
-
|
830
|
-
/** process from the video stream until a result is available,
|
831
|
-
* or the timeout (in milliseconds) expires.
|
832
|
-
* specify a timeout of -1 to scan indefinitely
|
833
|
-
* (zbar_processor_set_active() may still be used to abort the scan
|
834
|
-
* from another thread).
|
835
|
-
* if the library window is visible, video display will be enabled.
|
836
|
-
* @note that multiple results may still be returned (despite the
|
837
|
-
* name).
|
838
|
-
* @returns >0 if symbols were successfully decoded,
|
839
|
-
* 0 if no symbols were found (ie, the timeout expired)
|
840
|
-
* or -1 if an error occurs
|
841
|
-
*/
|
842
|
-
extern int zbar_process_one(zbar_processor_t *processor,
|
843
|
-
int timeout);
|
844
|
-
|
845
|
-
/** process the provided image for barcodes.
|
846
|
-
* if the library window is visible, the image will be displayed.
|
847
|
-
* @returns >0 if symbols were successfully decoded,
|
848
|
-
* 0 if no symbols were found or -1 if an error occurs
|
849
|
-
*/
|
850
|
-
extern int zbar_process_image(zbar_processor_t *processor,
|
851
|
-
zbar_image_t *image);
|
852
|
-
|
853
|
-
/** display detail for last processor error to stderr.
|
854
|
-
* @returns a non-zero value suitable for passing to exit()
|
855
|
-
*/
|
856
|
-
static inline int
|
857
|
-
zbar_processor_error_spew (const zbar_processor_t *processor,
|
858
|
-
int verbosity)
|
859
|
-
{
|
860
|
-
return(_zbar_error_spew(processor, verbosity));
|
861
|
-
}
|
862
|
-
|
863
|
-
/** retrieve the detail string for the last processor error. */
|
864
|
-
static inline const char*
|
865
|
-
zbar_processor_error_string (const zbar_processor_t *processor,
|
866
|
-
int verbosity)
|
867
|
-
{
|
868
|
-
return(_zbar_error_string(processor, verbosity));
|
869
|
-
}
|
870
|
-
|
871
|
-
/** retrieve the type code for the last processor error. */
|
872
|
-
static inline zbar_error_t
|
873
|
-
zbar_processor_get_error_code (const zbar_processor_t *processor)
|
874
|
-
{
|
875
|
-
return(_zbar_get_error_code(processor));
|
876
|
-
}
|
877
|
-
|
878
|
-
/*@}*/
|
879
|
-
|
880
|
-
/*------------------------------------------------------------*/
|
881
|
-
/** @name Video interface
|
882
|
-
* @anchor c-video
|
883
|
-
* mid-level video source abstraction.
|
884
|
-
* captures images from a video device
|
885
|
-
*/
|
886
|
-
/*@{*/
|
887
|
-
|
888
|
-
struct zbar_video_s;
|
889
|
-
/** opaque video object. */
|
890
|
-
typedef struct zbar_video_s zbar_video_t;
|
891
|
-
|
892
|
-
/** constructor. */
|
893
|
-
extern zbar_video_t *zbar_video_create(void);
|
894
|
-
|
895
|
-
/** destructor. */
|
896
|
-
extern void zbar_video_destroy(zbar_video_t *video);
|
897
|
-
|
898
|
-
/** open and probe a video device.
|
899
|
-
* the device specified by platform specific unique name
|
900
|
-
* (v4l device node path in *nix eg "/dev/video",
|
901
|
-
* DirectShow DevicePath property in windows).
|
902
|
-
* @returns 0 if successful or -1 if an error occurs
|
903
|
-
*/
|
904
|
-
extern int zbar_video_open(zbar_video_t *video,
|
905
|
-
const char *device);
|
906
|
-
|
907
|
-
/** retrieve file descriptor associated with open *nix video device
|
908
|
-
* useful for using select()/poll() to tell when new images are
|
909
|
-
* available (NB v4l2 only!!).
|
910
|
-
* @returns the file descriptor or -1 if the video device is not open
|
911
|
-
* or the driver only supports v4l1
|
912
|
-
*/
|
913
|
-
extern int zbar_video_get_fd(const zbar_video_t *video);
|
914
|
-
|
915
|
-
/** request a preferred size for the video image from the device.
|
916
|
-
* the request may be adjusted or completely ignored by the driver.
|
917
|
-
* @returns 0 if successful or -1 if the video device is already
|
918
|
-
* initialized
|
919
|
-
* @since 0.6
|
920
|
-
*/
|
921
|
-
extern int zbar_video_request_size(zbar_video_t *video,
|
922
|
-
unsigned width,
|
923
|
-
unsigned height);
|
924
|
-
|
925
|
-
/** request a preferred driver interface version for debug/testing.
|
926
|
-
* @note must be called before zbar_video_open()
|
927
|
-
* @since 0.6
|
928
|
-
*/
|
929
|
-
extern int zbar_video_request_interface(zbar_video_t *video,
|
930
|
-
int version);
|
931
|
-
|
932
|
-
/** request a preferred I/O mode for debug/testing. You will get
|
933
|
-
* errors if the driver does not support the specified mode.
|
934
|
-
* @verbatim
|
935
|
-
0 = auto-detect
|
936
|
-
1 = force I/O using read()
|
937
|
-
2 = force memory mapped I/O using mmap()
|
938
|
-
3 = force USERPTR I/O (v4l2 only)
|
939
|
-
@endverbatim
|
940
|
-
* @note must be called before zbar_video_open()
|
941
|
-
* @since 0.7
|
942
|
-
*/
|
943
|
-
extern int zbar_video_request_iomode(zbar_video_t *video,
|
944
|
-
int iomode);
|
945
|
-
|
946
|
-
/** retrieve current output image width.
|
947
|
-
* @returns the width or 0 if the video device is not open
|
948
|
-
*/
|
949
|
-
extern int zbar_video_get_width(const zbar_video_t *video);
|
950
|
-
|
951
|
-
/** retrieve current output image height.
|
952
|
-
* @returns the height or 0 if the video device is not open
|
953
|
-
*/
|
954
|
-
extern int zbar_video_get_height(const zbar_video_t *video);
|
955
|
-
|
956
|
-
/** initialize video using a specific format for debug.
|
957
|
-
* use zbar_negotiate_format() to automatically select and initialize
|
958
|
-
* the best available format
|
959
|
-
*/
|
960
|
-
extern int zbar_video_init(zbar_video_t *video,
|
961
|
-
unsigned long format);
|
962
|
-
|
963
|
-
/** start/stop video capture.
|
964
|
-
* all buffered images are retired when capture is disabled.
|
965
|
-
* @returns 0 if successful or -1 if an error occurs
|
966
|
-
*/
|
967
|
-
extern int zbar_video_enable(zbar_video_t *video,
|
968
|
-
int enable);
|
969
|
-
|
970
|
-
/** retrieve next captured image. blocks until an image is available.
|
971
|
-
* @returns NULL if video is not enabled or an error occurs
|
972
|
-
*/
|
973
|
-
extern zbar_image_t *zbar_video_next_image(zbar_video_t *video);
|
974
|
-
|
975
|
-
/** display detail for last video error to stderr.
|
976
|
-
* @returns a non-zero value suitable for passing to exit()
|
977
|
-
*/
|
978
|
-
static inline int zbar_video_error_spew (const zbar_video_t *video,
|
979
|
-
int verbosity)
|
980
|
-
{
|
981
|
-
return(_zbar_error_spew(video, verbosity));
|
982
|
-
}
|
983
|
-
|
984
|
-
/** retrieve the detail string for the last video error. */
|
985
|
-
static inline const char *zbar_video_error_string (const zbar_video_t *video,
|
986
|
-
int verbosity)
|
987
|
-
{
|
988
|
-
return(_zbar_error_string(video, verbosity));
|
989
|
-
}
|
990
|
-
|
991
|
-
/** retrieve the type code for the last video error. */
|
992
|
-
static inline zbar_error_t
|
993
|
-
zbar_video_get_error_code (const zbar_video_t *video)
|
994
|
-
{
|
995
|
-
return(_zbar_get_error_code(video));
|
996
|
-
}
|
997
|
-
|
998
|
-
/*@}*/
|
999
|
-
|
1000
|
-
/*------------------------------------------------------------*/
|
1001
|
-
/** @name Window interface
|
1002
|
-
* @anchor c-window
|
1003
|
-
* mid-level output window abstraction.
|
1004
|
-
* displays images to user-specified platform specific output window
|
1005
|
-
*/
|
1006
|
-
/*@{*/
|
1007
|
-
|
1008
|
-
struct zbar_window_s;
|
1009
|
-
/** opaque window object. */
|
1010
|
-
typedef struct zbar_window_s zbar_window_t;
|
1011
|
-
|
1012
|
-
/** constructor. */
|
1013
|
-
extern zbar_window_t *zbar_window_create(void);
|
1014
|
-
|
1015
|
-
/** destructor. */
|
1016
|
-
extern void zbar_window_destroy(zbar_window_t *window);
|
1017
|
-
|
1018
|
-
/** associate reader with an existing platform window.
|
1019
|
-
* This can be any "Drawable" for X Windows or a "HWND" for windows.
|
1020
|
-
* input images will be scaled into the output window.
|
1021
|
-
* pass NULL to detach from the resource, further input will be
|
1022
|
-
* ignored
|
1023
|
-
*/
|
1024
|
-
extern int zbar_window_attach(zbar_window_t *window,
|
1025
|
-
void *x11_display_w32_hwnd,
|
1026
|
-
unsigned long x11_drawable);
|
1027
|
-
|
1028
|
-
/** control content level of the reader overlay.
|
1029
|
-
* the overlay displays graphical data for informational or debug
|
1030
|
-
* purposes. higher values increase the level of annotation (possibly
|
1031
|
-
* decreasing performance). @verbatim
|
1032
|
-
0 = disable overlay
|
1033
|
-
1 = outline decoded symbols (default)
|
1034
|
-
2 = also track and display input frame rate
|
1035
|
-
@endverbatim
|
1036
|
-
*/
|
1037
|
-
extern void zbar_window_set_overlay(zbar_window_t *window,
|
1038
|
-
int level);
|
1039
|
-
|
1040
|
-
/** retrieve current content level of reader overlay.
|
1041
|
-
* @see zbar_window_set_overlay()
|
1042
|
-
* @since 0.10
|
1043
|
-
*/
|
1044
|
-
extern int zbar_window_get_overlay(const zbar_window_t *window);
|
1045
|
-
|
1046
|
-
/** draw a new image into the output window. */
|
1047
|
-
extern int zbar_window_draw(zbar_window_t *window,
|
1048
|
-
zbar_image_t *image);
|
1049
|
-
|
1050
|
-
/** redraw the last image (exposure handler). */
|
1051
|
-
extern int zbar_window_redraw(zbar_window_t *window);
|
1052
|
-
|
1053
|
-
/** resize the image window (reconfigure handler).
|
1054
|
-
* this does @em not update the contents of the window
|
1055
|
-
* @since 0.3, changed in 0.4 to not redraw window
|
1056
|
-
*/
|
1057
|
-
extern int zbar_window_resize(zbar_window_t *window,
|
1058
|
-
unsigned width,
|
1059
|
-
unsigned height);
|
1060
|
-
|
1061
|
-
/** display detail for last window error to stderr.
|
1062
|
-
* @returns a non-zero value suitable for passing to exit()
|
1063
|
-
*/
|
1064
|
-
static inline int zbar_window_error_spew (const zbar_window_t *window,
|
1065
|
-
int verbosity)
|
1066
|
-
{
|
1067
|
-
return(_zbar_error_spew(window, verbosity));
|
1068
|
-
}
|
1069
|
-
|
1070
|
-
/** retrieve the detail string for the last window error. */
|
1071
|
-
static inline const char*
|
1072
|
-
zbar_window_error_string (const zbar_window_t *window,
|
1073
|
-
int verbosity)
|
1074
|
-
{
|
1075
|
-
return(_zbar_error_string(window, verbosity));
|
1076
|
-
}
|
1077
|
-
|
1078
|
-
/** retrieve the type code for the last window error. */
|
1079
|
-
static inline zbar_error_t
|
1080
|
-
zbar_window_get_error_code (const zbar_window_t *window)
|
1081
|
-
{
|
1082
|
-
return(_zbar_get_error_code(window));
|
1083
|
-
}
|
1084
|
-
|
1085
|
-
|
1086
|
-
/** select a compatible format between video input and output window.
|
1087
|
-
* the selection algorithm attempts to use a format shared by
|
1088
|
-
* video input and window output which is also most useful for
|
1089
|
-
* barcode scanning. if a format conversion is necessary, it will
|
1090
|
-
* heuristically attempt to minimize the cost of the conversion
|
1091
|
-
*/
|
1092
|
-
extern int zbar_negotiate_format(zbar_video_t *video,
|
1093
|
-
zbar_window_t *window);
|
1094
|
-
|
1095
|
-
/*@}*/
|
1096
|
-
|
1097
|
-
/*------------------------------------------------------------*/
|
1098
|
-
/** @name Image Scanner interface
|
1099
|
-
* @anchor c-imagescanner
|
1100
|
-
* mid-level image scanner interface.
|
1101
|
-
* reads barcodes from 2-D images
|
1102
|
-
*/
|
1103
|
-
/*@{*/
|
1104
|
-
|
1105
|
-
struct zbar_image_scanner_s;
|
1106
|
-
/** opaque image scanner object. */
|
1107
|
-
typedef struct zbar_image_scanner_s zbar_image_scanner_t;
|
1108
|
-
|
1109
|
-
/** constructor. */
|
1110
|
-
extern zbar_image_scanner_t *zbar_image_scanner_create(void);
|
1111
|
-
|
1112
|
-
/** destructor. */
|
1113
|
-
extern void zbar_image_scanner_destroy(zbar_image_scanner_t *scanner);
|
1114
|
-
|
1115
|
-
/** setup result handler callback.
|
1116
|
-
* the specified function will be called by the scanner whenever
|
1117
|
-
* new results are available from a decoded image.
|
1118
|
-
* pass a NULL value to disable callbacks.
|
1119
|
-
* @returns the previously registered handler
|
1120
|
-
*/
|
1121
|
-
extern zbar_image_data_handler_t*
|
1122
|
-
zbar_image_scanner_set_data_handler(zbar_image_scanner_t *scanner,
|
1123
|
-
zbar_image_data_handler_t *handler,
|
1124
|
-
const void *userdata);
|
1125
|
-
|
1126
|
-
|
1127
|
-
/** set config for indicated symbology (0 for all) to specified value.
|
1128
|
-
* @returns 0 for success, non-0 for failure (config does not apply to
|
1129
|
-
* specified symbology, or value out of range)
|
1130
|
-
* @see zbar_decoder_set_config()
|
1131
|
-
* @since 0.4
|
1132
|
-
*/
|
1133
|
-
extern int zbar_image_scanner_set_config(zbar_image_scanner_t *scanner,
|
1134
|
-
zbar_symbol_type_t symbology,
|
1135
|
-
zbar_config_t config,
|
1136
|
-
int value);
|
1137
|
-
|
1138
|
-
/** parse configuration string using zbar_parse_config()
|
1139
|
-
* and apply to image scanner using zbar_image_scanner_set_config().
|
1140
|
-
* @returns 0 for success, non-0 for failure
|
1141
|
-
* @see zbar_parse_config()
|
1142
|
-
* @see zbar_image_scanner_set_config()
|
1143
|
-
* @since 0.4
|
1144
|
-
*/
|
1145
|
-
static inline int
|
1146
|
-
zbar_image_scanner_parse_config (zbar_image_scanner_t *scanner,
|
1147
|
-
const char *config_string)
|
1148
|
-
{
|
1149
|
-
zbar_symbol_type_t sym;
|
1150
|
-
zbar_config_t cfg;
|
1151
|
-
int val;
|
1152
|
-
return(zbar_parse_config(config_string, &sym, &cfg, &val) ||
|
1153
|
-
zbar_image_scanner_set_config(scanner, sym, cfg, val));
|
1154
|
-
}
|
1155
|
-
|
1156
|
-
/** enable or disable the inter-image result cache (default disabled).
|
1157
|
-
* mostly useful for scanning video frames, the cache filters
|
1158
|
-
* duplicate results from consecutive images, while adding some
|
1159
|
-
* consistency checking and hysteresis to the results.
|
1160
|
-
* this interface also clears the cache
|
1161
|
-
*/
|
1162
|
-
extern void zbar_image_scanner_enable_cache(zbar_image_scanner_t *scanner,
|
1163
|
-
int enable);
|
1164
|
-
|
1165
|
-
/** remove any previously decoded results from the image scanner and the
|
1166
|
-
* specified image. somewhat more efficient version of
|
1167
|
-
* zbar_image_set_symbols(image, NULL) which may retain memory for
|
1168
|
-
* subsequent decodes
|
1169
|
-
* @since 0.10
|
1170
|
-
*/
|
1171
|
-
extern void zbar_image_scanner_recycle_image(zbar_image_scanner_t *scanner,
|
1172
|
-
zbar_image_t *image);
|
1173
|
-
|
1174
|
-
/** retrieve decode results for last scanned image.
|
1175
|
-
* @returns the symbol set result container or NULL if no results are
|
1176
|
-
* available
|
1177
|
-
* @note the symbol set does not have its reference count adjusted;
|
1178
|
-
* ensure that the count is incremented if the results may be kept
|
1179
|
-
* after the next image is scanned
|
1180
|
-
* @since 0.10
|
1181
|
-
*/
|
1182
|
-
extern const zbar_symbol_set_t*
|
1183
|
-
zbar_image_scanner_get_results(const zbar_image_scanner_t *scanner);
|
1184
|
-
|
1185
|
-
/** scan for symbols in provided image. The image format must be
|
1186
|
-
* "Y800" or "GRAY".
|
1187
|
-
* @returns >0 if symbols were successfully decoded from the image,
|
1188
|
-
* 0 if no symbols were found or -1 if an error occurs
|
1189
|
-
* @see zbar_image_convert()
|
1190
|
-
* @since 0.9 - changed to only accept grayscale images
|
1191
|
-
*/
|
1192
|
-
extern int zbar_scan_image(zbar_image_scanner_t *scanner,
|
1193
|
-
zbar_image_t *image);
|
1194
|
-
|
1195
|
-
/*@}*/
|
1196
|
-
|
1197
|
-
/*------------------------------------------------------------*/
|
1198
|
-
/** @name Decoder interface
|
1199
|
-
* @anchor c-decoder
|
1200
|
-
* low-level bar width stream decoder interface.
|
1201
|
-
* identifies symbols and extracts encoded data
|
1202
|
-
*/
|
1203
|
-
/*@{*/
|
1204
|
-
|
1205
|
-
struct zbar_decoder_s;
|
1206
|
-
/** opaque decoder object. */
|
1207
|
-
typedef struct zbar_decoder_s zbar_decoder_t;
|
1208
|
-
|
1209
|
-
/** decoder data handler callback function.
|
1210
|
-
* called by decoder when new data has just been decoded
|
1211
|
-
*/
|
1212
|
-
typedef void (zbar_decoder_handler_t)(zbar_decoder_t *decoder);
|
1213
|
-
|
1214
|
-
/** constructor. */
|
1215
|
-
extern zbar_decoder_t *zbar_decoder_create(void);
|
1216
|
-
|
1217
|
-
/** destructor. */
|
1218
|
-
extern void zbar_decoder_destroy(zbar_decoder_t *decoder);
|
1219
|
-
|
1220
|
-
/** set config for indicated symbology (0 for all) to specified value.
|
1221
|
-
* @returns 0 for success, non-0 for failure (config does not apply to
|
1222
|
-
* specified symbology, or value out of range)
|
1223
|
-
* @since 0.4
|
1224
|
-
*/
|
1225
|
-
extern int zbar_decoder_set_config(zbar_decoder_t *decoder,
|
1226
|
-
zbar_symbol_type_t symbology,
|
1227
|
-
zbar_config_t config,
|
1228
|
-
int value);
|
1229
|
-
|
1230
|
-
/** parse configuration string using zbar_parse_config()
|
1231
|
-
* and apply to decoder using zbar_decoder_set_config().
|
1232
|
-
* @returns 0 for success, non-0 for failure
|
1233
|
-
* @see zbar_parse_config()
|
1234
|
-
* @see zbar_decoder_set_config()
|
1235
|
-
* @since 0.4
|
1236
|
-
*/
|
1237
|
-
static inline int zbar_decoder_parse_config (zbar_decoder_t *decoder,
|
1238
|
-
const char *config_string)
|
1239
|
-
{
|
1240
|
-
zbar_symbol_type_t sym;
|
1241
|
-
zbar_config_t cfg;
|
1242
|
-
int val;
|
1243
|
-
return(zbar_parse_config(config_string, &sym, &cfg, &val) ||
|
1244
|
-
zbar_decoder_set_config(decoder, sym, cfg, val));
|
1245
|
-
}
|
1246
|
-
|
1247
|
-
/** clear all decoder state.
|
1248
|
-
* any partial symbols are flushed
|
1249
|
-
*/
|
1250
|
-
extern void zbar_decoder_reset(zbar_decoder_t *decoder);
|
1251
|
-
|
1252
|
-
/** mark start of a new scan pass.
|
1253
|
-
* clears any intra-symbol state and resets color to ::ZBAR_SPACE.
|
1254
|
-
* any partially decoded symbol state is retained
|
1255
|
-
*/
|
1256
|
-
extern void zbar_decoder_new_scan(zbar_decoder_t *decoder);
|
1257
|
-
|
1258
|
-
/** process next bar/space width from input stream.
|
1259
|
-
* the width is in arbitrary relative units. first value of a scan
|
1260
|
-
* is ::ZBAR_SPACE width, alternating from there.
|
1261
|
-
* @returns appropriate symbol type if width completes
|
1262
|
-
* decode of a symbol (data is available for retrieval)
|
1263
|
-
* @returns ::ZBAR_PARTIAL as a hint if part of a symbol was decoded
|
1264
|
-
* @returns ::ZBAR_NONE (0) if no new symbol data is available
|
1265
|
-
*/
|
1266
|
-
extern zbar_symbol_type_t zbar_decode_width(zbar_decoder_t *decoder,
|
1267
|
-
unsigned width);
|
1268
|
-
|
1269
|
-
/** retrieve color of @em next element passed to
|
1270
|
-
* zbar_decode_width(). */
|
1271
|
-
extern zbar_color_t zbar_decoder_get_color(const zbar_decoder_t *decoder);
|
1272
|
-
|
1273
|
-
/** retrieve last decoded data.
|
1274
|
-
* @returns the data string or NULL if no new data available.
|
1275
|
-
* the returned data buffer is owned by library, contents are only
|
1276
|
-
* valid between non-0 return from zbar_decode_width and next library
|
1277
|
-
* call
|
1278
|
-
*/
|
1279
|
-
extern const char *zbar_decoder_get_data(const zbar_decoder_t *decoder);
|
1280
|
-
|
1281
|
-
/** retrieve length of binary data.
|
1282
|
-
* @returns the length of the decoded data or 0 if no new data
|
1283
|
-
* available.
|
1284
|
-
*/
|
1285
|
-
extern unsigned int
|
1286
|
-
zbar_decoder_get_data_length(const zbar_decoder_t *decoder);
|
1287
|
-
|
1288
|
-
/** retrieve last decoded symbol type.
|
1289
|
-
* @returns the type or ::ZBAR_NONE if no new data available
|
1290
|
-
*/
|
1291
|
-
extern zbar_symbol_type_t
|
1292
|
-
zbar_decoder_get_type(const zbar_decoder_t *decoder);
|
1293
|
-
|
1294
|
-
/** retrieve last decode direction.
|
1295
|
-
* @returns 1 for forward and -1 for reverse
|
1296
|
-
* @returns 0 if the decode direction is unknown or does not apply
|
1297
|
-
* @since 0.11
|
1298
|
-
*/
|
1299
|
-
extern int zbar_decoder_get_direction(const zbar_decoder_t *decoder);
|
1300
|
-
|
1301
|
-
/** setup data handler callback.
|
1302
|
-
* the registered function will be called by the decoder
|
1303
|
-
* just before zbar_decode_width() returns a non-zero value.
|
1304
|
-
* pass a NULL value to disable callbacks.
|
1305
|
-
* @returns the previously registered handler
|
1306
|
-
*/
|
1307
|
-
extern zbar_decoder_handler_t*
|
1308
|
-
zbar_decoder_set_handler(zbar_decoder_t *decoder,
|
1309
|
-
zbar_decoder_handler_t *handler);
|
1310
|
-
|
1311
|
-
/** associate user specified data value with the decoder. */
|
1312
|
-
extern void zbar_decoder_set_userdata(zbar_decoder_t *decoder,
|
1313
|
-
void *userdata);
|
1314
|
-
|
1315
|
-
/** return user specified data value associated with the decoder. */
|
1316
|
-
extern void *zbar_decoder_get_userdata(const zbar_decoder_t *decoder);
|
1317
|
-
|
1318
|
-
/*@}*/
|
1319
|
-
|
1320
|
-
/*------------------------------------------------------------*/
|
1321
|
-
/** @name Scanner interface
|
1322
|
-
* @anchor c-scanner
|
1323
|
-
* low-level linear intensity sample stream scanner interface.
|
1324
|
-
* identifies "bar" edges and measures width between them.
|
1325
|
-
* optionally passes to bar width decoder
|
1326
|
-
*/
|
1327
|
-
/*@{*/
|
1328
|
-
|
1329
|
-
struct zbar_scanner_s;
|
1330
|
-
/** opaque scanner object. */
|
1331
|
-
typedef struct zbar_scanner_s zbar_scanner_t;
|
1332
|
-
|
1333
|
-
/** constructor.
|
1334
|
-
* if decoder is non-NULL it will be attached to scanner
|
1335
|
-
* and called automatically at each new edge
|
1336
|
-
* current color is initialized to ::ZBAR_SPACE
|
1337
|
-
* (so an initial BAR->SPACE transition may be discarded)
|
1338
|
-
*/
|
1339
|
-
extern zbar_scanner_t *zbar_scanner_create(zbar_decoder_t *decoder);
|
1340
|
-
|
1341
|
-
/** destructor. */
|
1342
|
-
extern void zbar_scanner_destroy(zbar_scanner_t *scanner);
|
1343
|
-
|
1344
|
-
/** clear all scanner state.
|
1345
|
-
* also resets an associated decoder
|
1346
|
-
*/
|
1347
|
-
extern zbar_symbol_type_t zbar_scanner_reset(zbar_scanner_t *scanner);
|
1348
|
-
|
1349
|
-
/** mark start of a new scan pass. resets color to ::ZBAR_SPACE.
|
1350
|
-
* also updates an associated decoder.
|
1351
|
-
* @returns any decode results flushed from the pipeline
|
1352
|
-
* @note when not using callback handlers, the return value should
|
1353
|
-
* be checked the same as zbar_scan_y()
|
1354
|
-
* @note call zbar_scanner_flush() at least twice before calling this
|
1355
|
-
* method to ensure no decode results are lost
|
1356
|
-
*/
|
1357
|
-
extern zbar_symbol_type_t zbar_scanner_new_scan(zbar_scanner_t *scanner);
|
1358
|
-
|
1359
|
-
/** flush scanner processing pipeline.
|
1360
|
-
* forces current scanner position to be a scan boundary.
|
1361
|
-
* call multiple times (max 3) to completely flush decoder.
|
1362
|
-
* @returns any decode/scan results flushed from the pipeline
|
1363
|
-
* @note when not using callback handlers, the return value should
|
1364
|
-
* be checked the same as zbar_scan_y()
|
1365
|
-
* @since 0.9
|
1366
|
-
*/
|
1367
|
-
extern zbar_symbol_type_t zbar_scanner_flush(zbar_scanner_t *scanner);
|
1368
|
-
|
1369
|
-
/** process next sample intensity value.
|
1370
|
-
* intensity (y) is in arbitrary relative units.
|
1371
|
-
* @returns result of zbar_decode_width() if a decoder is attached,
|
1372
|
-
* otherwise @returns (::ZBAR_PARTIAL) when new edge is detected
|
1373
|
-
* or 0 (::ZBAR_NONE) if no new edge is detected
|
1374
|
-
*/
|
1375
|
-
extern zbar_symbol_type_t zbar_scan_y(zbar_scanner_t *scanner,
|
1376
|
-
int y);
|
1377
|
-
|
1378
|
-
/** process next sample from RGB (or BGR) triple. */
|
1379
|
-
static inline zbar_symbol_type_t zbar_scan_rgb24 (zbar_scanner_t *scanner,
|
1380
|
-
unsigned char *rgb)
|
1381
|
-
{
|
1382
|
-
return(zbar_scan_y(scanner, rgb[0] + rgb[1] + rgb[2]));
|
1383
|
-
}
|
1384
|
-
|
1385
|
-
/** retrieve last scanned width. */
|
1386
|
-
extern unsigned zbar_scanner_get_width(const zbar_scanner_t *scanner);
|
1387
|
-
|
1388
|
-
/** retrieve sample position of last edge.
|
1389
|
-
* @since 0.10
|
1390
|
-
*/
|
1391
|
-
extern unsigned zbar_scanner_get_edge(const zbar_scanner_t *scn,
|
1392
|
-
unsigned offset,
|
1393
|
-
int prec);
|
1394
|
-
|
1395
|
-
/** retrieve last scanned color. */
|
1396
|
-
extern zbar_color_t zbar_scanner_get_color(const zbar_scanner_t *scanner);
|
1397
|
-
|
1398
|
-
/*@}*/
|
1399
|
-
|
1400
|
-
#ifdef __cplusplus
|
1401
|
-
}
|
1402
|
-
}
|
1403
|
-
|
1404
|
-
//# include "zbar/Exception.h"
|
1405
|
-
//# include "zbar/Decoder.h"
|
1406
|
-
//# include "zbar/Scanner.h"
|
1407
|
-
//# include "zbar/Symbol.h"
|
1408
|
-
//# include "zbar/Image.h"
|
1409
|
-
//# include "zbar/ImageScanner.h"
|
1410
|
-
//# include "zbar/Video.h"
|
1411
|
-
//# include "zbar/Window.h"
|
1412
|
-
//# include "zbar/Processor.h"
|
1413
|
-
#endif
|
1414
|
-
|
1415
|
-
#endif
|