rhodes 5.5.15 → 5.5.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +48 -13
- data/doc/oss/WM_CE_Installation_And_Build_Guidelines.md +1 -1
- data/lib/commonAPI/barcode/ext.yml +6 -2
- data/lib/commonAPI/barcode/ext/barcode.xml +1 -1
- data/lib/commonAPI/barcode/ext/build.bat +8 -0
- data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro +90 -0
- data/lib/commonAPI/barcode/ext/platform/qt/Rakefile +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/barcode.qrc +10 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/buttonBack.png +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/buttonRetry.png +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/buttonSave.png +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/resources/scanner_sound.wav +0 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeController.cpp +40 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeController.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogBuilder.h +52 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogView.cpp +175 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/BarcodeDialogView.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/Barcode_impl.cpp +109 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/decoderthread.cpp +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/decoderthread.h +29 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/CameraImageWrapper.cpp +131 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/CameraImageWrapper.h +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing.h +173 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing.pri +277 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing_global.h +13 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/imagehandler.cpp +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/imagehandler.h +23 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/qzxing.cpp +303 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigInteger.cc +405 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigInteger.hh +215 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerAlgorithms.cc +70 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerAlgorithms.hh +25 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerLibrary.hh +8 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerUtils.cc +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigIntegerUtils.hh +72 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsigned.cc +697 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsigned.hh +418 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsignedInABase.cc +125 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/BigUnsignedInABase.hh +122 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/ChangeLog +146 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/NumberlikeArray.hh +177 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/bigint/README +71 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/win32/zxing/iconv.h +14 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/win32/zxing/msvc/stdint.h +247 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/win32/zxing/win_iconv.c +2035 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BarcodeFormat.cpp +40 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BarcodeFormat.h +60 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Binarizer.cpp +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Binarizer.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BinaryBitmap.cpp +70 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/BinaryBitmap.h +56 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ChecksumException.cpp +28 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ChecksumException.h +34 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/DecodeHints.cpp +148 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/DecodeHints.h +85 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Exception.cpp +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Exception.h +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/FormatException.cpp +41 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/FormatException.h +37 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/IllegalStateException.h +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/InvertedLuminanceSource.cpp +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/InvertedLuminanceSource.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/LuminanceSource.cpp +86 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/LuminanceSource.h +59 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/MultiFormatReader.cpp +124 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/MultiFormatReader.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/NotFoundException.h +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Reader.cpp +31 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Reader.h +40 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ReaderException.h +37 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Result.cpp +66 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/Result.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultIO.cpp +34 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPoint.cpp +108 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPoint.h +55 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPointCallback.cpp +26 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ResultPointCallback.h +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/WriterException.h +17 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/ZXing.h +140 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecDetectorResult.cpp +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecDetectorResult.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecReader.cpp +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/AztecReader.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/decoder/AztecDecoder.cpp +495 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/decoder/Decoder.h +69 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/detector/AztecDetector.cpp +548 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/aztec/detector/Detector.h +92 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Array.h +173 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitArray.cpp +237 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitArray.h +97 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitArrayIO.cpp +31 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitMatrix.cpp +143 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitMatrix.h +91 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitSource.cpp +76 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/BitSource.h +74 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/CharacterSetECI.cpp +104 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/CharacterSetECI.h +53 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Counted.h +140 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DecoderResult.cpp +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DecoderResult.h +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DetectorResult.cpp +39 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/DetectorResult.h +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GlobalHistogramBinarizer.cpp +212 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GlobalHistogramBinarizer.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleLuminanceSource.cpp +80 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleLuminanceSource.h +53 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleRotatedLuminanceSource.cpp +81 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GreyscaleRotatedLuminanceSource.h +46 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GridSampler.cpp +122 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/GridSampler.h +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/HybridBinarizer.cpp +226 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/HybridBinarizer.h +67 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/IllegalArgumentException.cpp +27 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/IllegalArgumentException.h +36 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/PerspectiveTransform.cpp +107 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/PerspectiveTransform.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Point.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Str.cpp +61 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/Str.h +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/StringUtils.cpp +198 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/StringUtils.h +52 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/JavaMath.h +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/MathUtils.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/MonochromeRectangleDetector.cpp +175 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/MonochromeRectangleDetector.h +62 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/WhiteRectangleDetector.cpp +330 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/detector/WhiteRectangleDetector.h +59 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGF.cpp +150 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGF.h +73 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGFPoly.cpp +218 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/GenericGFPoly.h +56 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonDecoder.cpp +174 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonDecoder.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonException.cpp +30 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/common/reedsolomon/ReedSolomonException.h +33 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/DataMatrixReader.cpp +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/DataMatrixReader.h +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/DataMatrixVersion.cpp +199 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/Version.h +87 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/BitMatrixParser.h +59 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataBlock.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixBitMatrixParser.cpp +361 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixDataBlock.cpp +113 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixDecodedBitStreamParser.cpp +416 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DataMatrixDecoder.cpp +93 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/DecodedBitStreamParser.h +104 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/decoder/Decoder.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/CornerPoint.h +43 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DataMatrixCornerPoint.cpp +46 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DataMatrixDetector.cpp +447 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DataMatrixDetectorException.cpp +23 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/Detector.h +94 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/datamatrix/detector/DetectorException.h +23 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/ByQuadrantReader.cpp +75 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/ByQuadrantReader.h +42 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/GenericMultipleBarcodeReader.cpp +137 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/GenericMultipleBarcodeReader.h +51 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/MultipleBarcodeReader.cpp +29 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/MultipleBarcodeReader.h +41 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/QRCodeMultiReader.cpp +58 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/QRCodeMultiReader.h +36 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiDetector.cpp +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiDetector.h +37 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiFinderPatternFinder.cpp +236 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/multi/qrcode/detector/MultiFinderPatternFinder.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/CodaBarReader.cpp +340 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/CodaBarReader.h +57 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code128Reader.cpp +497 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code128Reader.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code39Reader.cpp +329 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code39Reader.h +63 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code93Reader.cpp +293 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/Code93Reader.h +58 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN13Reader.cpp +85 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN13Reader.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN8Reader.cpp +65 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/EAN8Reader.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/ITFReader.cpp +337 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/ITFReader.h +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatOneDReader.cpp +96 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatOneDReader.h +38 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatUPCEANReader.cpp +110 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/MultiFormatUPCEANReader.h +41 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDReader.cpp +228 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDReader.h +81 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDResultPoint.cpp +28 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/OneDResultPoint.h +35 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCAReader.cpp +71 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCAReader.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEANReader.cpp +309 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEANReader.h +88 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEReader.cpp +146 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/oned/UPCEReader.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/PDF417Reader.cpp +170 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/PDF417Reader.h +49 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/BitMatrixParser.h +84 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/DecodedBitStreamParser.h +84 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/Decoder.h +62 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/PDF417BitMatrixParser.cpp +997 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/PDF417DecodedBitStreamParser.cpp +563 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/PDF417Decoder.cpp +118 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ErrorCorrection.cpp +214 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ErrorCorrection.h +71 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusGF.cpp +120 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusGF.h +72 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusPoly.cpp +284 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/decoder/ec/ModulusPoly.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/Detector.h +106 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/LinesSampler.cpp +719 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/LinesSampler.h +122 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/pdf417/detector/PDF417Detector.cpp +664 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/ErrorCorrectionLevel.h +55 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/FormatInformation.h +54 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRCodeReader.cpp +52 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRCodeReader.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRErrorCorrectionLevel.cpp +70 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRFormatInformation.cpp +117 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/QRVersion.cpp +566 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/Version.h +86 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/BitMatrixParser.h +56 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/DataBlock.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/DataMask.h +50 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/DecodedBitStreamParser.h +72 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/Decoder.h +46 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/Mode.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRBitMatrixParser.cpp +183 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDataBlock.cpp +118 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDataMask.cpp +159 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDecodedBitStreamParser.cpp +433 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRDecoder.cpp +107 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/decoder/QRMode.cpp +118 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/AlignmentPattern.h +45 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/AlignmentPatternFinder.h +68 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/Detector.h +69 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/FinderPattern.h +48 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/FinderPatternFinder.h +80 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/FinderPatternInfo.h +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRAlignmentPattern.cpp +47 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRAlignmentPatternFinder.cpp +208 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRDetector.cpp +315 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRFinderPattern.cpp +69 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRFinderPatternFinder.cpp +638 -0
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/zxing/zxing/qrcode/detector/QRFinderPatternInfo.cpp +41 -0
- data/lib/commonAPI/coreapi/ext.yml +1 -1
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/network/Network.java +21 -7
- data/lib/commonAPI/coreapi/ext/platform/qt/coreapi.pro +10 -0
- data/lib/commonAPI/coreapi/ext/platform/wm/src/Registry.cpp +57 -7
- data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.cpp +11 -0
- data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.h +2 -0
- data/lib/commonAPI/coreapi/ext/shared/qt/NavbarImpl.cpp +1 -1
- data/lib/commonAPI/coreapi/ext/system.xml +3 -0
- data/lib/commonAPI/coreapi/ext/webview.xml +0 -2
- data/lib/commonAPI/coreapi/public/api/rhonodejsapi.js +921 -0
- data/lib/commonAPI/mediacapture/ext.yml +1 -0
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +3 -2
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraRhoListener.java +260 -230
- data/lib/commonAPI/mediacapture/ext/platform/qt/MediaCapture.pro +17 -5
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/buttonBack.png +0 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/mediacapture.qrc +1 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CCameraData.cpp +11 -4
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CCameraData.h +4 -7
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CameraDialogView.h +1 -6
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CameraRefresher.h +54 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/Camera_impl.cpp +15 -21
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/ImageFilenameGetterResult.h +7 -2
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/cameradialogview.cpp +34 -32
- data/lib/extensions/zlib/ext/zlib.pro +11 -0
- data/platform/android/Rhodes/jni/src/fileapi.cpp +36 -22
- data/platform/iphone/Classes/SimpleMainView.m +1 -1
- data/platform/shared/api_generator/MethodResult.cpp +22 -7
- data/platform/shared/api_generator/MethodResult.h +3 -1
- data/platform/shared/api_generator/iphone/CMethodResult.m +6 -2
- data/platform/shared/api_generator/js_helpers.cpp +19 -0
- data/platform/shared/api_generator/js_helpers.h +23 -0
- data/platform/shared/common/RhoConf.cpp +0 -1
- data/platform/shared/common/RhoPort.h +3 -0
- data/platform/shared/common/RhodesApp.cpp +46 -11
- data/platform/shared/common/RhodesApp.h +7 -0
- data/platform/shared/common/RhodesAppBase.cpp +5 -1
- data/platform/shared/common/RhodesAppBase.h +8 -1
- data/platform/shared/common/ThreadQueue.h +1 -1
- data/platform/shared/common/map/BaseMapEngine.cpp +2 -0
- data/platform/shared/net/HttpServer.cpp +0 -1
- data/platform/shared/qt/RhoSimulator.pro +11 -0
- data/platform/shared/qt/RhoSimulator_dev.pro +12 -2
- data/platform/shared/qt/curl/curl.pro +10 -0
- data/platform/shared/qt/rhodes/guithreadfunchelper.h +29 -0
- data/platform/shared/qt/rhodes/iexecutable.h +9 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +10 -21
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +1 -1
- data/platform/shared/qt/rhodes/impl/QtSystemImpl.cpp +15 -1
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +7 -7
- data/platform/shared/qt/rhodes/mainwindowinterface.h +12 -0
- data/platform/shared/qt/rhodes/newVersion/DateTimeDialog.cpp +96 -0
- data/platform/shared/qt/rhodes/newVersion/DateTimeDialog.h +54 -0
- data/platform/shared/qt/rhodes/newVersion/ExternalWebView.cpp +45 -0
- data/platform/shared/qt/rhodes/newVersion/ExternalWebView.h +47 -0
- data/platform/shared/qt/rhodes/newVersion/QWebEngineViewSelectionSuppressor.h +103 -0
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.cpp +1181 -0
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.h +194 -0
- data/platform/shared/qt/rhodes/newVersion/QtNativeTabBar.cpp +107 -0
- data/platform/shared/qt/rhodes/newVersion/QtNativeTabBar.h +40 -0
- data/platform/shared/qt/rhodes/newVersion/RhoNativeApiCall.cpp +51 -0
- data/platform/shared/qt/rhodes/newVersion/RhoNativeApiCall.h +52 -0
- data/platform/shared/qt/rhodes/newVersion/main.cpp +280 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebenginepage.cpp +19 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebenginepage.h +21 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebengineview.cpp +6 -0
- data/platform/shared/qt/rhodes/newVersion/qtwebengineview.h +18 -0
- data/platform/shared/qt/rhodes/{DateTimeDialog.cpp → oldVersion/DateTimeDialog.cpp} +0 -0
- data/platform/shared/qt/rhodes/{DateTimeDialog.h → oldVersion/DateTimeDialog.h} +0 -0
- data/platform/shared/qt/rhodes/{DateTimeDialog.ui → oldVersion/DateTimeDialog.ui} +0 -0
- data/platform/shared/qt/rhodes/{ExternalWebView.cpp → oldVersion/ExternalWebView.cpp} +0 -0
- data/platform/shared/qt/rhodes/{ExternalWebView.h → oldVersion/ExternalWebView.h} +0 -0
- data/platform/shared/qt/rhodes/{ExternalWebView.ui → oldVersion/ExternalWebView.ui} +0 -0
- data/platform/shared/qt/rhodes/{QtMainWindow.cpp → oldVersion/QtMainWindow.cpp} +4 -1
- data/platform/shared/qt/rhodes/{QtMainWindow.h → oldVersion/QtMainWindow.h} +8 -5
- data/platform/shared/qt/rhodes/{QtMainWindow.ui → oldVersion/QtMainWindow.ui} +0 -0
- data/platform/shared/qt/rhodes/{QtNativeTabBar.cpp → oldVersion/QtNativeTabBar.cpp} +0 -0
- data/platform/shared/qt/rhodes/{QtNativeTabBar.h → oldVersion/QtNativeTabBar.h} +0 -0
- data/platform/shared/qt/rhodes/{QtWebInspector.cpp → oldVersion/QtWebInspector.cpp} +0 -0
- data/platform/shared/qt/rhodes/{QtWebInspector.h → oldVersion/QtWebInspector.h} +0 -0
- data/platform/shared/qt/rhodes/{QtWebInspector.ui → oldVersion/QtWebInspector.ui} +0 -0
- data/platform/shared/qt/rhodes/{QtWebPage.cpp → oldVersion/QtWebPage.cpp} +0 -0
- data/platform/shared/qt/rhodes/{QtWebPage.h → oldVersion/QtWebPage.h} +0 -0
- data/platform/shared/qt/rhodes/{RhoNativeApiCall.cpp → oldVersion/RhoNativeApiCall.cpp} +0 -0
- data/platform/shared/qt/rhodes/{RhoNativeApiCall.h → oldVersion/RhoNativeApiCall.h} +0 -0
- data/platform/shared/qt/rhodes/{main.cpp → oldVersion/main.cpp} +2 -0
- data/platform/shared/qt/rhodes/{qkineticscroller.cpp → oldVersion/qkineticscroller.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qkineticscroller.h → oldVersion/qkineticscroller.h} +0 -0
- data/platform/shared/qt/rhodes/{qkineticscroller_p.h → oldVersion/qkineticscroller_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtflickgesture.cpp → oldVersion/qtflickgesture.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtflickgesture_p.h → oldVersion/qtflickgesture_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscroller.cpp → oldVersion/qtscroller.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscroller.h → oldVersion/qtscroller.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscroller_p.h → oldVersion/qtscroller_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerfilter.cpp → oldVersion/qtscrollerfilter.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerfilter_p.h → oldVersion/qtscrollerfilter_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerproperties.cpp → oldVersion/qtscrollerproperties.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerproperties.h → oldVersion/qtscrollerproperties.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollerproperties_p.h → oldVersion/qtscrollerproperties_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollevent.cpp → oldVersion/qtscrollevent.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollevent.h → oldVersion/qtscrollevent.h} +0 -0
- data/platform/shared/qt/rhodes/{qtscrollevent_p.h → oldVersion/qtscrollevent_p.h} +0 -0
- data/platform/shared/qt/rhodes/{qwebviewkineticscroller.cpp → oldVersion/qwebviewkineticscroller.cpp} +0 -0
- data/platform/shared/qt/rhodes/{qwebviewkineticscroller.h → oldVersion/qwebviewkineticscroller.h} +0 -0
- data/platform/shared/qt/rhodes/{qwebviewselectionsuppressor.h → oldVersion/qwebviewselectionsuppressor.h} +0 -0
- data/platform/shared/qt/rhodes/rhodes.pro +92 -47
- data/platform/shared/qt/rholib/rholib.pro +32 -19
- data/platform/shared/qt/rubylib/rubylib.pro +12 -0
- data/platform/shared/qt/sqlite3/sqlite3.pro +11 -1
- data/platform/shared/qt/syncengine/syncengine.pro +10 -0
- data/platform/shared/ruby/eval.c +2 -4
- data/platform/shared/ruby/eval_intern.h +12 -0
- data/platform/shared/ruby/ext/rho/extensions.c +6 -2
- data/platform/shared/ruby/include/ruby/missing.h +6 -4
- data/platform/shared/ruby/io.c +27 -0
- data/platform/shared/ruby/numeric.c +5 -2
- data/platform/shared/ruby/time.c +4 -0
- data/platform/shared/ruby/win32/win32 backup.c +5808 -0
- data/platform/shared/ruby/win32/win32.c +2254 -2131
- data/platform/shared/unzip/deflate.cpp +6 -1
- data/platform/shared/unzip/gunzip.cpp +1 -1
- data/platform/shared/unzip/unzip.cpp +3 -6
- data/platform/shared/unzip/zip.cpp +1 -25
- data/platform/shared/unzip/zutil.cpp +1 -1
- data/platform/shared/unzip/zutil.h +1 -1
- data/platform/win32/RhoSimulator/rho/Databases/Databases.db +0 -0
- data/platform/win32/RhoSimulator/rho/WebpageIcons.db +0 -0
- data/platform/win32/RhoSimulator/rho/rholog.txt_pos +0 -0
- data/platform/win32/RhoSimulator/rhosimulator/Databases/Databases.db +0 -0
- data/platform/win32/RhoSimulator/rhosimulator/WebpageIcons.db +0 -0
- data/platform/win32/RhoSimulator/rhosimulator/rholog.txt_pos +0 -0
- data/platform/wm/build/build_inf.js +7 -3
- data/platform/wm/build/wm.rake +96 -30
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +3 -1
- data/rakefile.rb +48 -13
- data/res/generators/rhogen.rb +87 -8
- data/res/generators/templates/api/cpp/montana_js_wrap.cpp +1 -1
- data/res/generators/templates/application/nodejs/main.js +501 -0
- data/res/generators/templates/application/nodejs/rhoapp.js +71 -0
- data/res/generators/templates/application/nodejs/server/app.js +19 -0
- data/res/generators/templates/application/nodejs/server/package.json +16 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.css +587 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.min.css +6 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap-theme.min.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.css +6757 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.min.css +6 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/css/bootstrap.min.css.map +1 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.eot +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.svg +288 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/js/bootstrap.js +2377 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/js/bootstrap.min.js +7 -0
- data/res/generators/templates/application/nodejs/server/public/bootstrap-3.3.7/js/npm.js +13 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/back_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/back_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/back_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/forward_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/forward_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/forward_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/gears.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/gears@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/gears@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/home_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/home_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/home_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/sync_btn.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/sync_btn@2x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/images/bar/sync_btn@3x.png +0 -0
- data/res/generators/templates/application/nodejs/server/public/jquery/jquery-3.1.1.min.js +4 -0
- data/res/generators/templates/application/nodejs/server/public/jquery/jquery-3.1.1.min.map +1 -0
- data/res/generators/templates/application/nodejs_build.yml +76 -0
- data/res/generators/templates/application/nodejs_rhoconfig.txt +137 -0
- data/version +1 -1
- metadata +345 -77
- data/platform/win32/RhoSimulator/D3Dcompiler_46.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Core.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Gui.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Multimedia.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5MultimediaWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Network.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5OpenGL.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5PrintSupport.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Qml.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Quick.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Sensors.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Sql.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5V8.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebKit.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebKitWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Widgets.dll +0 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/RhoSimulator/icudt52.dll +0 -0
- data/platform/win32/RhoSimulator/icuin52.dll +0 -0
- data/platform/win32/RhoSimulator/icuuc52.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qgif.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qico.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qjpeg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qmng.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qsvg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtga.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtiff.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qwbmp.dll +0 -0
- data/platform/win32/RhoSimulator/libEGL.dll +0 -0
- data/platform/win32/RhoSimulator/libGLESv2.dll +0 -0
- data/platform/win32/RhoSimulator/libeay32.dll +0 -0
- data/platform/win32/RhoSimulator/msvcp110.dll +0 -0
- data/platform/win32/RhoSimulator/msvcr110.dll +0 -0
- data/platform/win32/RhoSimulator/platforms/qwindows.dll +0 -0
- data/platform/win32/RhoSimulator/ssleay32.dll +0 -0
- data/platform/win32/RhoSimulator/vccorlib110.dll +0 -0
- data/platform/win32/RhoSimulator/vcomp110.dll +0 -0
@@ -1,4 +1,13 @@
|
|
1
1
|
QT -= core
|
2
|
+
greaterThan(QT_VERSION, 5.6.0): {
|
3
|
+
CONFIG += c++14
|
4
|
+
DEFINES += CPP_ELEVEN
|
5
|
+
DEFINES += RHODES_VERSION_2
|
6
|
+
}
|
7
|
+
|
8
|
+
lessThan(QT_VERSION, 5.6.0): {
|
9
|
+
DEFINES += RHODES_VERSION_1
|
10
|
+
}
|
2
11
|
|
3
12
|
TARGET = zlib
|
4
13
|
TEMPLATE = lib
|
@@ -45,6 +54,8 @@ win32 {
|
|
45
54
|
QMAKE_CXXFLAGS_WARN_ON += /wd4996 /wd4100 /wd4005
|
46
55
|
QMAKE_CFLAGS_RELEASE += /O2
|
47
56
|
QMAKE_CXXFLAGS_RELEASE += /O2
|
57
|
+
QMAKE_CXXFLAGS_RELEASE += -MP9
|
58
|
+
QMAKE_CXXFLAGS_DEBUG += -MP9
|
48
59
|
}
|
49
60
|
|
50
61
|
HEADERS += \
|
@@ -1,18 +1,18 @@
|
|
1
1
|
/*------------------------------------------------------------------------
|
2
2
|
* (The MIT License)
|
3
|
-
*
|
3
|
+
*
|
4
4
|
* Copyright (c) 2008-2011 Rhomobile, Inc.
|
5
|
-
*
|
5
|
+
*
|
6
6
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
* of this software and associated documentation files (the "Software"), to deal
|
8
8
|
* in the Software without restriction, including without limitation the rights
|
9
9
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
10
|
* copies of the Software, and to permit persons to whom the Software is
|
11
11
|
* furnished to do so, subject to the following conditions:
|
12
|
-
*
|
12
|
+
*
|
13
13
|
* The above copyright notice and this permission notice shall be included in
|
14
14
|
* all copies or substantial portions of the Software.
|
15
|
-
*
|
15
|
+
*
|
16
16
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
17
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
18
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
@@ -20,7 +20,7 @@
|
|
20
20
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
22
|
* THE SOFTWARE.
|
23
|
-
*
|
23
|
+
*
|
24
24
|
* http://rhomobile.com
|
25
25
|
*------------------------------------------------------------------------*/
|
26
26
|
|
@@ -166,6 +166,7 @@ typedef int (*func_readlink_t)(const char *path, char *buf, size_t bufsize);
|
|
166
166
|
typedef int (*func_mkdir_t)(const char *path, mode_t mode);
|
167
167
|
typedef int (*func_fchdir_t)(int fd);
|
168
168
|
typedef int (*func_fcntl_t)(int fd, int command, ...);
|
169
|
+
typedef int (*func_ioctl_t)(int fd, int command, ...);
|
169
170
|
typedef int (*func_fdatasync_t)(int fd);
|
170
171
|
typedef int (*func_flock_t)(int fd, int operation);
|
171
172
|
typedef int (*func_fstat_t)(int filedes, struct stat *buf);
|
@@ -206,6 +207,7 @@ static func_readlink_t real_readlink;
|
|
206
207
|
static func_mkdir_t real_mkdir;
|
207
208
|
static func_fchdir_t real_fchdir;
|
208
209
|
static func_fcntl_t real_fcntl;
|
210
|
+
static func_ioctl_t real_ioctl;
|
209
211
|
static func_fdatasync_t real_fdatasync;
|
210
212
|
static func_flock_t real_flock;
|
211
213
|
static func_fstat_t real_fstat;
|
@@ -531,6 +533,7 @@ RHO_GLOBAL void JNICALL Java_com_rhomobile_rhodes_file_RhoFileApi_nativeInit
|
|
531
533
|
real_mkdir = (func_mkdir_t)dlsym(pc, "mkdir");
|
532
534
|
real_fchdir = (func_fchdir_t)dlsym(pc, "fchdir");
|
533
535
|
real_fcntl = (func_fcntl_t)dlsym(pc, "fcntl");
|
536
|
+
real_ioctl = (func_ioctl_t)dlsym(pc, "ioctl");
|
534
537
|
real_fsync = (func_fsync_t)dlsym(pc, "fsync");
|
535
538
|
real_fdatasync = (func_fdatasync_t)dlsym(pc, "fdatasync");
|
536
539
|
|
@@ -1335,11 +1338,22 @@ RHO_GLOBAL int flock(int fd, int operation)
|
|
1335
1338
|
RHO_NOT_IMPLEMENTED;
|
1336
1339
|
}
|
1337
1340
|
|
1338
|
-
RHO_GLOBAL int ioctl(int, int, ...)
|
1341
|
+
RHO_GLOBAL int ioctl(int fd, int command, ...)
|
1339
1342
|
{
|
1340
|
-
|
1343
|
+
RHO_LOG("ioctl: fd %d, command: %d", fd, command);
|
1344
|
+
if ((rho_fs_mode == RHO_FS_DISK_ONLY || fd < RHO_FD_BASE) && (real_ioctl!=0) )
|
1345
|
+
{
|
1346
|
+
va_list vl;
|
1347
|
+
va_start(vl, command);
|
1348
|
+
int arg = va_arg(vl, int);
|
1349
|
+
va_end(vl);
|
1350
|
+
return real_ioctl(fd, command, arg);
|
1351
|
+
}
|
1352
|
+
|
1353
|
+
RHO_NOT_IMPLEMENTED;
|
1341
1354
|
}
|
1342
1355
|
|
1356
|
+
|
1343
1357
|
RHO_GLOBAL int fsync(int fd)
|
1344
1358
|
{
|
1345
1359
|
if (rho_fs_mode == RHO_FS_DISK_ONLY || fd < RHO_FD_BASE)
|
@@ -1421,13 +1435,13 @@ RHO_GLOBAL int stat(const char *path, struct stat *buf)
|
|
1421
1435
|
{
|
1422
1436
|
RHO_LOG("stat: %s", path);
|
1423
1437
|
std::string fpath = make_full_path(path);
|
1424
|
-
|
1438
|
+
|
1425
1439
|
/* fail immediately if found invalid symbol */
|
1426
1440
|
if (fpath.find(':')!=std::string::npos)
|
1427
1441
|
{
|
1428
1442
|
return -1;
|
1429
1443
|
}
|
1430
|
-
|
1444
|
+
|
1431
1445
|
if (!need_emulate(fpath))
|
1432
1446
|
{
|
1433
1447
|
int e = real_stat(path, buf);
|
@@ -1466,13 +1480,13 @@ RHO_GLOBAL int lstat(const char *path, struct stat *buf)
|
|
1466
1480
|
{
|
1467
1481
|
RHO_LOG("lstat: %s", path);
|
1468
1482
|
std::string fpath = make_full_path(path);
|
1469
|
-
|
1483
|
+
|
1470
1484
|
/* fail immediately if found invalid symbol */
|
1471
1485
|
if (fpath.find(':')!=std::string::npos)
|
1472
1486
|
{
|
1473
1487
|
return -1;
|
1474
1488
|
}
|
1475
|
-
|
1489
|
+
|
1476
1490
|
if (!need_emulate(fpath))
|
1477
1491
|
return real_lstat(path, buf);
|
1478
1492
|
|
@@ -1593,16 +1607,16 @@ RHO_GLOBAL int select(int maxfd, fd_set *rfd, fd_set *wfd, fd_set *efd, struct t
|
|
1593
1607
|
{
|
1594
1608
|
if (FD_ISSET(i, rfd))
|
1595
1609
|
{
|
1596
|
-
|
1610
|
+
|
1597
1611
|
FD_SET(i, &fds);
|
1598
1612
|
++count;
|
1599
|
-
|
1600
|
-
|
1613
|
+
|
1614
|
+
|
1601
1615
|
}
|
1602
1616
|
}
|
1603
1617
|
if (count > 0)
|
1604
1618
|
{
|
1605
|
-
|
1619
|
+
|
1606
1620
|
RHO_LOG("select: return %d (rho)", count);
|
1607
1621
|
memmove(rfd, &fds, sizeof(fds));
|
1608
1622
|
if (wfd)
|
@@ -1958,25 +1972,25 @@ RHO_GLOBAL int rho_file_get_fs_mode()
|
|
1958
1972
|
}
|
1959
1973
|
|
1960
1974
|
RHO_GLOBAL void rho_android_file_reload_stat_table() {
|
1961
|
-
|
1975
|
+
|
1962
1976
|
RHO_LOG("rho_android_file_reload_stat_table() START");
|
1963
|
-
|
1977
|
+
|
1964
1978
|
rho_stat_map.clear();
|
1965
|
-
|
1979
|
+
|
1966
1980
|
JNIEnv *env = jnienv();
|
1967
1981
|
env->CallStaticVoidMethod(clsFileApi, midReloadStatTable);
|
1968
|
-
|
1982
|
+
|
1969
1983
|
RHO_LOG("rho_android_file_reload_stat_table() FINISH");
|
1970
1984
|
}
|
1971
1985
|
|
1972
1986
|
RHO_GLOBAL void rho_android_force_all_files() {
|
1973
|
-
|
1987
|
+
|
1974
1988
|
RHO_LOG("rho_android_force_all_files() START");
|
1975
|
-
|
1989
|
+
|
1976
1990
|
JNIEnv *env = jnienv();
|
1977
1991
|
|
1978
1992
|
env->CallStaticVoidMethod(clsFileApi, midForceAllFiles);
|
1979
|
-
|
1993
|
+
|
1980
1994
|
RHO_LOG("rho_android_force_all_files() FINISH");
|
1981
1995
|
}
|
1982
1996
|
|
@@ -939,7 +939,7 @@ static BOOL makeHiddenUntilLoadContent = YES;
|
|
939
939
|
//else {
|
940
940
|
|
941
941
|
NSString *redirect = nil;
|
942
|
-
if ([cleared_url hasPrefix:@"file:"]) {
|
942
|
+
if ([cleared_url hasPrefix:@"file:"] || rho_rhodesapp_is_nodejs_app()) {
|
943
943
|
redirect = cleared_url;
|
944
944
|
}
|
945
945
|
else {
|
@@ -8,6 +8,7 @@
|
|
8
8
|
#include "MethodResultConvertor.h"
|
9
9
|
#include "RubyResultConvertor.h"
|
10
10
|
#include "JSONResultConvertor.h"
|
11
|
+
#include "js_helpers.h"
|
11
12
|
|
12
13
|
namespace rho
|
13
14
|
{
|
@@ -256,12 +257,16 @@ void CMethodResult::callCallback()
|
|
256
257
|
strCallback += "},\"";
|
257
258
|
strCallback += m_strCallbackParam + "\")";
|
258
259
|
|
259
|
-
|
260
|
-
{
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
260
|
+
|
261
|
+
if (callCustomJVMCallbackProvider(m_strJVMID.c_str(), strCallback.c_str()) != 1) {
|
262
|
+
|
263
|
+
if (m_synchronousCallback)
|
264
|
+
{
|
265
|
+
rho_webview_execute_js_sync(strCallback.c_str(), m_iTabId);
|
266
|
+
} else
|
267
|
+
{
|
268
|
+
rho_webview_execute_js(strCallback.c_str(), m_iTabId);
|
269
|
+
}
|
265
270
|
}
|
266
271
|
break;
|
267
272
|
}
|
@@ -298,10 +303,20 @@ void CMethodResult::setRubyCallbackProc(unsigned long oRubyCallbackProc)
|
|
298
303
|
|
299
304
|
void CMethodResult::setJSCallback(const rho::String& strCallback)
|
300
305
|
{
|
301
|
-
LOG(TRACE) + "setJSCallback: " + strCallback;
|
306
|
+
LOG(TRACE) + "setJSCallback: " + strCallback + " without JVMID";
|
307
|
+
|
308
|
+
m_strJSCallback = strCallback;
|
309
|
+
m_iTabId = rho_webview_active_tab();
|
310
|
+
}
|
311
|
+
|
312
|
+
|
313
|
+
void CMethodResult::setJSCallback(const rho::String& strCallback, const rho::String& strJVMID)
|
314
|
+
{
|
315
|
+
LOG(TRACE) + "setJSCallback: " + strCallback + " JVMID: "+strJVMID;
|
302
316
|
|
303
317
|
m_strJSCallback = strCallback;
|
304
318
|
m_iTabId = rho_webview_active_tab();
|
319
|
+
m_strJVMID = strJVMID;
|
305
320
|
}
|
306
321
|
|
307
322
|
bool CMethodResult::isSynchronousCallback()
|
@@ -22,6 +22,7 @@ private:
|
|
22
22
|
rho::String m_strJSCallback;
|
23
23
|
bool m_synchronousCallback;
|
24
24
|
int m_iTabId;
|
25
|
+
rho::String m_strJVMID;
|
25
26
|
rho::Hashtable<rho::String, rho::String> m_hashStrRes;
|
26
27
|
rho::Hashtable<rho::String, rho::Hashtable<rho::String, rho::String> > m_hashStrL2Res;
|
27
28
|
rho::Hashtable<rho::String, rho::Vector<rho::String> > m_hashStrVecRes;
|
@@ -59,7 +60,7 @@ private:
|
|
59
60
|
|
60
61
|
public:
|
61
62
|
|
62
|
-
CMethodResult(bool bCollectionMode=false): m_strParamName("result"), m_synchronousCallback(false), m_iTabId(-1),
|
63
|
+
CMethodResult(bool bCollectionMode=false): m_strParamName("result"), m_synchronousCallback(false), m_iTabId(-1), m_strJVMID(""),
|
63
64
|
m_nRes(0), m_bRes(false), m_dRes(0), m_ResType(eNone), m_eRequestedType(eNone), m_resClassType(rctPlain), m_oRubyObjectClass(0), m_bCollectionMode(bCollectionMode){}
|
64
65
|
|
65
66
|
ECallbackType getCallbackType();
|
@@ -69,6 +70,7 @@ public:
|
|
69
70
|
const rho::String& getRubyCallback() const { return m_strRubyCallback; }
|
70
71
|
void setRubyCallbackProc(unsigned long oRubyCallbackProc);
|
71
72
|
void setJSCallback(const rho::String& strCallback);
|
73
|
+
void setJSCallback(const rho::String& strCallback, const rho::String& strJVMID);
|
72
74
|
void setCallInUIThread(rho::boolean bUIThread) {}
|
73
75
|
void setCallbackParam(const rho::String& strCallbackParam){ m_strCallbackParam = strCallbackParam; }
|
74
76
|
const rho::String& getCallbackParam() const { return m_strCallbackParam; }
|
@@ -6,7 +6,7 @@
|
|
6
6
|
#import "CJSConverter.h"
|
7
7
|
#import "RubyCallbackHelper.h"
|
8
8
|
|
9
|
-
|
9
|
+
#include "../js_helpers.h"
|
10
10
|
|
11
11
|
extern const char* rho_webview_execute_js(const char* js, int index);
|
12
12
|
|
@@ -242,7 +242,11 @@ extern int rho_webview_active_tab();
|
|
242
242
|
// tabIndex = [mJSWebViewUID intValue];
|
243
243
|
//}
|
244
244
|
//[[[Rhodes sharedInstance] mainView] executeJs:jscode tab:tabIndex];
|
245
|
-
|
245
|
+
|
246
|
+
const char* js_code = [jscode UTF8String];
|
247
|
+
if (callCustomJVMCallbackProvider([mJSWebViewUID UTF8String], js_code) != 1) {
|
248
|
+
rho_webview_execute_js(js_code, tabIndex);
|
249
|
+
}
|
246
250
|
}
|
247
251
|
|
248
252
|
-(void) callCallback {
|
@@ -154,3 +154,22 @@ void rho_http_js_entry_point(void *arg, rho::String const &query )
|
|
154
154
|
|
155
155
|
}
|
156
156
|
}
|
157
|
+
|
158
|
+
static std::map<rho::String, JVM_Callback_Provider> g_jvm_providers;
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
void setCustomJVMCallbackProvider(const char* jvm_id, JVM_Callback_Provider provider) {
|
164
|
+
g_jvm_providers[jvm_id] = provider;
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
int callCustomJVMCallbackProvider(const char* jvm_id, const char* js_code) {
|
169
|
+
JVM_Callback_Provider provider = g_jvm_providers[jvm_id];
|
170
|
+
if (provider != NULL) {
|
171
|
+
provider(js_code);
|
172
|
+
return 1;
|
173
|
+
}
|
174
|
+
return 0;
|
175
|
+
}
|
@@ -1,5 +1,8 @@
|
|
1
1
|
#pragma once
|
2
2
|
|
3
|
+
|
4
|
+
#ifdef __cplusplus
|
5
|
+
|
3
6
|
#include "json/JSONIterator.h"
|
4
7
|
|
5
8
|
namespace rho
|
@@ -18,3 +21,23 @@ void rho_http_js_entry_point(void *arg, rho::String const &query );
|
|
18
21
|
|
19
22
|
}
|
20
23
|
}
|
24
|
+
|
25
|
+
#endif
|
26
|
+
//__cplusplus
|
27
|
+
|
28
|
+
|
29
|
+
#ifdef __cplusplus
|
30
|
+
extern "C"{
|
31
|
+
#endif //__cplusplus
|
32
|
+
|
33
|
+
typedef void (*JVM_Callback_Provider)(const char* js_code);
|
34
|
+
|
35
|
+
void setCustomJVMCallbackProvider(const char* jvm_id, JVM_Callback_Provider provider);
|
36
|
+
|
37
|
+
//return 1 if callback called (has JVM with defined ID
|
38
|
+
// if not found return zero
|
39
|
+
int callCustomJVMCallbackProvider(const char* jvm_id, const char* js_code);
|
40
|
+
|
41
|
+
#ifdef __cplusplus
|
42
|
+
}
|
43
|
+
#endif //__cplusplus
|
@@ -402,8 +402,7 @@ void CAppCallbacksQueue::processUiCreated()
|
|
402
402
|
|
403
403
|
/*static*/ CRhodesApp* CRhodesApp::Create(const String& strRootPath, const String& strUserPath, const String& strRuntimePath)
|
404
404
|
{
|
405
|
-
if ( m_pInstance != null)
|
406
|
-
return (CRhodesApp*)m_pInstance;
|
405
|
+
if ( m_pInstance != null) return (CRhodesApp*)m_pInstance;
|
407
406
|
|
408
407
|
m_pInstance = new CRhodesApp(strRootPath, strUserPath, strRuntimePath);
|
409
408
|
|
@@ -481,7 +480,7 @@ void CRhodesApp::run()
|
|
481
480
|
{
|
482
481
|
LOG(INFO) + "Starting RhodesApp main routine...";
|
483
482
|
#ifndef RHO_NO_RUBY_API
|
484
|
-
if (!isJSApplication())
|
483
|
+
if (!isJSApplication() && !isNodeJSApplication())
|
485
484
|
{
|
486
485
|
RhoRubyStart();
|
487
486
|
rubyext::CGeoLocation::Create();
|
@@ -496,7 +495,7 @@ void CRhodesApp::run()
|
|
496
495
|
sync::RhoconnectClientManager::syncThreadCreate();
|
497
496
|
}
|
498
497
|
#ifndef RHO_NO_RUBY_API
|
499
|
-
if (!isJSApplication())
|
498
|
+
if (!isJSApplication() && !isNodeJSApplication())
|
500
499
|
{
|
501
500
|
LOG(INFO) + "RhoRubyInitApp...";
|
502
501
|
RhoRubyInitApp();
|
@@ -570,7 +569,7 @@ void CRhodesApp::run()
|
|
570
569
|
|
571
570
|
getExtManager().close();
|
572
571
|
|
573
|
-
if (!isJSApplication())
|
572
|
+
if (!isJSApplication() && !isNodeJSApplication())
|
574
573
|
{
|
575
574
|
rubyext::CGeoLocation::Destroy();
|
576
575
|
}
|
@@ -583,7 +582,7 @@ void CRhodesApp::run()
|
|
583
582
|
|
584
583
|
db::CDBAdapter::closeAll();
|
585
584
|
#ifndef RHO_NO_RUBY_API
|
586
|
-
if (!isJSApplication())
|
585
|
+
if (!isJSApplication() && !isNodeJSApplication())
|
587
586
|
{
|
588
587
|
RhoRubyStop();
|
589
588
|
}
|
@@ -672,7 +671,7 @@ void CRhodesApp::runCallbackInThread(const String& strCallback, const String& st
|
|
672
671
|
static void callback_activateapp(void *arg, String const &strQuery)
|
673
672
|
{
|
674
673
|
#ifndef RHO_NO_RUBY_API
|
675
|
-
if (!RHODESAPP().isJSApplication())
|
674
|
+
if (!RHODESAPP().isJSApplication() && !RHODESAPP().isNodeJSApplication())
|
676
675
|
rho_ruby_activateApp();
|
677
676
|
#endif
|
678
677
|
|
@@ -683,7 +682,7 @@ static void callback_activateapp(void *arg, String const &strQuery)
|
|
683
682
|
static void callback_deactivateapp(void *arg, String const &strQuery)
|
684
683
|
{
|
685
684
|
#ifndef RHO_NO_RUBY_API
|
686
|
-
if (!RHODESAPP().isJSApplication())
|
685
|
+
if (!RHODESAPP().isJSApplication() && !RHODESAPP().isNodeJSApplication())
|
687
686
|
rho_ruby_deactivateApp();
|
688
687
|
#endif
|
689
688
|
|
@@ -694,7 +693,7 @@ static void callback_deactivateapp(void *arg, String const &strQuery)
|
|
694
693
|
static void callback_uicreated(void *arg, String const &strQuery)
|
695
694
|
{
|
696
695
|
#ifndef RHO_NO_RUBY_API
|
697
|
-
if (!RHODESAPP().isJSApplication())
|
696
|
+
if (!RHODESAPP().isJSApplication() && !RHODESAPP().isNodeJSApplication())
|
698
697
|
rho_ruby_uiCreated();
|
699
698
|
#endif
|
700
699
|
|
@@ -704,7 +703,7 @@ static void callback_uicreated(void *arg, String const &strQuery)
|
|
704
703
|
static void callback_uidestroyed(void *arg, String const &strQuery)
|
705
704
|
{
|
706
705
|
#ifndef RHO_NO_RUBY_API
|
707
|
-
if (!RHODESAPP().isJSApplication())
|
706
|
+
if (!RHODESAPP().isJSApplication() && !RHODESAPP().isNodeJSApplication())
|
708
707
|
rho_ruby_uiDestroyed();
|
709
708
|
#endif
|
710
709
|
|
@@ -1587,6 +1586,27 @@ const char* CRhodesApp::getFreeListeningPort()
|
|
1587
1586
|
|
1588
1587
|
return m_strListeningPorts.c_str();
|
1589
1588
|
}
|
1589
|
+
|
1590
|
+
const char* CRhodesApp::getNodeJSListeningPort() {
|
1591
|
+
if ( m_strNodeJSListeningPorts.length() > 0 )
|
1592
|
+
return m_strNodeJSListeningPorts.c_str();
|
1593
|
+
|
1594
|
+
int port = rho_conf_getInt("nodejs_local_server_port");
|
1595
|
+
if (port == 0) {
|
1596
|
+
port = determineFreeListeningPort();
|
1597
|
+
}
|
1598
|
+
if (port < 0)
|
1599
|
+
port = 0;
|
1600
|
+
if (port > 65535)
|
1601
|
+
port = 0;
|
1602
|
+
|
1603
|
+
m_strNodeJSListeningPorts = convertToStringA(port);
|
1604
|
+
m_nNodeJSListeningPorts = port;
|
1605
|
+
|
1606
|
+
LOG(INFO) + "Free Node.js listening port: " + m_strNodeJSListeningPorts;
|
1607
|
+
|
1608
|
+
return m_strNodeJSListeningPorts.c_str();
|
1609
|
+
}
|
1590
1610
|
|
1591
1611
|
int CRhodesApp::determineFreeListeningPort()
|
1592
1612
|
{
|
@@ -1729,7 +1749,12 @@ void CRhodesApp::initAppUrls()
|
|
1729
1749
|
m_strHomeUrl = "http://127.0.0.1:";
|
1730
1750
|
}
|
1731
1751
|
|
1732
|
-
|
1752
|
+
if (isNodeJSApplication()) {
|
1753
|
+
m_strHomeUrl += getNodeJSListeningPort();
|
1754
|
+
}
|
1755
|
+
else {
|
1756
|
+
m_strHomeUrl += getFreeListeningPort();
|
1757
|
+
}
|
1733
1758
|
|
1734
1759
|
#ifndef RHODES_EMULATOR
|
1735
1760
|
m_strLoadingPagePath = "file://" + getRhoRootPath() + "apps/app/loading.html";
|
@@ -2640,6 +2665,12 @@ int rho_http_get_port()
|
|
2640
2665
|
return RHODESAPP().getLocalServerPort();
|
2641
2666
|
}
|
2642
2667
|
|
2668
|
+
int rho_nodejs_get_port()
|
2669
|
+
{
|
2670
|
+
return RHODESAPP().getNodeJSServerPort();
|
2671
|
+
}
|
2672
|
+
|
2673
|
+
|
2643
2674
|
#ifdef OS_MACOSX
|
2644
2675
|
const char* rho_http_direct_request( const char* method, const char* uri, const char* query, const void* headers, const char* body, int bodylen, int* responseLength )
|
2645
2676
|
{
|
@@ -2974,6 +3005,10 @@ int rho_rhodesapp_is_application_active() {
|
|
2974
3005
|
return RHODESAPP().isApplicationActive() ? 1 : 0;
|
2975
3006
|
}
|
2976
3007
|
|
3008
|
+
int rho_rhodesapp_is_nodejs_app() {
|
3009
|
+
return RHODESAPP().isNodeJSApplication() ? 1 : 0;
|
3010
|
+
}
|
3011
|
+
|
2977
3012
|
int rho_rhodesapp_canstartapp(const char* szCmdLine, const char* szSeparators)
|
2978
3013
|
{
|
2979
3014
|
String strCmdLineSecToken;
|