├── examples
├── QZXingDragNDropTest
│ ├── qtc_packaging
│ │ └── debian_fremantle
│ │ │ ├── compat
│ │ │ ├── changelog
│ │ │ ├── README
│ │ │ ├── control
│ │ │ └── copyright
│ ├── qml
│ │ └── QZXingDragNDropTest
│ │ │ └── ToggleButton.qml
│ ├── droparea.h
│ ├── main.cpp
│ ├── qtquick2applicationviewer
│ │ └── qtquick2applicationviewer.h
│ ├── qmlapplicationviewer
│ │ └── qmlapplicationviewer.h
│ └── droparea.cpp
├── QZXingLive
│ ├── icons
│ │ ├── qzxing_icon.png
│ │ ├── qzxing_icon_dpi.png
│ │ └── qzxing_icon_hdpi.png
│ ├── android
│ │ ├── res
│ │ │ ├── drawable-hdpi
│ │ │ │ └── icon.png
│ │ │ ├── drawable-ldpi
│ │ │ │ └── icon.png
│ │ │ ├── drawable-mdpi
│ │ │ │ └── icon.png
│ │ │ └── values
│ │ │ │ └── libs.xml
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ └── src
│ │ │ └── org
│ │ │ └── ftylitak
│ │ │ └── qzxing
│ │ │ ├── NativeFunctions.java
│ │ │ ├── QZXingLiveActivity.java
│ │ │ └── Utilities.java
│ ├── qml.qrc
│ ├── README.md
│ ├── deployment.pri
│ ├── native.h
│ ├── main.cpp
│ ├── application.h
│ └── Info.plist
├── BarcodeEncoder
│ ├── qml.qrc
│ ├── qtquickcontrols2.conf
│ ├── main.cpp
│ └── BarcodeEncoder.pro
├── QMLBarcodeScanner
│ ├── QMLBarcodeReader.sis
│ ├── images
│ │ ├── toolbutton.png
│ │ ├── toolbutton.sci
│ │ ├── camera_auto_mode.png
│ │ ├── camera_flash_auto.png
│ │ ├── camera_flash_fill.png
│ │ ├── camera_flash_off.png
│ │ ├── camera_flash_redeye.png
│ │ ├── camera_camera_setting.png
│ │ ├── camera_white_balance_cloudy.png
│ │ ├── camera_white_balance_sunny.png
│ │ ├── camera_white_balance_flourescent.png
│ │ └── camera_white_balance_incandescent.png
│ ├── QMLBarcodeReader_installer.sis
│ ├── declarative-camera.qmlproject
│ ├── MessageDialog.qml
│ ├── QMLBarcodeReader.rss
│ ├── QMLBarcodeReader.pro
│ └── declarative-camera.qrc
└── QQrDecoder
│ └── readme.md
├── .lgtm.yml
├── .gitmodules
├── tests
└── src
│ └── QZXingTests
│ ├── qzxing_decode_3_0_alpha_0_2_test_results.log
│ ├── qzxing_decode_3_0_alpha_0_3_test_results.log
│ ├── TestCase.cpp
│ ├── zxing
│ ├── qrcode
│ │ └── encoder
│ │ │ ├── QRCodeTests.h
│ │ │ ├── MaskUtilTests.h
│ │ │ ├── BitVectorTests.h
│ │ │ ├── MatrixUtilTests.h
│ │ │ └── EncoderTests.h
│ └── common
│ │ ├── BitArrayTests.h
│ │ └── reedsolomon
│ │ └── ReedSolomonEncoderTests.h
│ ├── EncodeValidator.h
│ ├── ValidationStats.h
│ ├── QZXingTests.pro
│ ├── main.cpp
│ ├── EncodeValidator.cpp
│ ├── ValidationStats.cpp
│ ├── DecodeValidator.h
│ └── EncoderStressTest.h
├── src
├── QZXing
├── zxing
│ ├── zxing
│ │ ├── EncodeHint.cpp
│ │ ├── common
│ │ │ ├── Types.h
│ │ │ ├── reedsolomon
│ │ │ │ ├── ReedSolomonEncoder.h
│ │ │ │ ├── ReedSolomonException.cpp
│ │ │ │ └── ReedSolomonException.h
│ │ │ ├── BitArrayIO.cpp
│ │ │ ├── IllegalArgumentException.cpp
│ │ │ ├── IllegalArgumentException.h
│ │ │ ├── Point.h
│ │ │ ├── detector
│ │ │ │ └── JavaMath.h
│ │ │ ├── DetectorResult.cpp
│ │ │ ├── ByteArray.h
│ │ │ ├── DetectorResult.h
│ │ │ ├── Str.h
│ │ │ ├── StringUtils.h
│ │ │ └── GreyscaleRotatedLuminanceSource.h
│ │ ├── oned
│ │ │ ├── rss
│ │ │ │ ├── expanded
│ │ │ │ │ ├── decoders
│ │ │ │ │ │ ├── DecodedObject.cpp
│ │ │ │ │ │ ├── AnyAIDecoder.cpp
│ │ │ │ │ │ ├── DecodedChar.cpp
│ │ │ │ │ │ ├── AI013103decoder.cpp
│ │ │ │ │ │ ├── AI01320xDecoder.cpp
│ │ │ │ │ │ ├── AI013x0xDecoder.cpp
│ │ │ │ │ │ ├── BlockParsedResult.cpp
│ │ │ │ │ │ ├── AI01AndOtherAIs.cpp
│ │ │ │ │ │ ├── AI01weightDecoder.cpp
│ │ │ │ │ │ ├── AI01392xDecoder.cpp
│ │ │ │ │ │ ├── CurrentParsingState.cpp
│ │ │ │ │ │ ├── DecodedInformation.cpp
│ │ │ │ │ │ ├── DecodedNumeric.cpp
│ │ │ │ │ │ ├── DecodedObject.h
│ │ │ │ │ │ ├── AI01decoder.cpp
│ │ │ │ │ │ ├── DecodedChar.h
│ │ │ │ │ │ ├── AI01320xDecoder.h
│ │ │ │ │ │ ├── AI013103decoder.h
│ │ │ │ │ │ ├── AI01393xDecoder.cpp
│ │ │ │ │ │ ├── AnyAIDecoder.h
│ │ │ │ │ │ ├── BlockParsedResult.h
│ │ │ │ │ │ ├── FieldParser.h
│ │ │ │ │ │ └── AI01393xDecoder.h
│ │ │ │ │ ├── BitArrayBuilder.h
│ │ │ │ │ ├── ExpandedRow.cpp
│ │ │ │ │ └── BitArrayBuilder.cpp
│ │ │ │ ├── Pair.cpp
│ │ │ │ ├── DataCharacter.cpp
│ │ │ │ ├── RSSUtils.h
│ │ │ │ ├── Pair.h
│ │ │ │ ├── DataCharacter.h
│ │ │ │ └── FinderPattern.cpp
│ │ │ ├── OneDResultPoint.cpp
│ │ │ ├── OneDResultPoint.h
│ │ │ ├── UPCEANExtensionSupport.h
│ │ │ ├── UPCEANExtension2Support.h
│ │ │ ├── UPCEANExtension5Support.h
│ │ │ ├── EANManufacturerOrgSupport.h
│ │ │ ├── MultiFormatOneDReader.h
│ │ │ ├── EAN8Reader.h
│ │ │ ├── MultiFormatUPCEANReader.h
│ │ │ ├── EAN13Reader.h
│ │ │ ├── UPCEReader.h
│ │ │ ├── Code128Reader.h
│ │ │ ├── UPCEANExtensionSupport.cpp
│ │ │ └── UPCAReader.h
│ │ ├── WriterException.h
│ │ ├── UnsupportedEncodingException.h
│ │ ├── datamatrix
│ │ │ ├── detector
│ │ │ │ ├── DataMatrixDetectorException.cpp
│ │ │ │ ├── DetectorException.h
│ │ │ │ ├── CornerPoint.h
│ │ │ │ └── DataMatrixCornerPoint.cpp
│ │ │ ├── DataMatrixReader.h
│ │ │ └── decoder
│ │ │ │ ├── Decoder.h
│ │ │ │ └── DataBlock.h
│ │ ├── ResultPointCallback.cpp
│ │ ├── qrcode
│ │ │ ├── encoder
│ │ │ │ ├── ByteMatrix.h
│ │ │ │ ├── BlockPair.h
│ │ │ │ └── QRCode.h
│ │ │ ├── decoder
│ │ │ │ ├── Decoder.h
│ │ │ │ ├── DataMask.h
│ │ │ │ └── DataBlock.h
│ │ │ ├── QRCodeReader.h
│ │ │ └── detector
│ │ │ │ ├── QRFinderPatternInfo.cpp
│ │ │ │ ├── FinderPatternInfo.h
│ │ │ │ ├── AlignmentPattern.h
│ │ │ │ └── FinderPattern.h
│ │ ├── Reader.cpp
│ │ ├── ReaderException.cpp
│ │ ├── WriterException.cpp
│ │ ├── NotFoundException.cpp
│ │ ├── multi
│ │ │ ├── MultipleBarcodeReader.cpp
│ │ │ ├── qrcode
│ │ │ │ ├── detector
│ │ │ │ │ └── MultiDetector.h
│ │ │ │ └── QRCodeMultiReader.h
│ │ │ ├── ByQuadrantReader.h
│ │ │ └── MultipleBarcodeReader.h
│ │ ├── IllegalStateException.cpp
│ │ ├── ChecksumException.cpp
│ │ ├── FormatException.h
│ │ ├── ChecksumException.h
│ │ ├── NotFoundException.h
│ │ ├── ResultIO.cpp
│ │ ├── ResultPointCallback.h
│ │ ├── UnsupportedEncodingException.cpp
│ │ ├── IllegalStateException.h
│ │ ├── ReaderException.h
│ │ ├── Reader.h
│ │ ├── BarcodeFormat.cpp
│ │ ├── FormatException.cpp
│ │ ├── Binarizer.cpp
│ │ ├── Exception.h
│ │ ├── aztec
│ │ │ ├── AztecReader.h
│ │ │ └── AztecDetectorResult.h
│ │ ├── Binarizer.h
│ │ ├── BarcodeFormat.h
│ │ ├── EncodeHint.h
│ │ ├── pdf417
│ │ │ └── PDF417Reader.h
│ │ └── MultiFormatReader.h
│ ├── win32
│ │ ├── CMakeLists.txt
│ │ └── zxing
│ │ │ └── iconv.h
│ └── bigint
│ │ ├── BigIntegerLibrary.hh
│ │ ├── CMakeLists.txt
│ │ ├── BigIntegerAlgorithms.hh
│ │ └── BigIntegerUtils.cc
├── README.md
├── QZXing.pri
├── QZXing_global.h
├── QZXingImageProvider.h
├── QZXing.pro
└── ImageHandler.h
├── .gitignore
├── ci
└── build_env.sh
└── .travis.yml
/examples/QZXingDragNDropTest/qtc_packaging/debian_fremantle/compat:
--------------------------------------------------------------------------------
1 | 7
2 |
--------------------------------------------------------------------------------
/.lgtm.yml:
--------------------------------------------------------------------------------
1 | extraction:
2 | cpp:
3 | configure:
4 | command: "qmake -o Makefile CONFIG+=Release src/QZXing.pro"
5 |
--------------------------------------------------------------------------------
/examples/QZXingLive/icons/qzxing_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QZXingLive/icons/qzxing_icon.png
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "tests/resources"]
2 | path = tests/resources
3 | url = https://github.com/ftylitak/qzxing-test-resources
4 |
--------------------------------------------------------------------------------
/examples/BarcodeEncoder/qml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | main.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/examples/QZXingLive/icons/qzxing_icon_dpi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QZXingLive/icons/qzxing_icon_dpi.png
--------------------------------------------------------------------------------
/examples/QZXingLive/icons/qzxing_icon_hdpi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QZXingLive/icons/qzxing_icon_hdpi.png
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/QMLBarcodeReader.sis:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/QMLBarcodeReader.sis
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/toolbutton.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/toolbutton.png
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/toolbutton.sci:
--------------------------------------------------------------------------------
1 | border.left: 15
2 | border.top: 4
3 | border.bottom: 4
4 | border.right: 15
5 | source: toolbutton.png
6 |
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_auto_mode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_auto_mode.png
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_flash_auto.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_flash_auto.png
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_flash_fill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_flash_fill.png
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_flash_off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_flash_off.png
--------------------------------------------------------------------------------
/examples/QZXingLive/android/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QZXingLive/android/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/examples/QZXingLive/android/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QZXingLive/android/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/examples/QZXingLive/android/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QZXingLive/android/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/QMLBarcodeReader_installer.sis:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/QMLBarcodeReader_installer.sis
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_flash_redeye.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_flash_redeye.png
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_camera_setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_camera_setting.png
--------------------------------------------------------------------------------
/examples/QZXingLive/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QZXingLive/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/examples/QZXingLive/qml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | main.qml
4 | main_qt6_2.qml
5 |
6 |
7 |
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_white_balance_cloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_white_balance_cloudy.png
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_white_balance_sunny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_white_balance_sunny.png
--------------------------------------------------------------------------------
/tests/src/QZXingTests/qzxing_decode_3_0_alpha_0_2_test_results.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/tests/src/QZXingTests/qzxing_decode_3_0_alpha_0_2_test_results.log
--------------------------------------------------------------------------------
/tests/src/QZXingTests/qzxing_decode_3_0_alpha_0_3_test_results.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/tests/src/QZXingTests/qzxing_decode_3_0_alpha_0_3_test_results.log
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_white_balance_flourescent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_white_balance_flourescent.png
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/images/camera_white_balance_incandescent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ftylitak/qzxing/HEAD/examples/QMLBarcodeScanner/images/camera_white_balance_incandescent.png
--------------------------------------------------------------------------------
/examples/QZXingLive/README.md:
--------------------------------------------------------------------------------
1 | Supported only for Qt 5 projects since Qt Multimedia module has been removed in Qt 6.
2 |
3 | In case it gets re-supported for Qt 6, the examples will be updated.
4 |
--------------------------------------------------------------------------------
/examples/QZXingDragNDropTest/qtc_packaging/debian_fremantle/changelog:
--------------------------------------------------------------------------------
1 | qzxingtestapp (0.0.1) unstable; urgency=low
2 |
3 | * Initial Release.
4 |
5 | -- unknown <> Sun, 16 Mar 2014 13:53:58 +0200
6 |
--------------------------------------------------------------------------------
/src/QZXing:
--------------------------------------------------------------------------------
1 | #include "QZXing.h"
2 | #ifdef QZXING_QML
3 | #include "QZXingImageProvider.h"
4 | #endif //QZXING_QML
5 | #ifdef QZXING_MULTIMEDIA
6 | #include "QZXingFilter.h"
7 | #endif //QZXING_MULTIMEDIA
8 |
--------------------------------------------------------------------------------
/src/zxing/zxing/EncodeHint.cpp:
--------------------------------------------------------------------------------
1 | #include "EncodeHint.h"
2 |
3 | namespace zxing {
4 |
5 | EncodeHint::EncodeHint() :
6 | errorCorrectionLevel_(NULL), characterSet_(""), margin_(0)
7 | {}
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/examples/QZXingDragNDropTest/qtc_packaging/debian_fremantle/README:
--------------------------------------------------------------------------------
1 | The Debian Package qzxingtestapp
2 | ----------------------------
3 |
4 | Comments regarding the Package
5 |
6 | -- unknown <> Sun, 16 Mar 2014 13:53:58 +0200
7 |
--------------------------------------------------------------------------------
/examples/QQrDecoder/readme.md:
--------------------------------------------------------------------------------
1 | this project is deprecated thus removed. It is replaced by [QZXingLive](../QZXingLive/)
2 |
3 | NOTE: the folder is preserved since there are links in forum threads that point to this project. Will be removed in future version
--------------------------------------------------------------------------------
/examples/QZXingLive/android/src/org/ftylitak/qzxing/NativeFunctions.java:
--------------------------------------------------------------------------------
1 | package org.ftylitak.qzxing;
2 |
3 | public class NativeFunctions {
4 | public static native void onPermissionsGranted();
5 | public static native void onPermissionsDenied();
6 | }
7 |
--------------------------------------------------------------------------------
/src/zxing/win32/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | SET(SOURCES
2 |
3 | ${WIN32_DIR}/iconv.h
4 | ${WIN32_DIR}/win_iconv.c
5 | )
6 |
7 | if(MSVC)
8 | LIST(APPEND SOURCES ${WIN32_DIR}/msvc/stdint.h)
9 | endif(MSVC)
10 |
11 | target_sources(qzxing PRIVATE ${SOURCES})
12 |
--------------------------------------------------------------------------------
/examples/QZXingLive/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/src/zxing/bigint/BigIntegerLibrary.hh:
--------------------------------------------------------------------------------
1 | // This header file includes all of the library header files.
2 |
3 | #include "NumberlikeArray.hh"
4 | #include "BigUnsigned.hh"
5 | #include "BigInteger.hh"
6 | #include "BigIntegerAlgorithms.hh"
7 | #include "BigUnsignedInABase.hh"
8 | #include "BigIntegerUtils.hh"
9 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | moc/
2 | obj/
3 | rcc/
4 | tmp/
5 | ui/
6 | .make.cache
7 | *.BAT
8 | *.inf
9 | Makefile
10 | *.mk
11 | *.loc
12 | *.user
13 | *.mmp
14 | *.pkg
15 | QZXing-build-*
16 | build-*
17 | *.Debug
18 | *.Release
19 | debug/
20 | *.pdb
21 | *.sdf
22 | *.sln
23 | *.suo
24 | *.vcxproj*
25 | .gradle
26 | .idea
27 | .build
28 | .obj
29 |
--------------------------------------------------------------------------------
/examples/QZXingLive/deployment.pri:
--------------------------------------------------------------------------------
1 | unix:!android {
2 | isEmpty(target.path) {
3 | qnx {
4 | target.path = /tmp/$${TARGET}/bin
5 | } else {
6 | target.path = /opt/$${TARGET}/bin
7 | }
8 | export(target.path)
9 | }
10 | INSTALLS += target
11 | }
12 |
13 | export(INSTALLS)
14 |
--------------------------------------------------------------------------------
/tests/src/QZXingTests/TestCase.cpp:
--------------------------------------------------------------------------------
1 | #include "TestCase.h"
2 | #include /* srand, rand */
3 | #include /* time */
4 |
5 | namespace zxing{
6 |
7 | void TestCase::initializeRandom()
8 | {
9 | srand(time(NULL));
10 | }
11 |
12 | int TestCase::generateRandomNumber(int range)
13 | {
14 | return rand() % range;
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/src/zxing/zxing/common/Types.h:
--------------------------------------------------------------------------------
1 | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
2 | #ifndef ZXING_TYPES_H
3 | #define ZXING_TYPES_H
4 |
5 | #include
6 | #include
7 | #include
8 |
9 | namespace zxing {
10 |
11 | typedef uint8_t byte;
12 | typedef bool boolean;
13 |
14 | }
15 |
16 | #endif // ZXING_TYPES_H
17 |
--------------------------------------------------------------------------------
/src/README.md:
--------------------------------------------------------------------------------
1 | Qt wrapper library for the ZXing decoding library.
2 |
3 | # How to use
4 |
5 | ## To compile as dynamic library
6 | qmake src/QZXing.pro
7 | make
8 |
9 | ## Include the complete code to your project
10 | In the .pro file of your project add the following line (update the path to point to the correct location of QZXing src):
11 | include(../../src/QZXing.pri)
12 |
--------------------------------------------------------------------------------
/src/QZXing.pri:
--------------------------------------------------------------------------------
1 | #For backward compatibility, when using QZXing.pri, enable the complete
2 | # library functionality
3 | CONFIG += enable_decoder_1d_barcodes \
4 | enable_decoder_qr_code \
5 | enable_decoder_data_matrix \
6 | enable_decoder_aztec \
7 | enable_decoder_pdf17 \
8 | enable_encoder_qr_code
9 |
10 | include(./QZXing-components.pri)
11 |
--------------------------------------------------------------------------------
/src/zxing/zxing/oned/rss/expanded/decoders/DecodedObject.cpp:
--------------------------------------------------------------------------------
1 | #include "DecodedObject.h"
2 |
3 | namespace zxing {
4 | namespace oned {
5 | namespace rss {
6 |
7 | DecodedObject::DecodedObject(int newPosition)
8 | : m_newPosition(newPosition)
9 | {
10 |
11 | }
12 |
13 | int DecodedObject::getNewPosition() const
14 | {
15 | return m_newPosition;
16 | }
17 |
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/examples/BarcodeEncoder/qtquickcontrols2.conf:
--------------------------------------------------------------------------------
1 | ; This file can be edited to change the style of the application
2 | ; See Styling Qt Quick Controls 2 in the documentation for details:
3 | ; http://doc.qt.io/qt-5/qtquickcontrols2-styles.html
4 |
5 | [Controls]
6 | Style=Default
7 |
8 | [Universal]
9 | Theme=Light
10 | ;Accent=Steel
11 |
12 | [Material]
13 | Theme=Light
14 | ;Accent=BlueGrey
15 | ;Primary=BlueGray
16 |
--------------------------------------------------------------------------------
/src/zxing/zxing/WriterException.h:
--------------------------------------------------------------------------------
1 | #ifndef WRITEREXCEPTION_H
2 | #define WRITEREXCEPTION_H
3 |
4 | #include
5 |
6 | namespace zxing {
7 |
8 | class WriterException : public Exception {
9 | public:
10 | WriterException() ZXING_NOEXCEPT;
11 | WriterException(char const* msg) ZXING_NOEXCEPT;
12 | ~WriterException() ZXING_NOEXCEPT;
13 | };
14 |
15 | }
16 |
17 | #endif // WRITEREXCEPTION_H
18 |
--------------------------------------------------------------------------------
/src/zxing/win32/zxing/iconv.h:
--------------------------------------------------------------------------------
1 | #ifndef _LIBICONV_H
2 | #define _LIBICONV_H
3 | #include
4 | #ifdef __cplusplus
5 | extern "C" {
6 | #endif
7 | typedef void* iconv_t;
8 | iconv_t iconv_open(const char *tocode, const char *fromcode);
9 | int iconv_close(iconv_t cd);
10 | size_t iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
11 | #ifdef __cplusplus
12 | }
13 | #endif
14 | #endif//_LIBICONV_H
--------------------------------------------------------------------------------
/examples/QZXingLive/native.h:
--------------------------------------------------------------------------------
1 | #ifndef NATIVE_H
2 | #define NATIVE_H
3 |
4 | #include
5 |
6 | class NativeHelpers {
7 | public:
8 | static void registerApplicationInstance(QObject *app_p) {
9 | application_p_ = app_p;
10 | }
11 |
12 | static QObject* getApplicationInstance() {
13 | return application_p_;
14 | }
15 |
16 | private:
17 | static QObject *application_p_;
18 | };
19 |
20 | #endif // NATIVE_H
21 |
--------------------------------------------------------------------------------
/src/zxing/zxing/oned/rss/expanded/decoders/AnyAIDecoder.cpp:
--------------------------------------------------------------------------------
1 | #include "AnyAIDecoder.h"
2 |
3 | namespace zxing {
4 | namespace oned {
5 | namespace rss {
6 |
7 | AnyAIDecoder::AnyAIDecoder(QSharedPointer information)
8 | : AbstractExpandedDecoder(information)
9 | {
10 |
11 | }
12 |
13 | String AnyAIDecoder::parseInformation()
14 | {
15 | String buf("");
16 | return getGeneralDecoder().decodeAllCodes(buf, HEADER_SIZE);
17 | }
18 |
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/zxing/zxing/oned/rss/expanded/decoders/DecodedChar.cpp:
--------------------------------------------------------------------------------
1 | #include "DecodedChar.h"
2 |
3 | namespace zxing {
4 | namespace oned {
5 | namespace rss {
6 |
7 | DecodedChar::DecodedChar(int newPosition, char value)
8 | : DecodedObject (newPosition), m_value(value)
9 | {
10 |
11 | }
12 |
13 | char DecodedChar::getValue() const
14 | {
15 | return m_value;
16 | }
17 |
18 | bool DecodedChar::isFNC1() const
19 | {
20 | return m_value == FNC1;
21 | }
22 |
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/zxing/zxing/UnsupportedEncodingException.h:
--------------------------------------------------------------------------------
1 | #ifndef UNSUPPORTEDENCODINGEXCEPTION_H
2 | #define UNSUPPORTEDENCODINGEXCEPTION_H
3 |
4 | #include
5 |
6 | namespace zxing {
7 |
8 | class UnsupportedEncodingException : public Exception {
9 | public:
10 | UnsupportedEncodingException() ZXING_NOEXCEPT;
11 | UnsupportedEncodingException(char const* msg) ZXING_NOEXCEPT;
12 | ~UnsupportedEncodingException() ZXING_NOEXCEPT;
13 | };
14 |
15 | }
16 |
17 | #endif // UNSUPPORTEDENCODINGEXCEPTION_H
18 |
--------------------------------------------------------------------------------
/examples/BarcodeEncoder/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include "QZXing.h"
4 |
5 | int main(int argc, char *argv[])
6 | {
7 | QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
8 | QGuiApplication app(argc, argv);
9 |
10 | QQmlApplicationEngine engine;
11 |
12 | QZXing::registerQMLTypes();
13 | QZXing::registerQMLImageProvider(engine);
14 |
15 | engine.load(QUrl(QLatin1String("qrc:/main.qml")));
16 |
17 | return app.exec();
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/examples/QMLBarcodeScanner/declarative-camera.qmlproject:
--------------------------------------------------------------------------------
1 | /* File generated by QtCreator */
2 |
3 | import QmlProject 1.0
4 |
5 | Project {
6 | /* Include .qml, .js, and image files from current directory and subdirectories */
7 | QmlFiles {
8 | directory: "."
9 | }
10 | JavaScriptFiles {
11 | directory: "."
12 | }
13 | ImageFiles {
14 | directory: "."
15 | }
16 | /* List of plugin directories passed to QML runtime */
17 | // importPaths: [ "../exampleplugin" ]
18 | }
19 |
--------------------------------------------------------------------------------
/tests/src/QZXingTests/zxing/qrcode/encoder/QRCodeTests.h:
--------------------------------------------------------------------------------
1 | #ifndef QRCODETESTS_H
2 | #define QRCODETESTS_H
3 |
4 | #include "TestCase.h"
5 |
6 | namespace zxing{
7 | namespace qrcode{
8 | namespace tests{
9 |
10 | class QRCodeTests : public TestCase
11 | {
12 | public:
13 | QRCodeTests();
14 |
15 | void execute();
16 | private:
17 | void test();
18 | void testToString1();
19 | void testToString2();
20 | void testIsValidMaskPattern();
21 | };
22 |
23 | }
24 | }
25 | }
26 |
27 | #endif // QRCODETESTS_H
28 |
--------------------------------------------------------------------------------
/src/zxing/zxing/oned/rss/expanded/decoders/AI013103decoder.cpp:
--------------------------------------------------------------------------------
1 | #include "AI013103decoder.h"
2 |
3 | namespace zxing {
4 | namespace oned {
5 | namespace rss {
6 |
7 | AI013103decoder::AI013103decoder(QSharedPointer information)
8 | : AI013x0xDecoder(information)
9 | {
10 |
11 | }
12 |
13 | void AI013103decoder::addWeightCode(String &buf, int /*weight*/)
14 | {
15 | buf.append("(3103)");
16 | }
17 |
18 | int AI013103decoder::checkWeight(int weight)
19 | {
20 | return weight;
21 | }
22 |
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/examples/QZXingLive/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #include
6 |
7 | #include
8 | #include "QZXing.h"
9 | #include "application.h"
10 |
11 | int main(int argc, char *argv[])
12 | {
13 | QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
14 | QGuiApplication app(argc, argv);
15 |
16 | QZXing::registerQMLTypes();
17 |
18 | Application customApp;
19 | customApp.checkPermissions();
20 |
21 | return app.exec();
22 | }
23 |
--------------------------------------------------------------------------------
/tests/src/QZXingTests/EncodeValidator.h:
--------------------------------------------------------------------------------
1 | #ifndef ENCODEVALIDATOR_H
2 | #define ENCODEVALIDATOR_H
3 |
4 | #include "QZXing.h"
5 | #include
6 | #include
7 | #include