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
@@ -107,9 +107,9 @@ extern "C" {
|
|
107
107
|
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
|
108
108
|
** [sqlite_version()] and [sqlite_source_id()].
|
109
109
|
*/
|
110
|
-
#define SQLITE_VERSION "3.7.
|
111
|
-
#define SQLITE_VERSION_NUMBER
|
112
|
-
#define SQLITE_SOURCE_ID "2011-
|
110
|
+
#define SQLITE_VERSION "3.7.7.1"
|
111
|
+
#define SQLITE_VERSION_NUMBER 3007007
|
112
|
+
#define SQLITE_SOURCE_ID "2011-06-28 17:39:05 af0d91adf497f5f36ec3813f04235a6e195a605f"
|
113
113
|
|
114
114
|
/*
|
115
115
|
** CAPI3REF: Run-Time Library Version Numbers
|
@@ -310,7 +310,7 @@ typedef int (*sqlite3_callback)(void*,int,char**, char**);
|
|
310
310
|
** argument. ^If the callback function of the 3rd argument to
|
311
311
|
** sqlite3_exec() is not NULL, then it is invoked for each result row
|
312
312
|
** coming out of the evaluated SQL statements. ^The 4th argument to
|
313
|
-
**
|
313
|
+
** sqlite3_exec() is relayed through to the 1st argument of each
|
314
314
|
** callback invocation. ^If the callback pointer to sqlite3_exec()
|
315
315
|
** is NULL, then no callback is ever invoked and result rows are
|
316
316
|
** ignored.
|
@@ -375,7 +375,8 @@ SQLITE_API int sqlite3_exec(
|
|
375
375
|
**
|
376
376
|
** New error codes may be added in future versions of SQLite.
|
377
377
|
**
|
378
|
-
** See also: [SQLITE_IOERR_READ | extended result codes]
|
378
|
+
** See also: [SQLITE_IOERR_READ | extended result codes],
|
379
|
+
** [sqlite3_vtab_on_conflict()] [SQLITE_ROLLBACK | result codes].
|
379
380
|
*/
|
380
381
|
#define SQLITE_OK 0 /* Successful result */
|
381
382
|
/* beginning-of-error-codes */
|
@@ -452,17 +453,21 @@ SQLITE_API int sqlite3_exec(
|
|
452
453
|
#define SQLITE_IOERR_SHMOPEN (SQLITE_IOERR | (18<<8))
|
453
454
|
#define SQLITE_IOERR_SHMSIZE (SQLITE_IOERR | (19<<8))
|
454
455
|
#define SQLITE_IOERR_SHMLOCK (SQLITE_IOERR | (20<<8))
|
456
|
+
#define SQLITE_IOERR_SHMMAP (SQLITE_IOERR | (21<<8))
|
457
|
+
#define SQLITE_IOERR_SEEK (SQLITE_IOERR | (22<<8))
|
455
458
|
#define SQLITE_LOCKED_SHAREDCACHE (SQLITE_LOCKED | (1<<8))
|
456
459
|
#define SQLITE_BUSY_RECOVERY (SQLITE_BUSY | (1<<8))
|
457
460
|
#define SQLITE_CANTOPEN_NOTEMPDIR (SQLITE_CANTOPEN | (1<<8))
|
461
|
+
#define SQLITE_CORRUPT_VTAB (SQLITE_CORRUPT | (1<<8))
|
462
|
+
#define SQLITE_READONLY_RECOVERY (SQLITE_READONLY | (1<<8))
|
463
|
+
#define SQLITE_READONLY_CANTLOCK (SQLITE_READONLY | (2<<8))
|
458
464
|
|
459
465
|
/*
|
460
466
|
** CAPI3REF: Flags For File Open Operations
|
461
467
|
**
|
462
468
|
** These bit values are intended for use in the
|
463
469
|
** 3rd parameter to the [sqlite3_open_v2()] interface and
|
464
|
-
** in the 4th parameter to the xOpen method
|
465
|
-
** [sqlite3_vfs] object.
|
470
|
+
** in the 4th parameter to the [sqlite3_vfs.xOpen] method.
|
466
471
|
*/
|
467
472
|
#define SQLITE_OPEN_READONLY 0x00000001 /* Ok for sqlite3_open_v2() */
|
468
473
|
#define SQLITE_OPEN_READWRITE 0x00000002 /* Ok for sqlite3_open_v2() */
|
@@ -470,6 +475,7 @@ SQLITE_API int sqlite3_exec(
|
|
470
475
|
#define SQLITE_OPEN_DELETEONCLOSE 0x00000008 /* VFS only */
|
471
476
|
#define SQLITE_OPEN_EXCLUSIVE 0x00000010 /* VFS only */
|
472
477
|
#define SQLITE_OPEN_AUTOPROXY 0x00000020 /* VFS only */
|
478
|
+
#define SQLITE_OPEN_URI 0x00000040 /* Ok for sqlite3_open_v2() */
|
473
479
|
#define SQLITE_OPEN_MAIN_DB 0x00000100 /* VFS only */
|
474
480
|
#define SQLITE_OPEN_TEMP_DB 0x00000200 /* VFS only */
|
475
481
|
#define SQLITE_OPEN_TRANSIENT_DB 0x00000400 /* VFS only */
|
@@ -483,6 +489,8 @@ SQLITE_API int sqlite3_exec(
|
|
483
489
|
#define SQLITE_OPEN_PRIVATECACHE 0x00040000 /* Ok for sqlite3_open_v2() */
|
484
490
|
#define SQLITE_OPEN_WAL 0x00080000 /* VFS only */
|
485
491
|
|
492
|
+
/* Reserved: 0x00F00000 */
|
493
|
+
|
486
494
|
/*
|
487
495
|
** CAPI3REF: Device Characteristics
|
488
496
|
**
|
@@ -578,17 +586,18 @@ struct sqlite3_file {
|
|
578
586
|
/*
|
579
587
|
** CAPI3REF: OS Interface File Virtual Methods Object
|
580
588
|
**
|
581
|
-
** Every file opened by the [sqlite3_vfs]
|
589
|
+
** Every file opened by the [sqlite3_vfs.xOpen] method populates an
|
582
590
|
** [sqlite3_file] object (or, more commonly, a subclass of the
|
583
591
|
** [sqlite3_file] object) with a pointer to an instance of this object.
|
584
592
|
** This object defines the methods used to perform various operations
|
585
593
|
** against the open file represented by the [sqlite3_file] object.
|
586
594
|
**
|
587
|
-
** If the xOpen method sets the sqlite3_file.pMethods element
|
595
|
+
** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element
|
588
596
|
** to a non-NULL pointer, then the sqlite3_io_methods.xClose method
|
589
|
-
** may be invoked even if the xOpen reported that it failed. The
|
590
|
-
** only way to prevent a call to xClose following a failed xOpen
|
591
|
-
** is for the xOpen to set the sqlite3_file.pMethods element
|
597
|
+
** may be invoked even if the [sqlite3_vfs.xOpen] reported that it failed. The
|
598
|
+
** only way to prevent a call to xClose following a failed [sqlite3_vfs.xOpen]
|
599
|
+
** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element
|
600
|
+
** to NULL.
|
592
601
|
**
|
593
602
|
** The flags argument to xSync may be one of [SQLITE_SYNC_NORMAL] or
|
594
603
|
** [SQLITE_SYNC_FULL]. The first choice is the normal fsync().
|
@@ -730,7 +739,7 @@ struct sqlite3_io_methods {
|
|
730
739
|
** when [PRAGMA synchronous | PRAGMA synchronous=OFF] is set, but most
|
731
740
|
** VFSes do not need this signal and should silently ignore this opcode.
|
732
741
|
** Applications should not call [sqlite3_file_control()] with this
|
733
|
-
** opcode as doing so may disrupt the operation of the
|
742
|
+
** opcode as doing so may disrupt the operation of the specialized VFSes
|
734
743
|
** that do require it.
|
735
744
|
*/
|
736
745
|
#define SQLITE_FCNTL_LOCKSTATE 1
|
@@ -760,7 +769,8 @@ typedef struct sqlite3_mutex sqlite3_mutex;
|
|
760
769
|
**
|
761
770
|
** An instance of the sqlite3_vfs object defines the interface between
|
762
771
|
** the SQLite core and the underlying operating system. The "vfs"
|
763
|
-
** in the name of the object stands for "virtual file system".
|
772
|
+
** in the name of the object stands for "virtual file system". See
|
773
|
+
** the [VFS | VFS documentation] for further information.
|
764
774
|
**
|
765
775
|
** The value of the iVersion field is initially 1 but may be larger in
|
766
776
|
** future versions of SQLite. Additional fields may be appended to this
|
@@ -789,6 +799,7 @@ typedef struct sqlite3_mutex sqlite3_mutex;
|
|
789
799
|
** The zName field holds the name of the VFS module. The name must
|
790
800
|
** be unique across all VFS modules.
|
791
801
|
**
|
802
|
+
** [[sqlite3_vfs.xOpen]]
|
792
803
|
** ^SQLite guarantees that the zFilename parameter to xOpen
|
793
804
|
** is either a NULL pointer or string obtained
|
794
805
|
** from xFullPathname() with an optional suffix added.
|
@@ -866,6 +877,7 @@ typedef struct sqlite3_mutex sqlite3_mutex;
|
|
866
877
|
** element will be valid after xOpen returns regardless of the success
|
867
878
|
** or failure of the xOpen call.
|
868
879
|
**
|
880
|
+
** [[sqlite3_vfs.xAccess]]
|
869
881
|
** ^The flags argument to xAccess() may be [SQLITE_ACCESS_EXISTS]
|
870
882
|
** to test for the existence of a file, or [SQLITE_ACCESS_READWRITE] to
|
871
883
|
** test whether a file is readable and writable, or [SQLITE_ACCESS_READ]
|
@@ -890,16 +902,29 @@ typedef struct sqlite3_mutex sqlite3_mutex;
|
|
890
902
|
** method returns a Julian Day Number for the current date and time as
|
891
903
|
** a floating point value.
|
892
904
|
** ^The xCurrentTimeInt64() method returns, as an integer, the Julian
|
893
|
-
** Day Number
|
905
|
+
** Day Number multiplied by 86400000 (the number of milliseconds in
|
894
906
|
** a 24-hour day).
|
895
907
|
** ^SQLite will use the xCurrentTimeInt64() method to get the current
|
896
908
|
** date and time if that method is available (if iVersion is 2 or
|
897
909
|
** greater and the function pointer is not NULL) and will fall back
|
898
910
|
** to xCurrentTime() if xCurrentTimeInt64() is unavailable.
|
911
|
+
**
|
912
|
+
** ^The xSetSystemCall(), xGetSystemCall(), and xNestSystemCall() interfaces
|
913
|
+
** are not used by the SQLite core. These optional interfaces are provided
|
914
|
+
** by some VFSes to facilitate testing of the VFS code. By overriding
|
915
|
+
** system calls with functions under its control, a test program can
|
916
|
+
** simulate faults and error conditions that would otherwise be difficult
|
917
|
+
** or impossible to induce. The set of system calls that can be overridden
|
918
|
+
** varies from one VFS to another, and from one version of the same VFS to the
|
919
|
+
** next. Applications that use these interfaces must be prepared for any
|
920
|
+
** or all of these interfaces to be NULL or for their behavior to change
|
921
|
+
** from one release to the next. Applications must not attempt to access
|
922
|
+
** any of these methods if the iVersion of the VFS is less than 3.
|
899
923
|
*/
|
900
924
|
typedef struct sqlite3_vfs sqlite3_vfs;
|
925
|
+
typedef void (*sqlite3_syscall_ptr)(void);
|
901
926
|
struct sqlite3_vfs {
|
902
|
-
int iVersion; /* Structure version number (currently
|
927
|
+
int iVersion; /* Structure version number (currently 3) */
|
903
928
|
int szOsFile; /* Size of subclassed sqlite3_file */
|
904
929
|
int mxPathname; /* Maximum file pathname length */
|
905
930
|
sqlite3_vfs *pNext; /* Next registered VFS */
|
@@ -925,6 +950,13 @@ struct sqlite3_vfs {
|
|
925
950
|
int (*xCurrentTimeInt64)(sqlite3_vfs*, sqlite3_int64*);
|
926
951
|
/*
|
927
952
|
** The methods above are in versions 1 and 2 of the sqlite_vfs object.
|
953
|
+
** Those below are for version 3 and greater.
|
954
|
+
*/
|
955
|
+
int (*xSetSystemCall)(sqlite3_vfs*, const char *zName, sqlite3_syscall_ptr);
|
956
|
+
sqlite3_syscall_ptr (*xGetSystemCall)(sqlite3_vfs*, const char *zName);
|
957
|
+
const char *(*xNextSystemCall)(sqlite3_vfs*, const char *zName);
|
958
|
+
/*
|
959
|
+
** The methods above are in versions 1 through 3 of the sqlite_vfs object.
|
928
960
|
** New fields may be appended in figure versions. The iVersion
|
929
961
|
** value will increment whenever this happens.
|
930
962
|
*/
|
@@ -1092,9 +1124,9 @@ SQLITE_API int sqlite3_os_end(void);
|
|
1092
1124
|
** implementation of an application-defined [sqlite3_os_init()].
|
1093
1125
|
**
|
1094
1126
|
** The first argument to sqlite3_config() is an integer
|
1095
|
-
** [
|
1127
|
+
** [configuration option] that determines
|
1096
1128
|
** what property of SQLite is to be configured. Subsequent arguments
|
1097
|
-
** vary depending on the [
|
1129
|
+
** vary depending on the [configuration option]
|
1098
1130
|
** in the first argument.
|
1099
1131
|
**
|
1100
1132
|
** ^When a configuration option is set, sqlite3_config() returns [SQLITE_OK].
|
@@ -1109,17 +1141,12 @@ SQLITE_API int sqlite3_config(int, ...);
|
|
1109
1141
|
** The sqlite3_db_config() interface is used to make configuration
|
1110
1142
|
** changes to a [database connection]. The interface is similar to
|
1111
1143
|
** [sqlite3_config()] except that the changes apply to a single
|
1112
|
-
** [database connection] (specified in the first argument).
|
1113
|
-
** sqlite3_db_config() interface should only be used immediately after
|
1114
|
-
** the database connection is created using [sqlite3_open()],
|
1115
|
-
** [sqlite3_open16()], or [sqlite3_open_v2()].
|
1144
|
+
** [database connection] (specified in the first argument).
|
1116
1145
|
**
|
1117
1146
|
** The second argument to sqlite3_db_config(D,V,...) is the
|
1118
|
-
** configuration verb - an integer code
|
1119
|
-
** aspect of the [database connection] is being configured.
|
1120
|
-
**
|
1121
|
-
** New verbs are likely to be added in future releases of SQLite.
|
1122
|
-
** Additional arguments depend on the verb.
|
1147
|
+
** [SQLITE_DBCONFIG_LOOKASIDE | configuration verb] - an integer code
|
1148
|
+
** that indicates what aspect of the [database connection] is being configured.
|
1149
|
+
** Subsequent arguments vary depending on the configuration verb.
|
1123
1150
|
**
|
1124
1151
|
** ^Calls to sqlite3_db_config() return SQLITE_OK if and only if
|
1125
1152
|
** the call is considered successful.
|
@@ -1209,6 +1236,7 @@ struct sqlite3_mem_methods {
|
|
1209
1236
|
|
1210
1237
|
/*
|
1211
1238
|
** CAPI3REF: Configuration Options
|
1239
|
+
** KEYWORDS: {configuration option}
|
1212
1240
|
**
|
1213
1241
|
** These constants are the available integer configuration options that
|
1214
1242
|
** can be passed as the first argument to the [sqlite3_config()] interface.
|
@@ -1221,7 +1249,7 @@ struct sqlite3_mem_methods {
|
|
1221
1249
|
** is invoked.
|
1222
1250
|
**
|
1223
1251
|
** <dl>
|
1224
|
-
** <dt>SQLITE_CONFIG_SINGLETHREAD</dt>
|
1252
|
+
** [[SQLITE_CONFIG_SINGLETHREAD]] <dt>SQLITE_CONFIG_SINGLETHREAD</dt>
|
1225
1253
|
** <dd>There are no arguments to this option. ^This option sets the
|
1226
1254
|
** [threading mode] to Single-thread. In other words, it disables
|
1227
1255
|
** all mutexing and puts SQLite into a mode where it can only be used
|
@@ -1232,7 +1260,7 @@ struct sqlite3_mem_methods {
|
|
1232
1260
|
** [SQLITE_ERROR] if called with the SQLITE_CONFIG_SINGLETHREAD
|
1233
1261
|
** configuration option.</dd>
|
1234
1262
|
**
|
1235
|
-
** <dt>SQLITE_CONFIG_MULTITHREAD</dt>
|
1263
|
+
** [[SQLITE_CONFIG_MULTITHREAD]] <dt>SQLITE_CONFIG_MULTITHREAD</dt>
|
1236
1264
|
** <dd>There are no arguments to this option. ^This option sets the
|
1237
1265
|
** [threading mode] to Multi-thread. In other words, it disables
|
1238
1266
|
** mutexing on [database connection] and [prepared statement] objects.
|
@@ -1246,7 +1274,7 @@ struct sqlite3_mem_methods {
|
|
1246
1274
|
** [sqlite3_config()] will return [SQLITE_ERROR] if called with the
|
1247
1275
|
** SQLITE_CONFIG_MULTITHREAD configuration option.</dd>
|
1248
1276
|
**
|
1249
|
-
** <dt>SQLITE_CONFIG_SERIALIZED</dt>
|
1277
|
+
** [[SQLITE_CONFIG_SERIALIZED]] <dt>SQLITE_CONFIG_SERIALIZED</dt>
|
1250
1278
|
** <dd>There are no arguments to this option. ^This option sets the
|
1251
1279
|
** [threading mode] to Serialized. In other words, this option enables
|
1252
1280
|
** all mutexes including the recursive
|
@@ -1262,7 +1290,7 @@ struct sqlite3_mem_methods {
|
|
1262
1290
|
** [sqlite3_config()] will return [SQLITE_ERROR] if called with the
|
1263
1291
|
** SQLITE_CONFIG_SERIALIZED configuration option.</dd>
|
1264
1292
|
**
|
1265
|
-
** <dt>SQLITE_CONFIG_MALLOC</dt>
|
1293
|
+
** [[SQLITE_CONFIG_MALLOC]] <dt>SQLITE_CONFIG_MALLOC</dt>
|
1266
1294
|
** <dd> ^(This option takes a single argument which is a pointer to an
|
1267
1295
|
** instance of the [sqlite3_mem_methods] structure. The argument specifies
|
1268
1296
|
** alternative low-level memory allocation routines to be used in place of
|
@@ -1270,7 +1298,7 @@ struct sqlite3_mem_methods {
|
|
1270
1298
|
** its own private copy of the content of the [sqlite3_mem_methods] structure
|
1271
1299
|
** before the [sqlite3_config()] call returns.</dd>
|
1272
1300
|
**
|
1273
|
-
** <dt>SQLITE_CONFIG_GETMALLOC</dt>
|
1301
|
+
** [[SQLITE_CONFIG_GETMALLOC]] <dt>SQLITE_CONFIG_GETMALLOC</dt>
|
1274
1302
|
** <dd> ^(This option takes a single argument which is a pointer to an
|
1275
1303
|
** instance of the [sqlite3_mem_methods] structure. The [sqlite3_mem_methods]
|
1276
1304
|
** structure is filled with the currently defined memory allocation routines.)^
|
@@ -1278,7 +1306,7 @@ struct sqlite3_mem_methods {
|
|
1278
1306
|
** routines with a wrapper that simulations memory allocation failure or
|
1279
1307
|
** tracks memory usage, for example. </dd>
|
1280
1308
|
**
|
1281
|
-
** <dt>SQLITE_CONFIG_MEMSTATUS</dt>
|
1309
|
+
** [[SQLITE_CONFIG_MEMSTATUS]] <dt>SQLITE_CONFIG_MEMSTATUS</dt>
|
1282
1310
|
** <dd> ^This option takes single argument of type int, interpreted as a
|
1283
1311
|
** boolean, which enables or disables the collection of memory allocation
|
1284
1312
|
** statistics. ^(When memory allocation statistics are disabled, the
|
@@ -1294,10 +1322,10 @@ struct sqlite3_mem_methods {
|
|
1294
1322
|
** allocation statistics are disabled by default.
|
1295
1323
|
** </dd>
|
1296
1324
|
**
|
1297
|
-
** <dt>SQLITE_CONFIG_SCRATCH</dt>
|
1325
|
+
** [[SQLITE_CONFIG_SCRATCH]] <dt>SQLITE_CONFIG_SCRATCH</dt>
|
1298
1326
|
** <dd> ^This option specifies a static memory buffer that SQLite can use for
|
1299
1327
|
** scratch memory. There are three arguments: A pointer an 8-byte
|
1300
|
-
** aligned memory buffer from which the
|
1328
|
+
** aligned memory buffer from which the scratch allocations will be
|
1301
1329
|
** drawn, the size of each scratch allocation (sz),
|
1302
1330
|
** and the maximum number of scratch allocations (N). The sz
|
1303
1331
|
** argument must be a multiple of 16.
|
@@ -1310,9 +1338,9 @@ struct sqlite3_mem_methods {
|
|
1310
1338
|
** scratch memory beyond what is provided by this configuration option, then
|
1311
1339
|
** [sqlite3_malloc()] will be used to obtain the memory needed.</dd>
|
1312
1340
|
**
|
1313
|
-
** <dt>SQLITE_CONFIG_PAGECACHE</dt>
|
1341
|
+
** [[SQLITE_CONFIG_PAGECACHE]] <dt>SQLITE_CONFIG_PAGECACHE</dt>
|
1314
1342
|
** <dd> ^This option specifies a static memory buffer that SQLite can use for
|
1315
|
-
** the database page cache with the default page cache
|
1343
|
+
** the database page cache with the default page cache implementation.
|
1316
1344
|
** This configuration should not be used if an application-define page
|
1317
1345
|
** cache implementation is loaded using the SQLITE_CONFIG_PCACHE option.
|
1318
1346
|
** There are three arguments to this option: A pointer to 8-byte aligned
|
@@ -1331,7 +1359,7 @@ struct sqlite3_mem_methods {
|
|
1331
1359
|
** be aligned to an 8-byte boundary or subsequent behavior of SQLite
|
1332
1360
|
** will be undefined.</dd>
|
1333
1361
|
**
|
1334
|
-
** <dt>SQLITE_CONFIG_HEAP</dt>
|
1362
|
+
** [[SQLITE_CONFIG_HEAP]] <dt>SQLITE_CONFIG_HEAP</dt>
|
1335
1363
|
** <dd> ^This option specifies a static memory buffer that SQLite will use
|
1336
1364
|
** for all of its dynamic memory allocation needs beyond those provided
|
1337
1365
|
** for by [SQLITE_CONFIG_SCRATCH] and [SQLITE_CONFIG_PAGECACHE].
|
@@ -1344,9 +1372,11 @@ struct sqlite3_mem_methods {
|
|
1344
1372
|
** [SQLITE_ENABLE_MEMSYS5] are defined, then the alternative memory
|
1345
1373
|
** allocator is engaged to handle all of SQLites memory allocation needs.
|
1346
1374
|
** The first pointer (the memory pointer) must be aligned to an 8-byte
|
1347
|
-
** boundary or subsequent behavior of SQLite will be undefined
|
1375
|
+
** boundary or subsequent behavior of SQLite will be undefined.
|
1376
|
+
** The minimum allocation size is capped at 2^12. Reasonable values
|
1377
|
+
** for the minimum allocation size are 2^5 through 2^8.</dd>
|
1348
1378
|
**
|
1349
|
-
** <dt>SQLITE_CONFIG_MUTEX</dt>
|
1379
|
+
** [[SQLITE_CONFIG_MUTEX]] <dt>SQLITE_CONFIG_MUTEX</dt>
|
1350
1380
|
** <dd> ^(This option takes a single argument which is a pointer to an
|
1351
1381
|
** instance of the [sqlite3_mutex_methods] structure. The argument specifies
|
1352
1382
|
** alternative low-level mutex routines to be used in place
|
@@ -1358,7 +1388,7 @@ struct sqlite3_mem_methods {
|
|
1358
1388
|
** [sqlite3_config()] with the SQLITE_CONFIG_MUTEX configuration option will
|
1359
1389
|
** return [SQLITE_ERROR].</dd>
|
1360
1390
|
**
|
1361
|
-
** <dt>SQLITE_CONFIG_GETMUTEX</dt>
|
1391
|
+
** [[SQLITE_CONFIG_GETMUTEX]] <dt>SQLITE_CONFIG_GETMUTEX</dt>
|
1362
1392
|
** <dd> ^(This option takes a single argument which is a pointer to an
|
1363
1393
|
** instance of the [sqlite3_mutex_methods] structure. The
|
1364
1394
|
** [sqlite3_mutex_methods]
|
@@ -1371,7 +1401,7 @@ struct sqlite3_mem_methods {
|
|
1371
1401
|
** [sqlite3_config()] with the SQLITE_CONFIG_GETMUTEX configuration option will
|
1372
1402
|
** return [SQLITE_ERROR].</dd>
|
1373
1403
|
**
|
1374
|
-
** <dt>SQLITE_CONFIG_LOOKASIDE</dt>
|
1404
|
+
** [[SQLITE_CONFIG_LOOKASIDE]] <dt>SQLITE_CONFIG_LOOKASIDE</dt>
|
1375
1405
|
** <dd> ^(This option takes two arguments that determine the default
|
1376
1406
|
** memory allocation for the lookaside memory allocator on each
|
1377
1407
|
** [database connection]. The first argument is the
|
@@ -1381,18 +1411,18 @@ struct sqlite3_mem_methods {
|
|
1381
1411
|
** verb to [sqlite3_db_config()] can be used to change the lookaside
|
1382
1412
|
** configuration on individual connections.)^ </dd>
|
1383
1413
|
**
|
1384
|
-
** <dt>SQLITE_CONFIG_PCACHE</dt>
|
1414
|
+
** [[SQLITE_CONFIG_PCACHE]] <dt>SQLITE_CONFIG_PCACHE</dt>
|
1385
1415
|
** <dd> ^(This option takes a single argument which is a pointer to
|
1386
1416
|
** an [sqlite3_pcache_methods] object. This object specifies the interface
|
1387
1417
|
** to a custom page cache implementation.)^ ^SQLite makes a copy of the
|
1388
1418
|
** object and uses it for page cache memory allocations.</dd>
|
1389
1419
|
**
|
1390
|
-
** <dt>SQLITE_CONFIG_GETPCACHE</dt>
|
1420
|
+
** [[SQLITE_CONFIG_GETPCACHE]] <dt>SQLITE_CONFIG_GETPCACHE</dt>
|
1391
1421
|
** <dd> ^(This option takes a single argument which is a pointer to an
|
1392
1422
|
** [sqlite3_pcache_methods] object. SQLite copies of the current
|
1393
1423
|
** page cache implementation into that object.)^ </dd>
|
1394
1424
|
**
|
1395
|
-
** <dt>SQLITE_CONFIG_LOG</dt>
|
1425
|
+
** [[SQLITE_CONFIG_LOG]] <dt>SQLITE_CONFIG_LOG</dt>
|
1396
1426
|
** <dd> ^The SQLITE_CONFIG_LOG option takes two arguments: a pointer to a
|
1397
1427
|
** function with a call signature of void(*)(void*,int,const char*),
|
1398
1428
|
** and a pointer to void. ^If the function pointer is not NULL, it is
|
@@ -1410,6 +1440,18 @@ struct sqlite3_mem_methods {
|
|
1410
1440
|
** In a multi-threaded application, the application-defined logger
|
1411
1441
|
** function must be threadsafe. </dd>
|
1412
1442
|
**
|
1443
|
+
** [[SQLITE_CONFIG_URI]] <dt>SQLITE_CONFIG_URI
|
1444
|
+
** <dd> This option takes a single argument of type int. If non-zero, then
|
1445
|
+
** URI handling is globally enabled. If the parameter is zero, then URI handling
|
1446
|
+
** is globally disabled. If URI handling is globally enabled, all filenames
|
1447
|
+
** passed to [sqlite3_open()], [sqlite3_open_v2()], [sqlite3_open16()] or
|
1448
|
+
** specified as part of [ATTACH] commands are interpreted as URIs, regardless
|
1449
|
+
** of whether or not the [SQLITE_OPEN_URI] flag is set when the database
|
1450
|
+
** connection is opened. If it is globally disabled, filenames are
|
1451
|
+
** only interpreted as URIs if the SQLITE_OPEN_URI flag is set when the
|
1452
|
+
** database connection is opened. By default, URI handling is globally
|
1453
|
+
** disabled. The default value may be changed by compiling with the
|
1454
|
+
** [SQLITE_USE_URI] symbol defined.
|
1413
1455
|
** </dl>
|
1414
1456
|
*/
|
1415
1457
|
#define SQLITE_CONFIG_SINGLETHREAD 1 /* nil */
|
@@ -1428,6 +1470,7 @@ struct sqlite3_mem_methods {
|
|
1428
1470
|
#define SQLITE_CONFIG_PCACHE 14 /* sqlite3_pcache_methods* */
|
1429
1471
|
#define SQLITE_CONFIG_GETPCACHE 15 /* sqlite3_pcache_methods* */
|
1430
1472
|
#define SQLITE_CONFIG_LOG 16 /* xFunc, void* */
|
1473
|
+
#define SQLITE_CONFIG_URI 17 /* int */
|
1431
1474
|
|
1432
1475
|
/*
|
1433
1476
|
** CAPI3REF: Database Connection Configuration Options
|
@@ -1447,7 +1490,7 @@ struct sqlite3_mem_methods {
|
|
1447
1490
|
** <dd> ^This option takes three additional arguments that determine the
|
1448
1491
|
** [lookaside memory allocator] configuration for the [database connection].
|
1449
1492
|
** ^The first argument (the third parameter to [sqlite3_db_config()] is a
|
1450
|
-
** pointer to
|
1493
|
+
** pointer to a memory buffer to use for lookaside memory.
|
1451
1494
|
** ^The first argument after the SQLITE_DBCONFIG_LOOKASIDE verb
|
1452
1495
|
** may be NULL in which case SQLite will allocate the
|
1453
1496
|
** lookaside buffer itself using [sqlite3_malloc()]. ^The second argument is the
|
@@ -1465,9 +1508,31 @@ struct sqlite3_mem_methods {
|
|
1465
1508
|
** memory is in use leaves the configuration unchanged and returns
|
1466
1509
|
** [SQLITE_BUSY].)^</dd>
|
1467
1510
|
**
|
1511
|
+
** <dt>SQLITE_DBCONFIG_ENABLE_FKEY</dt>
|
1512
|
+
** <dd> ^This option is used to enable or disable the enforcement of
|
1513
|
+
** [foreign key constraints]. There should be two additional arguments.
|
1514
|
+
** The first argument is an integer which is 0 to disable FK enforcement,
|
1515
|
+
** positive to enable FK enforcement or negative to leave FK enforcement
|
1516
|
+
** unchanged. The second parameter is a pointer to an integer into which
|
1517
|
+
** is written 0 or 1 to indicate whether FK enforcement is off or on
|
1518
|
+
** following this call. The second parameter may be a NULL pointer, in
|
1519
|
+
** which case the FK enforcement setting is not reported back. </dd>
|
1520
|
+
**
|
1521
|
+
** <dt>SQLITE_DBCONFIG_ENABLE_TRIGGER</dt>
|
1522
|
+
** <dd> ^This option is used to enable or disable [CREATE TRIGGER | triggers].
|
1523
|
+
** There should be two additional arguments.
|
1524
|
+
** The first argument is an integer which is 0 to disable triggers,
|
1525
|
+
** positive to enable triggers or negative to leave the setting unchanged.
|
1526
|
+
** The second parameter is a pointer to an integer into which
|
1527
|
+
** is written 0 or 1 to indicate whether triggers are disabled or enabled
|
1528
|
+
** following this call. The second parameter may be a NULL pointer, in
|
1529
|
+
** which case the trigger setting is not reported back. </dd>
|
1530
|
+
**
|
1468
1531
|
** </dl>
|
1469
1532
|
*/
|
1470
|
-
#define SQLITE_DBCONFIG_LOOKASIDE
|
1533
|
+
#define SQLITE_DBCONFIG_LOOKASIDE 1001 /* void* int int */
|
1534
|
+
#define SQLITE_DBCONFIG_ENABLE_FKEY 1002 /* int int* */
|
1535
|
+
#define SQLITE_DBCONFIG_ENABLE_TRIGGER 1003 /* int int* */
|
1471
1536
|
|
1472
1537
|
|
1473
1538
|
/*
|
@@ -1491,13 +1556,17 @@ SQLITE_API int sqlite3_extended_result_codes(sqlite3*, int onoff);
|
|
1491
1556
|
**
|
1492
1557
|
** ^This routine returns the [rowid] of the most recent
|
1493
1558
|
** successful [INSERT] into the database from the [database connection]
|
1494
|
-
** in the first argument. ^
|
1559
|
+
** in the first argument. ^As of SQLite version 3.7.7, this routines
|
1560
|
+
** records the last insert rowid of both ordinary tables and [virtual tables].
|
1561
|
+
** ^If no successful [INSERT]s
|
1495
1562
|
** have ever occurred on that database connection, zero is returned.
|
1496
1563
|
**
|
1497
|
-
** ^(If an [INSERT] occurs within a trigger
|
1498
|
-
**
|
1499
|
-
**
|
1500
|
-
**
|
1564
|
+
** ^(If an [INSERT] occurs within a trigger or within a [virtual table]
|
1565
|
+
** method, then this routine will return the [rowid] of the inserted
|
1566
|
+
** row as long as the trigger or virtual table method is running.
|
1567
|
+
** But once the trigger or virtual table method ends, the value returned
|
1568
|
+
** by this routine reverts to what it was before the trigger or virtual
|
1569
|
+
** table method began.)^
|
1501
1570
|
**
|
1502
1571
|
** ^An [INSERT] that fails due to a constraint violation is not a
|
1503
1572
|
** successful [INSERT] and does not change the value returned by this
|
@@ -2069,7 +2138,7 @@ SQLITE_API void sqlite3_randomness(int N, void *P);
|
|
2069
2138
|
/*
|
2070
2139
|
** CAPI3REF: Compile-Time Authorization Callbacks
|
2071
2140
|
**
|
2072
|
-
** ^This routine registers
|
2141
|
+
** ^This routine registers an authorizer callback with a particular
|
2073
2142
|
** [database connection], supplied in the first argument.
|
2074
2143
|
** ^The authorizer callback is invoked as SQL statements are being compiled
|
2075
2144
|
** by [sqlite3_prepare()] or its variants [sqlite3_prepare_v2()],
|
@@ -2160,6 +2229,9 @@ SQLITE_API int sqlite3_set_authorizer(
|
|
2160
2229
|
** to signal SQLite whether or not the action is permitted. See the
|
2161
2230
|
** [sqlite3_set_authorizer | authorizer documentation] for additional
|
2162
2231
|
** information.
|
2232
|
+
**
|
2233
|
+
** Note that SQLITE_IGNORE is also used as a [SQLITE_ROLLBACK | return code]
|
2234
|
+
** from the [sqlite3_vtab_on_conflict()] interface.
|
2163
2235
|
*/
|
2164
2236
|
#define SQLITE_DENY 1 /* Abort the SQL statement with an error */
|
2165
2237
|
#define SQLITE_IGNORE 2 /* Don't allow access, but don't generate an error */
|
@@ -2282,7 +2354,7 @@ SQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
|
|
2282
2354
|
/*
|
2283
2355
|
** CAPI3REF: Opening A New Database Connection
|
2284
2356
|
**
|
2285
|
-
** ^These routines open an SQLite database file
|
2357
|
+
** ^These routines open an SQLite database file as specified by the
|
2286
2358
|
** filename argument. ^The filename argument is interpreted as UTF-8 for
|
2287
2359
|
** sqlite3_open() and sqlite3_open_v2() and as UTF-16 in the native byte
|
2288
2360
|
** order for sqlite3_open16(). ^(A [database connection] handle is usually
|
@@ -2309,7 +2381,7 @@ SQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
|
|
2309
2381
|
** sqlite3_open_v2() can take one of
|
2310
2382
|
** the following three values, optionally combined with the
|
2311
2383
|
** [SQLITE_OPEN_NOMUTEX], [SQLITE_OPEN_FULLMUTEX], [SQLITE_OPEN_SHAREDCACHE],
|
2312
|
-
** and/or [
|
2384
|
+
** [SQLITE_OPEN_PRIVATECACHE], and/or [SQLITE_OPEN_URI] flags:)^
|
2313
2385
|
**
|
2314
2386
|
** <dl>
|
2315
2387
|
** ^(<dt>[SQLITE_OPEN_READONLY]</dt>
|
@@ -2328,9 +2400,8 @@ SQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
|
|
2328
2400
|
** </dl>
|
2329
2401
|
**
|
2330
2402
|
** If the 3rd parameter to sqlite3_open_v2() is not one of the
|
2331
|
-
** combinations shown above
|
2332
|
-
**
|
2333
|
-
** [SQLITE_OPEN_SHAREDCACHE] and/or [SQLITE_OPEN_PRIVATECACHE] flags,
|
2403
|
+
** combinations shown above optionally combined with other
|
2404
|
+
** [SQLITE_OPEN_READONLY | SQLITE_OPEN_* bits]
|
2334
2405
|
** then the behavior is undefined.
|
2335
2406
|
**
|
2336
2407
|
** ^If the [SQLITE_OPEN_NOMUTEX] flag is set, then the database connection
|
@@ -2345,6 +2416,11 @@ SQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
|
|
2345
2416
|
** [SQLITE_OPEN_PRIVATECACHE] flag causes the database connection to not
|
2346
2417
|
** participate in [shared cache mode] even if it is enabled.
|
2347
2418
|
**
|
2419
|
+
** ^The fourth parameter to sqlite3_open_v2() is the name of the
|
2420
|
+
** [sqlite3_vfs] object that defines the operating system interface that
|
2421
|
+
** the new database connection should use. ^If the fourth parameter is
|
2422
|
+
** a NULL pointer then the default [sqlite3_vfs] object is used.
|
2423
|
+
**
|
2348
2424
|
** ^If the filename is ":memory:", then a private, temporary in-memory database
|
2349
2425
|
** is created for the connection. ^This in-memory database will vanish when
|
2350
2426
|
** the database connection is closed. Future versions of SQLite might
|
@@ -2357,10 +2433,111 @@ SQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
|
|
2357
2433
|
** on-disk database will be created. ^This private database will be
|
2358
2434
|
** automatically deleted as soon as the database connection is closed.
|
2359
2435
|
**
|
2360
|
-
**
|
2361
|
-
**
|
2362
|
-
**
|
2363
|
-
**
|
2436
|
+
** [[URI filenames in sqlite3_open()]] <h3>URI Filenames</h3>
|
2437
|
+
**
|
2438
|
+
** ^If [URI filename] interpretation is enabled, and the filename argument
|
2439
|
+
** begins with "file:", then the filename is interpreted as a URI. ^URI
|
2440
|
+
** filename interpretation is enabled if the [SQLITE_OPEN_URI] flag is
|
2441
|
+
** set in the fourth argument to sqlite3_open_v2(), or if it has
|
2442
|
+
** been enabled globally using the [SQLITE_CONFIG_URI] option with the
|
2443
|
+
** [sqlite3_config()] method or by the [SQLITE_USE_URI] compile-time option.
|
2444
|
+
** As of SQLite version 3.7.7, URI filename interpretation is turned off
|
2445
|
+
** by default, but future releases of SQLite might enable URI filename
|
2446
|
+
** interpretation by default. See "[URI filenames]" for additional
|
2447
|
+
** information.
|
2448
|
+
**
|
2449
|
+
** URI filenames are parsed according to RFC 3986. ^If the URI contains an
|
2450
|
+
** authority, then it must be either an empty string or the string
|
2451
|
+
** "localhost". ^If the authority is not an empty string or "localhost", an
|
2452
|
+
** error is returned to the caller. ^The fragment component of a URI, if
|
2453
|
+
** present, is ignored.
|
2454
|
+
**
|
2455
|
+
** ^SQLite uses the path component of the URI as the name of the disk file
|
2456
|
+
** which contains the database. ^If the path begins with a '/' character,
|
2457
|
+
** then it is interpreted as an absolute path. ^If the path does not begin
|
2458
|
+
** with a '/' (meaning that the authority section is omitted from the URI)
|
2459
|
+
** then the path is interpreted as a relative path.
|
2460
|
+
** ^On windows, the first component of an absolute path
|
2461
|
+
** is a drive specification (e.g. "C:").
|
2462
|
+
**
|
2463
|
+
** [[core URI query parameters]]
|
2464
|
+
** The query component of a URI may contain parameters that are interpreted
|
2465
|
+
** either by SQLite itself, or by a [VFS | custom VFS implementation].
|
2466
|
+
** SQLite interprets the following three query parameters:
|
2467
|
+
**
|
2468
|
+
** <ul>
|
2469
|
+
** <li> <b>vfs</b>: ^The "vfs" parameter may be used to specify the name of
|
2470
|
+
** a VFS object that provides the operating system interface that should
|
2471
|
+
** be used to access the database file on disk. ^If this option is set to
|
2472
|
+
** an empty string the default VFS object is used. ^Specifying an unknown
|
2473
|
+
** VFS is an error. ^If sqlite3_open_v2() is used and the vfs option is
|
2474
|
+
** present, then the VFS specified by the option takes precedence over
|
2475
|
+
** the value passed as the fourth parameter to sqlite3_open_v2().
|
2476
|
+
**
|
2477
|
+
** <li> <b>mode</b>: ^(The mode parameter may be set to either "ro", "rw" or
|
2478
|
+
** "rwc". Attempting to set it to any other value is an error)^.
|
2479
|
+
** ^If "ro" is specified, then the database is opened for read-only
|
2480
|
+
** access, just as if the [SQLITE_OPEN_READONLY] flag had been set in the
|
2481
|
+
** third argument to sqlite3_prepare_v2(). ^If the mode option is set to
|
2482
|
+
** "rw", then the database is opened for read-write (but not create)
|
2483
|
+
** access, as if SQLITE_OPEN_READWRITE (but not SQLITE_OPEN_CREATE) had
|
2484
|
+
** been set. ^Value "rwc" is equivalent to setting both
|
2485
|
+
** SQLITE_OPEN_READWRITE and SQLITE_OPEN_CREATE. ^If sqlite3_open_v2() is
|
2486
|
+
** used, it is an error to specify a value for the mode parameter that is
|
2487
|
+
** less restrictive than that specified by the flags passed as the third
|
2488
|
+
** parameter.
|
2489
|
+
**
|
2490
|
+
** <li> <b>cache</b>: ^The cache parameter may be set to either "shared" or
|
2491
|
+
** "private". ^Setting it to "shared" is equivalent to setting the
|
2492
|
+
** SQLITE_OPEN_SHAREDCACHE bit in the flags argument passed to
|
2493
|
+
** sqlite3_open_v2(). ^Setting the cache parameter to "private" is
|
2494
|
+
** equivalent to setting the SQLITE_OPEN_PRIVATECACHE bit.
|
2495
|
+
** ^If sqlite3_open_v2() is used and the "cache" parameter is present in
|
2496
|
+
** a URI filename, its value overrides any behaviour requested by setting
|
2497
|
+
** SQLITE_OPEN_PRIVATECACHE or SQLITE_OPEN_SHAREDCACHE flag.
|
2498
|
+
** </ul>
|
2499
|
+
**
|
2500
|
+
** ^Specifying an unknown parameter in the query component of a URI is not an
|
2501
|
+
** error. Future versions of SQLite might understand additional query
|
2502
|
+
** parameters. See "[query parameters with special meaning to SQLite]" for
|
2503
|
+
** additional information.
|
2504
|
+
**
|
2505
|
+
** [[URI filename examples]] <h3>URI filename examples</h3>
|
2506
|
+
**
|
2507
|
+
** <table border="1" align=center cellpadding=5>
|
2508
|
+
** <tr><th> URI filenames <th> Results
|
2509
|
+
** <tr><td> file:data.db <td>
|
2510
|
+
** Open the file "data.db" in the current directory.
|
2511
|
+
** <tr><td> file:/home/fred/data.db<br>
|
2512
|
+
** file:///home/fred/data.db <br>
|
2513
|
+
** file://localhost/home/fred/data.db <br> <td>
|
2514
|
+
** Open the database file "/home/fred/data.db".
|
2515
|
+
** <tr><td> file://darkstar/home/fred/data.db <td>
|
2516
|
+
** An error. "darkstar" is not a recognized authority.
|
2517
|
+
** <tr><td style="white-space:nowrap">
|
2518
|
+
** file:///C:/Documents%20and%20Settings/fred/Desktop/data.db
|
2519
|
+
** <td> Windows only: Open the file "data.db" on fred's desktop on drive
|
2520
|
+
** C:. Note that the %20 escaping in this example is not strictly
|
2521
|
+
** necessary - space characters can be used literally
|
2522
|
+
** in URI filenames.
|
2523
|
+
** <tr><td> file:data.db?mode=ro&cache=private <td>
|
2524
|
+
** Open file "data.db" in the current directory for read-only access.
|
2525
|
+
** Regardless of whether or not shared-cache mode is enabled by
|
2526
|
+
** default, use a private cache.
|
2527
|
+
** <tr><td> file:/home/fred/data.db?vfs=unix-nolock <td>
|
2528
|
+
** Open file "/home/fred/data.db". Use the special VFS "unix-nolock".
|
2529
|
+
** <tr><td> file:data.db?mode=readonly <td>
|
2530
|
+
** An error. "readonly" is not a valid option for the "mode" parameter.
|
2531
|
+
** </table>
|
2532
|
+
**
|
2533
|
+
** ^URI hexadecimal escape sequences (%HH) are supported within the path and
|
2534
|
+
** query components of a URI. A hexadecimal escape sequence consists of a
|
2535
|
+
** percent sign - "%" - followed by exactly two hexadecimal digits
|
2536
|
+
** specifying an octet value. ^Before the path or query components of a
|
2537
|
+
** URI filename are interpreted, they are encoded using UTF-8 and all
|
2538
|
+
** hexadecimal escape sequences replaced by a single byte containing the
|
2539
|
+
** corresponding octet. If this process generates an invalid UTF-8 encoding,
|
2540
|
+
** the results are undefined.
|
2364
2541
|
**
|
2365
2542
|
** <b>Note to Windows users:</b> The encoding used for the filename argument
|
2366
2543
|
** of sqlite3_open() and sqlite3_open_v2() must be UTF-8, not whatever
|
@@ -2383,6 +2560,26 @@ SQLITE_API int sqlite3_open_v2(
|
|
2383
2560
|
const char *zVfs /* Name of VFS module to use */
|
2384
2561
|
);
|
2385
2562
|
|
2563
|
+
/*
|
2564
|
+
** CAPI3REF: Obtain Values For URI Parameters
|
2565
|
+
**
|
2566
|
+
** This is a utility routine, useful to VFS implementations, that checks
|
2567
|
+
** to see if a database file was a URI that contained a specific query
|
2568
|
+
** parameter, and if so obtains the value of the query parameter.
|
2569
|
+
**
|
2570
|
+
** The zFilename argument is the filename pointer passed into the xOpen()
|
2571
|
+
** method of a VFS implementation. The zParam argument is the name of the
|
2572
|
+
** query parameter we seek. This routine returns the value of the zParam
|
2573
|
+
** parameter if it exists. If the parameter does not exist, this routine
|
2574
|
+
** returns a NULL pointer.
|
2575
|
+
**
|
2576
|
+
** If the zFilename argument to this function is not a pointer that SQLite
|
2577
|
+
** passed into the xOpen VFS method, then the behavior of this routine
|
2578
|
+
** is undefined and probably undesirable.
|
2579
|
+
*/
|
2580
|
+
SQLITE_API const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam);
|
2581
|
+
|
2582
|
+
|
2386
2583
|
/*
|
2387
2584
|
** CAPI3REF: Error Codes And Messages
|
2388
2585
|
**
|
@@ -2498,43 +2695,45 @@ SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal);
|
|
2498
2695
|
** Additional information is available at [limits | Limits in SQLite].
|
2499
2696
|
**
|
2500
2697
|
** <dl>
|
2501
|
-
** ^(<dt>SQLITE_LIMIT_LENGTH</dt>
|
2698
|
+
** [[SQLITE_LIMIT_LENGTH]] ^(<dt>SQLITE_LIMIT_LENGTH</dt>
|
2502
2699
|
** <dd>The maximum size of any string or BLOB or table row, in bytes.<dd>)^
|
2503
2700
|
**
|
2504
|
-
** ^(<dt>SQLITE_LIMIT_SQL_LENGTH</dt>
|
2701
|
+
** [[SQLITE_LIMIT_SQL_LENGTH]] ^(<dt>SQLITE_LIMIT_SQL_LENGTH</dt>
|
2505
2702
|
** <dd>The maximum length of an SQL statement, in bytes.</dd>)^
|
2506
2703
|
**
|
2507
|
-
** ^(<dt>SQLITE_LIMIT_COLUMN</dt>
|
2704
|
+
** [[SQLITE_LIMIT_COLUMN]] ^(<dt>SQLITE_LIMIT_COLUMN</dt>
|
2508
2705
|
** <dd>The maximum number of columns in a table definition or in the
|
2509
2706
|
** result set of a [SELECT] or the maximum number of columns in an index
|
2510
2707
|
** or in an ORDER BY or GROUP BY clause.</dd>)^
|
2511
2708
|
**
|
2512
|
-
** ^(<dt>SQLITE_LIMIT_EXPR_DEPTH</dt>
|
2709
|
+
** [[SQLITE_LIMIT_EXPR_DEPTH]] ^(<dt>SQLITE_LIMIT_EXPR_DEPTH</dt>
|
2513
2710
|
** <dd>The maximum depth of the parse tree on any expression.</dd>)^
|
2514
2711
|
**
|
2515
|
-
** ^(<dt>SQLITE_LIMIT_COMPOUND_SELECT</dt>
|
2712
|
+
** [[SQLITE_LIMIT_COMPOUND_SELECT]] ^(<dt>SQLITE_LIMIT_COMPOUND_SELECT</dt>
|
2516
2713
|
** <dd>The maximum number of terms in a compound SELECT statement.</dd>)^
|
2517
2714
|
**
|
2518
|
-
** ^(<dt>SQLITE_LIMIT_VDBE_OP</dt>
|
2715
|
+
** [[SQLITE_LIMIT_VDBE_OP]] ^(<dt>SQLITE_LIMIT_VDBE_OP</dt>
|
2519
2716
|
** <dd>The maximum number of instructions in a virtual machine program
|
2520
2717
|
** used to implement an SQL statement. This limit is not currently
|
2521
2718
|
** enforced, though that might be added in some future release of
|
2522
2719
|
** SQLite.</dd>)^
|
2523
2720
|
**
|
2524
|
-
** ^(<dt>SQLITE_LIMIT_FUNCTION_ARG</dt>
|
2721
|
+
** [[SQLITE_LIMIT_FUNCTION_ARG]] ^(<dt>SQLITE_LIMIT_FUNCTION_ARG</dt>
|
2525
2722
|
** <dd>The maximum number of arguments on a function.</dd>)^
|
2526
2723
|
**
|
2527
|
-
** ^(<dt>SQLITE_LIMIT_ATTACHED</dt>
|
2724
|
+
** [[SQLITE_LIMIT_ATTACHED]] ^(<dt>SQLITE_LIMIT_ATTACHED</dt>
|
2528
2725
|
** <dd>The maximum number of [ATTACH | attached databases].)^</dd>
|
2529
2726
|
**
|
2727
|
+
** [[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]]
|
2530
2728
|
** ^(<dt>SQLITE_LIMIT_LIKE_PATTERN_LENGTH</dt>
|
2531
2729
|
** <dd>The maximum length of the pattern argument to the [LIKE] or
|
2532
2730
|
** [GLOB] operators.</dd>)^
|
2533
2731
|
**
|
2732
|
+
** [[SQLITE_LIMIT_VARIABLE_NUMBER]]
|
2534
2733
|
** ^(<dt>SQLITE_LIMIT_VARIABLE_NUMBER</dt>
|
2535
2734
|
** <dd>The maximum index number of any [parameter] in an SQL statement.)^
|
2536
2735
|
**
|
2537
|
-
** ^(<dt>SQLITE_LIMIT_TRIGGER_DEPTH</dt>
|
2736
|
+
** [[SQLITE_LIMIT_TRIGGER_DEPTH]] ^(<dt>SQLITE_LIMIT_TRIGGER_DEPTH</dt>
|
2538
2737
|
** <dd>The maximum depth of recursion for triggers.</dd>)^
|
2539
2738
|
** </dl>
|
2540
2739
|
*/
|
@@ -2671,7 +2870,7 @@ SQLITE_API const char *sqlite3_sql(sqlite3_stmt *pStmt);
|
|
2671
2870
|
/*
|
2672
2871
|
** CAPI3REF: Determine If An SQL Statement Writes The Database
|
2673
2872
|
**
|
2674
|
-
** ^The sqlite3_stmt_readonly(X) interface returns true (non-zero) if
|
2873
|
+
** ^The sqlite3_stmt_readonly(X) interface returns true (non-zero) if
|
2675
2874
|
** and only if the [prepared statement] X makes no direct changes to
|
2676
2875
|
** the content of the database file.
|
2677
2876
|
**
|
@@ -2715,7 +2914,7 @@ SQLITE_API int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);
|
|
2715
2914
|
** whether or not it requires a protected sqlite3_value.
|
2716
2915
|
**
|
2717
2916
|
** The terms "protected" and "unprotected" refer to whether or not
|
2718
|
-
** a mutex is held.
|
2917
|
+
** a mutex is held. An internal mutex is held for a protected
|
2719
2918
|
** sqlite3_value object but no mutex is held for an unprotected
|
2720
2919
|
** sqlite3_value object. If SQLite is compiled to be single-threaded
|
2721
2920
|
** (with [SQLITE_THREADSAFE=0] and with [sqlite3_threadsafe()] returning 0)
|
@@ -2939,7 +3138,9 @@ SQLITE_API int sqlite3_column_count(sqlite3_stmt *pStmt);
|
|
2939
3138
|
** column number. ^The leftmost column is number 0.
|
2940
3139
|
**
|
2941
3140
|
** ^The returned string pointer is valid until either the [prepared statement]
|
2942
|
-
** is destroyed by [sqlite3_finalize()] or until the
|
3141
|
+
** is destroyed by [sqlite3_finalize()] or until the statement is automatically
|
3142
|
+
** reprepared by the first call to [sqlite3_step()] for a particular run
|
3143
|
+
** or until the next call to
|
2943
3144
|
** sqlite3_column_name() or sqlite3_column_name16() on the same column.
|
2944
3145
|
**
|
2945
3146
|
** ^If sqlite3_malloc() fails during the processing of either routine
|
@@ -2965,7 +3166,9 @@ SQLITE_API const void *sqlite3_column_name16(sqlite3_stmt*, int N);
|
|
2965
3166
|
** the database name, the _table_ routines return the table name, and
|
2966
3167
|
** the origin_ routines return the column name.
|
2967
3168
|
** ^The returned string is valid until the [prepared statement] is destroyed
|
2968
|
-
** using [sqlite3_finalize()] or until the
|
3169
|
+
** using [sqlite3_finalize()] or until the statement is automatically
|
3170
|
+
** reprepared by the first call to [sqlite3_step()] for a particular run
|
3171
|
+
** or until the same information is requested
|
2969
3172
|
** again in a different encoding.
|
2970
3173
|
**
|
2971
3174
|
** ^The names returned are the original un-aliased names of the
|
@@ -3059,7 +3262,7 @@ SQLITE_API const void *sqlite3_column_decltype16(sqlite3_stmt*,int);
|
|
3059
3262
|
** ^[SQLITE_BUSY] means that the database engine was unable to acquire the
|
3060
3263
|
** database locks it needs to do its job. ^If the statement is a [COMMIT]
|
3061
3264
|
** or occurs outside of an explicit transaction, then you can retry the
|
3062
|
-
** statement. If the statement is not a [COMMIT] and occurs within
|
3265
|
+
** statement. If the statement is not a [COMMIT] and occurs within an
|
3063
3266
|
** explicit transaction then you should rollback the transaction before
|
3064
3267
|
** continuing.
|
3065
3268
|
**
|
@@ -3338,7 +3541,7 @@ SQLITE_API sqlite3_value *sqlite3_column_value(sqlite3_stmt*, int iCol);
|
|
3338
3541
|
** CAPI3REF: Destroy A Prepared Statement Object
|
3339
3542
|
**
|
3340
3543
|
** ^The sqlite3_finalize() function is called to delete a [prepared statement].
|
3341
|
-
** ^If the most recent evaluation of the statement encountered no errors
|
3544
|
+
** ^If the most recent evaluation of the statement encountered no errors
|
3342
3545
|
** or if the statement is never been evaluated, then sqlite3_finalize() returns
|
3343
3546
|
** SQLITE_OK. ^If the most recent evaluation of statement S failed, then
|
3344
3547
|
** sqlite3_finalize(S) returns the appropriate [error code] or
|
@@ -3397,7 +3600,7 @@ SQLITE_API int sqlite3_reset(sqlite3_stmt *pStmt);
|
|
3397
3600
|
** are used to add SQL functions or aggregates or to redefine the behavior
|
3398
3601
|
** of existing SQL functions or aggregates. The only differences between
|
3399
3602
|
** these routines are the text encoding expected for
|
3400
|
-
** the
|
3603
|
+
** the second parameter (the name of the function being created)
|
3401
3604
|
** and the presence or absence of a destructor callback for
|
3402
3605
|
** the application data pointer.
|
3403
3606
|
**
|
@@ -3442,7 +3645,7 @@ SQLITE_API int sqlite3_reset(sqlite3_stmt *pStmt);
|
|
3442
3645
|
** callback only; NULL pointers must be passed as the xStep and xFinal
|
3443
3646
|
** parameters. ^An aggregate SQL function requires an implementation of xStep
|
3444
3647
|
** and xFinal and NULL pointer must be passed for xFunc. ^To delete an existing
|
3445
|
-
** SQL function or aggregate, pass NULL
|
3648
|
+
** SQL function or aggregate, pass NULL pointers for all three function
|
3446
3649
|
** callbacks.
|
3447
3650
|
**
|
3448
3651
|
** ^(If the ninth parameter to sqlite3_create_function_v2() is not NULL,
|
@@ -3876,7 +4079,7 @@ SQLITE_API void sqlite3_result_zeroblob(sqlite3_context*, int n);
|
|
3876
4079
|
** ^The [SQLITE_UTF16_ALIGNED] value for eTextRep forces strings to begin
|
3877
4080
|
** on an even byte address.
|
3878
4081
|
**
|
3879
|
-
** ^The fourth argument, pArg, is
|
4082
|
+
** ^The fourth argument, pArg, is an application data pointer that is passed
|
3880
4083
|
** through as the first argument to the collating function callback.
|
3881
4084
|
**
|
3882
4085
|
** ^The fifth argument, xCallback, is a pointer to the collating function.
|
@@ -3892,7 +4095,7 @@ SQLITE_API void sqlite3_result_zeroblob(sqlite3_context*, int n);
|
|
3892
4095
|
** by the eTextRep argument. The collating function must return an
|
3893
4096
|
** integer that is negative, zero, or positive
|
3894
4097
|
** if the first string is less than, equal to, or greater than the second,
|
3895
|
-
** respectively. A collating function must
|
4098
|
+
** respectively. A collating function must always return the same answer
|
3896
4099
|
** given the same inputs. If two or more collating functions are registered
|
3897
4100
|
** to the same collation name (using different eTextRep values) then all
|
3898
4101
|
** must give an equivalent answer when invoked with equivalent strings.
|
@@ -4304,7 +4507,7 @@ SQLITE_API int sqlite3_release_memory(int);
|
|
4304
4507
|
** <li> Memory accounting is disabled using a combination of the
|
4305
4508
|
** [sqlite3_config]([SQLITE_CONFIG_MEMSTATUS],...) start-time option and
|
4306
4509
|
** the [SQLITE_DEFAULT_MEMSTATUS] compile-time option.
|
4307
|
-
** <li> An alternative page cache implementation is
|
4510
|
+
** <li> An alternative page cache implementation is specified using
|
4308
4511
|
** [sqlite3_config]([SQLITE_CONFIG_PCACHE],...).
|
4309
4512
|
** <li> The page cache allocates from its own memory pool supplied
|
4310
4513
|
** by [sqlite3_config]([SQLITE_CONFIG_PAGECACHE],...) rather than
|
@@ -4525,7 +4728,7 @@ typedef struct sqlite3_module sqlite3_module;
|
|
4525
4728
|
** CAPI3REF: Virtual Table Object
|
4526
4729
|
** KEYWORDS: sqlite3_module {virtual table module}
|
4527
4730
|
**
|
4528
|
-
** This structure, sometimes called a
|
4731
|
+
** This structure, sometimes called a "virtual table module",
|
4529
4732
|
** defines the implementation of a [virtual tables].
|
4530
4733
|
** This structure consists mostly of methods for the module.
|
4531
4734
|
**
|
@@ -4565,6 +4768,11 @@ struct sqlite3_module {
|
|
4565
4768
|
void (**pxFunc)(sqlite3_context*,int,sqlite3_value**),
|
4566
4769
|
void **ppArg);
|
4567
4770
|
int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);
|
4771
|
+
/* The methods above are in version 1 of the sqlite_module object. Those
|
4772
|
+
** below are for version 2 and greater. */
|
4773
|
+
int (*xSavepoint)(sqlite3_vtab *pVTab, int);
|
4774
|
+
int (*xRelease)(sqlite3_vtab *pVTab, int);
|
4775
|
+
int (*xRollbackTo)(sqlite3_vtab *pVTab, int);
|
4568
4776
|
};
|
4569
4777
|
|
4570
4778
|
/*
|
@@ -4837,7 +5045,7 @@ typedef struct sqlite3_blob sqlite3_blob;
|
|
4837
5045
|
** This is true if any column of the row is changed, even a column
|
4838
5046
|
** other than the one the BLOB handle is open on.)^
|
4839
5047
|
** ^Calls to [sqlite3_blob_read()] and [sqlite3_blob_write()] for
|
4840
|
-
**
|
5048
|
+
** an expired BLOB handle fail with a return code of [SQLITE_ABORT].
|
4841
5049
|
** ^(Changes written into a BLOB prior to the BLOB expiring are not
|
4842
5050
|
** rolled back by the expiration of the BLOB. Such changes will eventually
|
4843
5051
|
** commit if the transaction continues to completion.)^
|
@@ -5247,7 +5455,7 @@ struct sqlite3_mutex_methods {
|
|
5247
5455
|
**
|
5248
5456
|
** ^If the argument to sqlite3_mutex_held() is a NULL pointer then
|
5249
5457
|
** the routine should return 1. This seems counter-intuitive since
|
5250
|
-
** clearly the mutex cannot be held if it does not exist. But
|
5458
|
+
** clearly the mutex cannot be held if it does not exist. But
|
5251
5459
|
** the reason the mutex does not exist is because the build is not
|
5252
5460
|
** using mutexes. And we do not want the assert() containing the
|
5253
5461
|
** call to sqlite3_mutex_held() to fail, so a non-zero return is
|
@@ -5370,7 +5578,8 @@ SQLITE_API int sqlite3_test_control(int op, ...);
|
|
5370
5578
|
#define SQLITE_TESTCTRL_ISKEYWORD 16
|
5371
5579
|
#define SQLITE_TESTCTRL_PGHDRSZ 17
|
5372
5580
|
#define SQLITE_TESTCTRL_SCRATCHMALLOC 18
|
5373
|
-
#define
|
5581
|
+
#define SQLITE_TESTCTRL_LOCALTIME_FAULT 19
|
5582
|
+
#define SQLITE_TESTCTRL_LAST 19
|
5374
5583
|
|
5375
5584
|
/*
|
5376
5585
|
** CAPI3REF: SQLite Runtime Status
|
@@ -5379,7 +5588,7 @@ SQLITE_API int sqlite3_test_control(int op, ...);
|
|
5379
5588
|
** about the performance of SQLite, and optionally to reset various
|
5380
5589
|
** highwater marks. ^The first argument is an integer code for
|
5381
5590
|
** the specific parameter to measure. ^(Recognized integer codes
|
5382
|
-
** are of the form [
|
5591
|
+
** are of the form [status parameters | SQLITE_STATUS_...].)^
|
5383
5592
|
** ^The current value of the parameter is returned into *pCurrent.
|
5384
5593
|
** ^The highest recorded value is returned in *pHighwater. ^If the
|
5385
5594
|
** resetFlag is true, then the highest record value is reset after
|
@@ -5406,12 +5615,13 @@ SQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetF
|
|
5406
5615
|
|
5407
5616
|
/*
|
5408
5617
|
** CAPI3REF: Status Parameters
|
5618
|
+
** KEYWORDS: {status parameters}
|
5409
5619
|
**
|
5410
5620
|
** These integer constants designate various run-time status parameters
|
5411
5621
|
** that can be returned by [sqlite3_status()].
|
5412
5622
|
**
|
5413
5623
|
** <dl>
|
5414
|
-
** ^(<dt>SQLITE_STATUS_MEMORY_USED</dt>
|
5624
|
+
** [[SQLITE_STATUS_MEMORY_USED]] ^(<dt>SQLITE_STATUS_MEMORY_USED</dt>
|
5415
5625
|
** <dd>This parameter is the current amount of memory checked out
|
5416
5626
|
** using [sqlite3_malloc()], either directly or indirectly. The
|
5417
5627
|
** figure includes calls made to [sqlite3_malloc()] by the application
|
@@ -5421,23 +5631,24 @@ SQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetF
|
|
5421
5631
|
** this parameter. The amount returned is the sum of the allocation
|
5422
5632
|
** sizes as reported by the xSize method in [sqlite3_mem_methods].</dd>)^
|
5423
5633
|
**
|
5424
|
-
** ^(<dt>SQLITE_STATUS_MALLOC_SIZE</dt>
|
5634
|
+
** [[SQLITE_STATUS_MALLOC_SIZE]] ^(<dt>SQLITE_STATUS_MALLOC_SIZE</dt>
|
5425
5635
|
** <dd>This parameter records the largest memory allocation request
|
5426
5636
|
** handed to [sqlite3_malloc()] or [sqlite3_realloc()] (or their
|
5427
5637
|
** internal equivalents). Only the value returned in the
|
5428
5638
|
** *pHighwater parameter to [sqlite3_status()] is of interest.
|
5429
5639
|
** The value written into the *pCurrent parameter is undefined.</dd>)^
|
5430
5640
|
**
|
5431
|
-
** ^(<dt>SQLITE_STATUS_MALLOC_COUNT</dt>
|
5641
|
+
** [[SQLITE_STATUS_MALLOC_COUNT]] ^(<dt>SQLITE_STATUS_MALLOC_COUNT</dt>
|
5432
5642
|
** <dd>This parameter records the number of separate memory allocations
|
5433
5643
|
** currently checked out.</dd>)^
|
5434
5644
|
**
|
5435
|
-
** ^(<dt>SQLITE_STATUS_PAGECACHE_USED</dt>
|
5645
|
+
** [[SQLITE_STATUS_PAGECACHE_USED]] ^(<dt>SQLITE_STATUS_PAGECACHE_USED</dt>
|
5436
5646
|
** <dd>This parameter returns the number of pages used out of the
|
5437
5647
|
** [pagecache memory allocator] that was configured using
|
5438
5648
|
** [SQLITE_CONFIG_PAGECACHE]. The
|
5439
5649
|
** value returned is in pages, not in bytes.</dd>)^
|
5440
5650
|
**
|
5651
|
+
** [[SQLITE_STATUS_PAGECACHE_OVERFLOW]]
|
5441
5652
|
** ^(<dt>SQLITE_STATUS_PAGECACHE_OVERFLOW</dt>
|
5442
5653
|
** <dd>This parameter returns the number of bytes of page cache
|
5443
5654
|
** allocation which could not be satisfied by the [SQLITE_CONFIG_PAGECACHE]
|
@@ -5447,13 +5658,13 @@ SQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetF
|
|
5447
5658
|
** [SQLITE_CONFIG_PAGECACHE]) and allocations that overflowed because
|
5448
5659
|
** no space was left in the page cache.</dd>)^
|
5449
5660
|
**
|
5450
|
-
** ^(<dt>SQLITE_STATUS_PAGECACHE_SIZE</dt>
|
5661
|
+
** [[SQLITE_STATUS_PAGECACHE_SIZE]] ^(<dt>SQLITE_STATUS_PAGECACHE_SIZE</dt>
|
5451
5662
|
** <dd>This parameter records the largest memory allocation request
|
5452
5663
|
** handed to [pagecache memory allocator]. Only the value returned in the
|
5453
5664
|
** *pHighwater parameter to [sqlite3_status()] is of interest.
|
5454
5665
|
** The value written into the *pCurrent parameter is undefined.</dd>)^
|
5455
5666
|
**
|
5456
|
-
** ^(<dt>SQLITE_STATUS_SCRATCH_USED</dt>
|
5667
|
+
** [[SQLITE_STATUS_SCRATCH_USED]] ^(<dt>SQLITE_STATUS_SCRATCH_USED</dt>
|
5457
5668
|
** <dd>This parameter returns the number of allocations used out of the
|
5458
5669
|
** [scratch memory allocator] configured using
|
5459
5670
|
** [SQLITE_CONFIG_SCRATCH]. The value returned is in allocations, not
|
@@ -5461,7 +5672,7 @@ SQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetF
|
|
5461
5672
|
** outstanding at time, this parameter also reports the number of threads
|
5462
5673
|
** using scratch memory at the same time.</dd>)^
|
5463
5674
|
**
|
5464
|
-
** ^(<dt>SQLITE_STATUS_SCRATCH_OVERFLOW</dt>
|
5675
|
+
** [[SQLITE_STATUS_SCRATCH_OVERFLOW]] ^(<dt>SQLITE_STATUS_SCRATCH_OVERFLOW</dt>
|
5465
5676
|
** <dd>This parameter returns the number of bytes of scratch memory
|
5466
5677
|
** allocation which could not be satisfied by the [SQLITE_CONFIG_SCRATCH]
|
5467
5678
|
** buffer and where forced to overflow to [sqlite3_malloc()]. The values
|
@@ -5471,13 +5682,13 @@ SQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetF
|
|
5471
5682
|
** slots were available.
|
5472
5683
|
** </dd>)^
|
5473
5684
|
**
|
5474
|
-
** ^(<dt>SQLITE_STATUS_SCRATCH_SIZE</dt>
|
5685
|
+
** [[SQLITE_STATUS_SCRATCH_SIZE]] ^(<dt>SQLITE_STATUS_SCRATCH_SIZE</dt>
|
5475
5686
|
** <dd>This parameter records the largest memory allocation request
|
5476
5687
|
** handed to [scratch memory allocator]. Only the value returned in the
|
5477
5688
|
** *pHighwater parameter to [sqlite3_status()] is of interest.
|
5478
5689
|
** The value written into the *pCurrent parameter is undefined.</dd>)^
|
5479
5690
|
**
|
5480
|
-
** ^(<dt>SQLITE_STATUS_PARSER_STACK</dt>
|
5691
|
+
** [[SQLITE_STATUS_PARSER_STACK]] ^(<dt>SQLITE_STATUS_PARSER_STACK</dt>
|
5481
5692
|
** <dd>This parameter records the deepest parser stack. It is only
|
5482
5693
|
** meaningful if SQLite is compiled with [YYTRACKMAXSTACKDEPTH].</dd>)^
|
5483
5694
|
** </dl>
|
@@ -5502,9 +5713,9 @@ SQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetF
|
|
5502
5713
|
** about a single [database connection]. ^The first argument is the
|
5503
5714
|
** database connection object to be interrogated. ^The second argument
|
5504
5715
|
** is an integer constant, taken from the set of
|
5505
|
-
** [
|
5716
|
+
** [SQLITE_DBSTATUS options], that
|
5506
5717
|
** determines the parameter to interrogate. The set of
|
5507
|
-
** [
|
5718
|
+
** [SQLITE_DBSTATUS options] is likely
|
5508
5719
|
** to grow in future releases of SQLite.
|
5509
5720
|
**
|
5510
5721
|
** ^The current value of the requested parameter is written into *pCur
|
@@ -5521,6 +5732,7 @@ SQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int r
|
|
5521
5732
|
|
5522
5733
|
/*
|
5523
5734
|
** CAPI3REF: Status Parameters for database connections
|
5735
|
+
** KEYWORDS: {SQLITE_DBSTATUS options}
|
5524
5736
|
**
|
5525
5737
|
** These constants are the available integer "verbs" that can be passed as
|
5526
5738
|
** the second argument to the [sqlite3_db_status()] interface.
|
@@ -5532,38 +5744,37 @@ SQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int r
|
|
5532
5744
|
** if a discontinued or unsupported verb is invoked.
|
5533
5745
|
**
|
5534
5746
|
** <dl>
|
5535
|
-
** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_USED</dt>
|
5747
|
+
** [[SQLITE_DBSTATUS_LOOKASIDE_USED]] ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_USED</dt>
|
5536
5748
|
** <dd>This parameter returns the number of lookaside memory slots currently
|
5537
5749
|
** checked out.</dd>)^
|
5538
5750
|
**
|
5539
|
-
** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_HIT</dt>
|
5751
|
+
** [[SQLITE_DBSTATUS_LOOKASIDE_HIT]] ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_HIT</dt>
|
5540
5752
|
** <dd>This parameter returns the number malloc attempts that were
|
5541
5753
|
** satisfied using lookaside memory. Only the high-water value is meaningful;
|
5542
|
-
** the current value is always zero.
|
5543
|
-
** checked out.</dd>)^
|
5754
|
+
** the current value is always zero.)^
|
5544
5755
|
**
|
5756
|
+
** [[SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE]]
|
5545
5757
|
** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE</dt>
|
5546
5758
|
** <dd>This parameter returns the number malloc attempts that might have
|
5547
5759
|
** been satisfied using lookaside memory but failed due to the amount of
|
5548
5760
|
** memory requested being larger than the lookaside slot size.
|
5549
5761
|
** Only the high-water value is meaningful;
|
5550
|
-
** the current value is always zero.
|
5551
|
-
** checked out.</dd>)^
|
5762
|
+
** the current value is always zero.)^
|
5552
5763
|
**
|
5764
|
+
** [[SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL]]
|
5553
5765
|
** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL</dt>
|
5554
5766
|
** <dd>This parameter returns the number malloc attempts that might have
|
5555
5767
|
** been satisfied using lookaside memory but failed due to all lookaside
|
5556
5768
|
** memory already being in use.
|
5557
5769
|
** Only the high-water value is meaningful;
|
5558
|
-
** the current value is always zero.
|
5559
|
-
** checked out.</dd>)^
|
5770
|
+
** the current value is always zero.)^
|
5560
5771
|
**
|
5561
|
-
** ^(<dt>SQLITE_DBSTATUS_CACHE_USED</dt>
|
5772
|
+
** [[SQLITE_DBSTATUS_CACHE_USED]] ^(<dt>SQLITE_DBSTATUS_CACHE_USED</dt>
|
5562
5773
|
** <dd>This parameter returns the approximate number of of bytes of heap
|
5563
5774
|
** memory used by all pager caches associated with the database connection.)^
|
5564
5775
|
** ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_USED is always 0.
|
5565
5776
|
**
|
5566
|
-
** ^(<dt>SQLITE_DBSTATUS_SCHEMA_USED</dt>
|
5777
|
+
** [[SQLITE_DBSTATUS_SCHEMA_USED]] ^(<dt>SQLITE_DBSTATUS_SCHEMA_USED</dt>
|
5567
5778
|
** <dd>This parameter returns the approximate number of of bytes of heap
|
5568
5779
|
** memory used to store the schema for all databases associated
|
5569
5780
|
** with the connection - main, temp, and any [ATTACH]-ed databases.)^
|
@@ -5572,7 +5783,7 @@ SQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int r
|
|
5572
5783
|
** [shared cache mode] being enabled.
|
5573
5784
|
** ^The highwater mark associated with SQLITE_DBSTATUS_SCHEMA_USED is always 0.
|
5574
5785
|
**
|
5575
|
-
** ^(<dt>SQLITE_DBSTATUS_STMT_USED</dt>
|
5786
|
+
** [[SQLITE_DBSTATUS_STMT_USED]] ^(<dt>SQLITE_DBSTATUS_STMT_USED</dt>
|
5576
5787
|
** <dd>This parameter returns the approximate number of of bytes of heap
|
5577
5788
|
** and lookaside memory used by all prepared statements associated with
|
5578
5789
|
** the database connection.)^
|
@@ -5594,7 +5805,7 @@ SQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int r
|
|
5594
5805
|
** CAPI3REF: Prepared Statement Status
|
5595
5806
|
**
|
5596
5807
|
** ^(Each prepared statement maintains various
|
5597
|
-
** [
|
5808
|
+
** [SQLITE_STMTSTATUS counters] that measure the number
|
5598
5809
|
** of times it has performed specific operations.)^ These counters can
|
5599
5810
|
** be used to monitor the performance characteristics of the prepared
|
5600
5811
|
** statements. For example, if the number of table steps greatly exceeds
|
@@ -5605,7 +5816,7 @@ SQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int r
|
|
5605
5816
|
** ^(This interface is used to retrieve and reset counter values from
|
5606
5817
|
** a [prepared statement]. The first argument is the prepared statement
|
5607
5818
|
** object to be interrogated. The second argument
|
5608
|
-
** is an integer code for a specific [
|
5819
|
+
** is an integer code for a specific [SQLITE_STMTSTATUS counter]
|
5609
5820
|
** to be interrogated.)^
|
5610
5821
|
** ^The current value of the requested counter is returned.
|
5611
5822
|
** ^If the resetFlg is true, then the counter is reset to zero after this
|
@@ -5617,24 +5828,25 @@ SQLITE_API int sqlite3_stmt_status(sqlite3_stmt*, int op,int resetFlg);
|
|
5617
5828
|
|
5618
5829
|
/*
|
5619
5830
|
** CAPI3REF: Status Parameters for prepared statements
|
5831
|
+
** KEYWORDS: {SQLITE_STMTSTATUS counter} {SQLITE_STMTSTATUS counters}
|
5620
5832
|
**
|
5621
5833
|
** These preprocessor macros define integer codes that name counter
|
5622
5834
|
** values associated with the [sqlite3_stmt_status()] interface.
|
5623
5835
|
** The meanings of the various counters are as follows:
|
5624
5836
|
**
|
5625
5837
|
** <dl>
|
5626
|
-
** <dt>SQLITE_STMTSTATUS_FULLSCAN_STEP</dt>
|
5838
|
+
** [[SQLITE_STMTSTATUS_FULLSCAN_STEP]] <dt>SQLITE_STMTSTATUS_FULLSCAN_STEP</dt>
|
5627
5839
|
** <dd>^This is the number of times that SQLite has stepped forward in
|
5628
5840
|
** a table as part of a full table scan. Large numbers for this counter
|
5629
5841
|
** may indicate opportunities for performance improvement through
|
5630
5842
|
** careful use of indices.</dd>
|
5631
5843
|
**
|
5632
|
-
** <dt>SQLITE_STMTSTATUS_SORT</dt>
|
5844
|
+
** [[SQLITE_STMTSTATUS_SORT]] <dt>SQLITE_STMTSTATUS_SORT</dt>
|
5633
5845
|
** <dd>^This is the number of sort operations that have occurred.
|
5634
5846
|
** A non-zero value in this counter may indicate an opportunity to
|
5635
5847
|
** improvement performance through careful use of indices.</dd>
|
5636
5848
|
**
|
5637
|
-
** <dt>SQLITE_STMTSTATUS_AUTOINDEX</dt>
|
5849
|
+
** [[SQLITE_STMTSTATUS_AUTOINDEX]] <dt>SQLITE_STMTSTATUS_AUTOINDEX</dt>
|
5638
5850
|
** <dd>^This is the number of rows inserted into transient indices that
|
5639
5851
|
** were created automatically in order to help joins run faster.
|
5640
5852
|
** A non-zero value in this counter may indicate an opportunity to
|
@@ -5685,6 +5897,7 @@ typedef struct sqlite3_pcache sqlite3_pcache;
|
|
5685
5897
|
** the application may discard the parameter after the call to
|
5686
5898
|
** [sqlite3_config()] returns.)^
|
5687
5899
|
**
|
5900
|
+
** [[the xInit() page cache method]]
|
5688
5901
|
** ^(The xInit() method is called once for each effective
|
5689
5902
|
** call to [sqlite3_initialize()])^
|
5690
5903
|
** (usually only once during the lifetime of the process). ^(The xInit()
|
@@ -5695,6 +5908,7 @@ typedef struct sqlite3_pcache sqlite3_pcache;
|
|
5695
5908
|
** built-in default page cache is used instead of the application defined
|
5696
5909
|
** page cache.)^
|
5697
5910
|
**
|
5911
|
+
** [[the xShutdown() page cache method]]
|
5698
5912
|
** ^The xShutdown() method is called by [sqlite3_shutdown()].
|
5699
5913
|
** It can be used to clean up
|
5700
5914
|
** any outstanding resources before process shutdown, if required.
|
@@ -5709,6 +5923,7 @@ typedef struct sqlite3_pcache sqlite3_pcache;
|
|
5709
5923
|
** ^SQLite will never invoke xInit() more than once without an intervening
|
5710
5924
|
** call to xShutdown().
|
5711
5925
|
**
|
5926
|
+
** [[the xCreate() page cache methods]]
|
5712
5927
|
** ^SQLite invokes the xCreate() method to construct a new cache instance.
|
5713
5928
|
** SQLite will typically create one cache instance for each open database file,
|
5714
5929
|
** though this is not guaranteed. ^The
|
@@ -5733,6 +5948,7 @@ typedef struct sqlite3_pcache sqlite3_pcache;
|
|
5733
5948
|
** ^Hence, a cache created with bPurgeable false will
|
5734
5949
|
** never contain any unpinned pages.
|
5735
5950
|
**
|
5951
|
+
** [[the xCachesize() page cache method]]
|
5736
5952
|
** ^(The xCachesize() method may be called at any time by SQLite to set the
|
5737
5953
|
** suggested maximum cache-size (number of pages stored by) the cache
|
5738
5954
|
** instance passed as the first argument. This is the value configured using
|
@@ -5740,14 +5956,16 @@ typedef struct sqlite3_pcache sqlite3_pcache;
|
|
5740
5956
|
** parameter, the implementation is not required to do anything with this
|
5741
5957
|
** value; it is advisory only.
|
5742
5958
|
**
|
5959
|
+
** [[the xPagecount() page cache methods]]
|
5743
5960
|
** The xPagecount() method must return the number of pages currently
|
5744
5961
|
** stored in the cache, both pinned and unpinned.
|
5745
5962
|
**
|
5963
|
+
** [[the xFetch() page cache methods]]
|
5746
5964
|
** The xFetch() method locates a page in the cache and returns a pointer to
|
5747
5965
|
** the page, or a NULL pointer.
|
5748
5966
|
** A "page", in this context, means a buffer of szPage bytes aligned at an
|
5749
5967
|
** 8-byte boundary. The page to be fetched is determined by the key. ^The
|
5750
|
-
**
|
5968
|
+
** minimum key value is 1. After it has been retrieved using xFetch, the page
|
5751
5969
|
** is considered to be "pinned".
|
5752
5970
|
**
|
5753
5971
|
** If the requested page is already in the page cache, then the page cache
|
@@ -5771,6 +5989,7 @@ typedef struct sqlite3_pcache sqlite3_pcache;
|
|
5771
5989
|
** attempt to unpin one or more cache pages by spilling the content of
|
5772
5990
|
** pinned pages to disk and synching the operating system disk cache.
|
5773
5991
|
**
|
5992
|
+
** [[the xUnpin() page cache method]]
|
5774
5993
|
** ^xUnpin() is called by SQLite with a pointer to a currently pinned page
|
5775
5994
|
** as its second argument. If the third parameter, discard, is non-zero,
|
5776
5995
|
** then the page must be evicted from the cache.
|
@@ -5783,6 +6002,7 @@ typedef struct sqlite3_pcache sqlite3_pcache;
|
|
5783
6002
|
** call to xUnpin() unpins the page regardless of the number of prior calls
|
5784
6003
|
** to xFetch().
|
5785
6004
|
**
|
6005
|
+
** [[the xRekey() page cache methods]]
|
5786
6006
|
** The xRekey() method is used to change the key value associated with the
|
5787
6007
|
** page passed as the second argument. If the cache
|
5788
6008
|
** previously contains an entry associated with newKey, it must be
|
@@ -5795,6 +6015,7 @@ typedef struct sqlite3_pcache sqlite3_pcache;
|
|
5795
6015
|
** of these pages are pinned, they are implicitly unpinned, meaning that
|
5796
6016
|
** they can be safely discarded.
|
5797
6017
|
**
|
6018
|
+
** [[the xDestroy() page cache method]]
|
5798
6019
|
** ^The xDestroy() method is used to delete a cache allocated by xCreate().
|
5799
6020
|
** All resources associated with the specified cache should be freed. ^After
|
5800
6021
|
** calling the xDestroy() method, SQLite considers the [sqlite3_pcache*]
|
@@ -5857,7 +6078,7 @@ typedef struct sqlite3_backup sqlite3_backup;
|
|
5857
6078
|
** There should be exactly one call to sqlite3_backup_finish() for each
|
5858
6079
|
** successful call to sqlite3_backup_init().
|
5859
6080
|
**
|
5860
|
-
** <b>sqlite3_backup_init()</b>
|
6081
|
+
** [[sqlite3_backup_init()]] <b>sqlite3_backup_init()</b>
|
5861
6082
|
**
|
5862
6083
|
** ^The D and N arguments to sqlite3_backup_init(D,N,S,M) are the
|
5863
6084
|
** [database connection] associated with the destination database
|
@@ -5884,7 +6105,7 @@ typedef struct sqlite3_backup sqlite3_backup;
|
|
5884
6105
|
** sqlite3_backup_finish() functions to perform the specified backup
|
5885
6106
|
** operation.
|
5886
6107
|
**
|
5887
|
-
** <b>sqlite3_backup_step()</b>
|
6108
|
+
** [[sqlite3_backup_step()]] <b>sqlite3_backup_step()</b>
|
5888
6109
|
**
|
5889
6110
|
** ^Function sqlite3_backup_step(B,N) will copy up to N pages between
|
5890
6111
|
** the source and destination databases specified by [sqlite3_backup] object B.
|
@@ -5941,7 +6162,7 @@ typedef struct sqlite3_backup sqlite3_backup;
|
|
5941
6162
|
** by the backup operation, then the backup database is automatically
|
5942
6163
|
** updated at the same time.
|
5943
6164
|
**
|
5944
|
-
** <b>sqlite3_backup_finish()</b>
|
6165
|
+
** [[sqlite3_backup_finish()]] <b>sqlite3_backup_finish()</b>
|
5945
6166
|
**
|
5946
6167
|
** When sqlite3_backup_step() has returned [SQLITE_DONE], or when the
|
5947
6168
|
** application wishes to abandon the backup operation, the application
|
@@ -5964,7 +6185,8 @@ typedef struct sqlite3_backup sqlite3_backup;
|
|
5964
6185
|
** is not a permanent error and does not affect the return value of
|
5965
6186
|
** sqlite3_backup_finish().
|
5966
6187
|
**
|
5967
|
-
**
|
6188
|
+
** [[sqlite3_backup__remaining()]] [[sqlite3_backup_pagecount()]]
|
6189
|
+
** <b>sqlite3_backup_remaining() and sqlite3_backup_pagecount()</b>
|
5968
6190
|
**
|
5969
6191
|
** ^Each call to sqlite3_backup_step() sets two values inside
|
5970
6192
|
** the [sqlite3_backup] object: the number of pages still to be backed
|
@@ -6255,9 +6477,189 @@ SQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int N);
|
|
6255
6477
|
** from SQL. ^The [sqlite3_wal_autocheckpoint()] interface and the
|
6256
6478
|
** [wal_autocheckpoint pragma] can be used to cause this interface to be
|
6257
6479
|
** run whenever the WAL reaches a certain size threshold.
|
6480
|
+
**
|
6481
|
+
** See also: [sqlite3_wal_checkpoint_v2()]
|
6258
6482
|
*/
|
6259
6483
|
SQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);
|
6260
6484
|
|
6485
|
+
/*
|
6486
|
+
** CAPI3REF: Checkpoint a database
|
6487
|
+
**
|
6488
|
+
** Run a checkpoint operation on WAL database zDb attached to database
|
6489
|
+
** handle db. The specific operation is determined by the value of the
|
6490
|
+
** eMode parameter:
|
6491
|
+
**
|
6492
|
+
** <dl>
|
6493
|
+
** <dt>SQLITE_CHECKPOINT_PASSIVE<dd>
|
6494
|
+
** Checkpoint as many frames as possible without waiting for any database
|
6495
|
+
** readers or writers to finish. Sync the db file if all frames in the log
|
6496
|
+
** are checkpointed. This mode is the same as calling
|
6497
|
+
** sqlite3_wal_checkpoint(). The busy-handler callback is never invoked.
|
6498
|
+
**
|
6499
|
+
** <dt>SQLITE_CHECKPOINT_FULL<dd>
|
6500
|
+
** This mode blocks (calls the busy-handler callback) until there is no
|
6501
|
+
** database writer and all readers are reading from the most recent database
|
6502
|
+
** snapshot. It then checkpoints all frames in the log file and syncs the
|
6503
|
+
** database file. This call blocks database writers while it is running,
|
6504
|
+
** but not database readers.
|
6505
|
+
**
|
6506
|
+
** <dt>SQLITE_CHECKPOINT_RESTART<dd>
|
6507
|
+
** This mode works the same way as SQLITE_CHECKPOINT_FULL, except after
|
6508
|
+
** checkpointing the log file it blocks (calls the busy-handler callback)
|
6509
|
+
** until all readers are reading from the database file only. This ensures
|
6510
|
+
** that the next client to write to the database file restarts the log file
|
6511
|
+
** from the beginning. This call blocks database writers while it is running,
|
6512
|
+
** but not database readers.
|
6513
|
+
** </dl>
|
6514
|
+
**
|
6515
|
+
** If pnLog is not NULL, then *pnLog is set to the total number of frames in
|
6516
|
+
** the log file before returning. If pnCkpt is not NULL, then *pnCkpt is set to
|
6517
|
+
** the total number of checkpointed frames (including any that were already
|
6518
|
+
** checkpointed when this function is called). *pnLog and *pnCkpt may be
|
6519
|
+
** populated even if sqlite3_wal_checkpoint_v2() returns other than SQLITE_OK.
|
6520
|
+
** If no values are available because of an error, they are both set to -1
|
6521
|
+
** before returning to communicate this to the caller.
|
6522
|
+
**
|
6523
|
+
** All calls obtain an exclusive "checkpoint" lock on the database file. If
|
6524
|
+
** any other process is running a checkpoint operation at the same time, the
|
6525
|
+
** lock cannot be obtained and SQLITE_BUSY is returned. Even if there is a
|
6526
|
+
** busy-handler configured, it will not be invoked in this case.
|
6527
|
+
**
|
6528
|
+
** The SQLITE_CHECKPOINT_FULL and RESTART modes also obtain the exclusive
|
6529
|
+
** "writer" lock on the database file. If the writer lock cannot be obtained
|
6530
|
+
** immediately, and a busy-handler is configured, it is invoked and the writer
|
6531
|
+
** lock retried until either the busy-handler returns 0 or the lock is
|
6532
|
+
** successfully obtained. The busy-handler is also invoked while waiting for
|
6533
|
+
** database readers as described above. If the busy-handler returns 0 before
|
6534
|
+
** the writer lock is obtained or while waiting for database readers, the
|
6535
|
+
** checkpoint operation proceeds from that point in the same way as
|
6536
|
+
** SQLITE_CHECKPOINT_PASSIVE - checkpointing as many frames as possible
|
6537
|
+
** without blocking any further. SQLITE_BUSY is returned in this case.
|
6538
|
+
**
|
6539
|
+
** If parameter zDb is NULL or points to a zero length string, then the
|
6540
|
+
** specified operation is attempted on all WAL databases. In this case the
|
6541
|
+
** values written to output parameters *pnLog and *pnCkpt are undefined. If
|
6542
|
+
** an SQLITE_BUSY error is encountered when processing one or more of the
|
6543
|
+
** attached WAL databases, the operation is still attempted on any remaining
|
6544
|
+
** attached databases and SQLITE_BUSY is returned to the caller. If any other
|
6545
|
+
** error occurs while processing an attached database, processing is abandoned
|
6546
|
+
** and the error code returned to the caller immediately. If no error
|
6547
|
+
** (SQLITE_BUSY or otherwise) is encountered while processing the attached
|
6548
|
+
** databases, SQLITE_OK is returned.
|
6549
|
+
**
|
6550
|
+
** If database zDb is the name of an attached database that is not in WAL
|
6551
|
+
** mode, SQLITE_OK is returned and both *pnLog and *pnCkpt set to -1. If
|
6552
|
+
** zDb is not NULL (or a zero length string) and is not the name of any
|
6553
|
+
** attached database, SQLITE_ERROR is returned to the caller.
|
6554
|
+
*/
|
6555
|
+
SQLITE_API int sqlite3_wal_checkpoint_v2(
|
6556
|
+
sqlite3 *db, /* Database handle */
|
6557
|
+
const char *zDb, /* Name of attached database (or NULL) */
|
6558
|
+
int eMode, /* SQLITE_CHECKPOINT_* value */
|
6559
|
+
int *pnLog, /* OUT: Size of WAL log in frames */
|
6560
|
+
int *pnCkpt /* OUT: Total number of frames checkpointed */
|
6561
|
+
);
|
6562
|
+
|
6563
|
+
/*
|
6564
|
+
** CAPI3REF: Checkpoint operation parameters
|
6565
|
+
**
|
6566
|
+
** These constants can be used as the 3rd parameter to
|
6567
|
+
** [sqlite3_wal_checkpoint_v2()]. See the [sqlite3_wal_checkpoint_v2()]
|
6568
|
+
** documentation for additional information about the meaning and use of
|
6569
|
+
** each of these values.
|
6570
|
+
*/
|
6571
|
+
#define SQLITE_CHECKPOINT_PASSIVE 0
|
6572
|
+
#define SQLITE_CHECKPOINT_FULL 1
|
6573
|
+
#define SQLITE_CHECKPOINT_RESTART 2
|
6574
|
+
|
6575
|
+
/*
|
6576
|
+
** CAPI3REF: Virtual Table Interface Configuration
|
6577
|
+
**
|
6578
|
+
** This function may be called by either the [xConnect] or [xCreate] method
|
6579
|
+
** of a [virtual table] implementation to configure
|
6580
|
+
** various facets of the virtual table interface.
|
6581
|
+
**
|
6582
|
+
** If this interface is invoked outside the context of an xConnect or
|
6583
|
+
** xCreate virtual table method then the behavior is undefined.
|
6584
|
+
**
|
6585
|
+
** At present, there is only one option that may be configured using
|
6586
|
+
** this function. (See [SQLITE_VTAB_CONSTRAINT_SUPPORT].) Further options
|
6587
|
+
** may be added in the future.
|
6588
|
+
*/
|
6589
|
+
SQLITE_API int sqlite3_vtab_config(sqlite3*, int op, ...);
|
6590
|
+
|
6591
|
+
/*
|
6592
|
+
** CAPI3REF: Virtual Table Configuration Options
|
6593
|
+
**
|
6594
|
+
** These macros define the various options to the
|
6595
|
+
** [sqlite3_vtab_config()] interface that [virtual table] implementations
|
6596
|
+
** can use to customize and optimize their behavior.
|
6597
|
+
**
|
6598
|
+
** <dl>
|
6599
|
+
** <dt>SQLITE_VTAB_CONSTRAINT_SUPPORT
|
6600
|
+
** <dd>Calls of the form
|
6601
|
+
** [sqlite3_vtab_config](db,SQLITE_VTAB_CONSTRAINT_SUPPORT,X) are supported,
|
6602
|
+
** where X is an integer. If X is zero, then the [virtual table] whose
|
6603
|
+
** [xCreate] or [xConnect] method invoked [sqlite3_vtab_config()] does not
|
6604
|
+
** support constraints. In this configuration (which is the default) if
|
6605
|
+
** a call to the [xUpdate] method returns [SQLITE_CONSTRAINT], then the entire
|
6606
|
+
** statement is rolled back as if [ON CONFLICT | OR ABORT] had been
|
6607
|
+
** specified as part of the users SQL statement, regardless of the actual
|
6608
|
+
** ON CONFLICT mode specified.
|
6609
|
+
**
|
6610
|
+
** If X is non-zero, then the virtual table implementation guarantees
|
6611
|
+
** that if [xUpdate] returns [SQLITE_CONSTRAINT], it will do so before
|
6612
|
+
** any modifications to internal or persistent data structures have been made.
|
6613
|
+
** If the [ON CONFLICT] mode is ABORT, FAIL, IGNORE or ROLLBACK, SQLite
|
6614
|
+
** is able to roll back a statement or database transaction, and abandon
|
6615
|
+
** or continue processing the current SQL statement as appropriate.
|
6616
|
+
** If the ON CONFLICT mode is REPLACE and the [xUpdate] method returns
|
6617
|
+
** [SQLITE_CONSTRAINT], SQLite handles this as if the ON CONFLICT mode
|
6618
|
+
** had been ABORT.
|
6619
|
+
**
|
6620
|
+
** Virtual table implementations that are required to handle OR REPLACE
|
6621
|
+
** must do so within the [xUpdate] method. If a call to the
|
6622
|
+
** [sqlite3_vtab_on_conflict()] function indicates that the current ON
|
6623
|
+
** CONFLICT policy is REPLACE, the virtual table implementation should
|
6624
|
+
** silently replace the appropriate rows within the xUpdate callback and
|
6625
|
+
** return SQLITE_OK. Or, if this is not possible, it may return
|
6626
|
+
** SQLITE_CONSTRAINT, in which case SQLite falls back to OR ABORT
|
6627
|
+
** constraint handling.
|
6628
|
+
** </dl>
|
6629
|
+
*/
|
6630
|
+
#define SQLITE_VTAB_CONSTRAINT_SUPPORT 1
|
6631
|
+
|
6632
|
+
/*
|
6633
|
+
** CAPI3REF: Determine The Virtual Table Conflict Policy
|
6634
|
+
**
|
6635
|
+
** This function may only be called from within a call to the [xUpdate] method
|
6636
|
+
** of a [virtual table] implementation for an INSERT or UPDATE operation. ^The
|
6637
|
+
** value returned is one of [SQLITE_ROLLBACK], [SQLITE_IGNORE], [SQLITE_FAIL],
|
6638
|
+
** [SQLITE_ABORT], or [SQLITE_REPLACE], according to the [ON CONFLICT] mode
|
6639
|
+
** of the SQL statement that triggered the call to the [xUpdate] method of the
|
6640
|
+
** [virtual table].
|
6641
|
+
*/
|
6642
|
+
SQLITE_API int sqlite3_vtab_on_conflict(sqlite3 *);
|
6643
|
+
|
6644
|
+
/*
|
6645
|
+
** CAPI3REF: Conflict resolution modes
|
6646
|
+
**
|
6647
|
+
** These constants are returned by [sqlite3_vtab_on_conflict()] to
|
6648
|
+
** inform a [virtual table] implementation what the [ON CONFLICT] mode
|
6649
|
+
** is for the SQL statement being evaluated.
|
6650
|
+
**
|
6651
|
+
** Note that the [SQLITE_IGNORE] constant is also used as a potential
|
6652
|
+
** return value from the [sqlite3_set_authorizer()] callback and that
|
6653
|
+
** [SQLITE_ABORT] is also a [result code].
|
6654
|
+
*/
|
6655
|
+
#define SQLITE_ROLLBACK 1
|
6656
|
+
/* #define SQLITE_IGNORE 2 // Also used by sqlite3_authorizer() callback */
|
6657
|
+
#define SQLITE_FAIL 3
|
6658
|
+
/* #define SQLITE_ABORT 4 // Also an error code */
|
6659
|
+
#define SQLITE_REPLACE 5
|
6660
|
+
|
6661
|
+
|
6662
|
+
|
6261
6663
|
/*
|
6262
6664
|
** Undo the hack that converts floating point types to integer for
|
6263
6665
|
** builds on processors without floating point support.
|