History log of /haiku/src/add-ons/kernel/debugger/qrencode/module.cpp
Revision Date Author Comments
# 5dc5dbbb 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Allow more chars to be sent unencoded and encode space as '+'.

While this produces not strictly valid query strings, it reduces the
encoding overhead significantly.


# 39a26a0a 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Ensure that the qrencode caches are cleared when aborting.

The caches contain pointers into memory allocated by debug_malloc()
that come from a pool that is destroied once the command returns.
We therefore have to ensure that all such pointers are cleared in all
cases before returning from the command or we will run into errors
when executing the next commands.


# 2a80abaa 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Use a shorter URL and query to maximize payload space.


# e0ef5b2a 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Allow aborting the command while QR codes are generated.


# a86c7d0a 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Add qrwebpost to generate URLs for easier data collection.

Using the qrwebpost debugger command one can initialize an id for
subsequent QR codes. All QR codes generated following such an
invokation produce URL QR codes that link to an online service that
concatenates all data with the same id and later allows it to be
displayed/downloaded in one piece. This makes collecting larger amounts
of data more convenient. Note though that the URL encoding does waste
space and therefore reduces data density, causing more QR codes to be
generated for the same amount of input data.


# 0948c0ff 30-Jun-2012 Michael Lotz <mmlr@mlotz.ch>

Add module code that wraps qrencode and does the printing.

* Generates QR codes using the qrencode library functions and prints them
using terminal escape sequences and the special "block" characters.
* Supplies a static QR buffer that can be used to accumulate output for
later conversion into QR codes.
* Adds qrencode debugger command that allows to generate QR codes for
arbitrary strings.
* Adds qrappend, qrflush and qrclear to manipulate the QR buffer.
qrappend can be the target of a pipe to accumulate output from other
commands. qrflush causes the QR buffer to be encoded and cleared and
qrclear only clears the QR buffer.
* Adds qrconfig that allows changing the QR code version, determining
what size QR codes are to be used.


# 5dc5dbbbb464bf4930380313e3e64bd23b7eb5c5 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Allow more chars to be sent unencoded and encode space as '+'.

While this produces not strictly valid query strings, it reduces the
encoding overhead significantly.


# 39a26a0aa5e64858a54720432ffd1505cb25259f 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Ensure that the qrencode caches are cleared when aborting.

The caches contain pointers into memory allocated by debug_malloc()
that come from a pool that is destroied once the command returns.
We therefore have to ensure that all such pointers are cleared in all
cases before returning from the command or we will run into errors
when executing the next commands.


# 2a80abaa7a912078f5aa4b497c67ab30a9955e81 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Use a shorter URL and query to maximize payload space.


# e0ef5b2a972ffaab288c78e04bc9b657ad8badf0 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Allow aborting the command while QR codes are generated.


# a86c7d0ab32920e70e98ac4437b45f26a63c4b06 01-Jul-2012 Michael Lotz <mmlr@mlotz.ch>

Add qrwebpost to generate URLs for easier data collection.

Using the qrwebpost debugger command one can initialize an id for
subsequent QR codes. All QR codes generated following such an
invokation produce URL QR codes that link to an online service that
concatenates all data with the same id and later allows it to be
displayed/downloaded in one piece. This makes collecting larger amounts
of data more convenient. Note though that the URL encoding does waste
space and therefore reduces data density, causing more QR codes to be
generated for the same amount of input data.


# 0948c0ff50ebdb04a5e60f0ed3ad3f1a9968c7f2 30-Jun-2012 Michael Lotz <mmlr@mlotz.ch>

Add module code that wraps qrencode and does the printing.

* Generates QR codes using the qrencode library functions and prints them
using terminal escape sequences and the special "block" characters.
* Supplies a static QR buffer that can be used to accumulate output for
later conversion into QR codes.
* Adds qrencode debugger command that allows to generate QR codes for
arbitrary strings.
* Adds qrappend, qrflush and qrclear to manipulate the QR buffer.
qrappend can be the target of a pipe to accumulate output from other
commands. qrflush causes the QR buffer to be encoded and cleared and
qrclear only clears the QR buffer.
* Adds qrconfig that allows changing the QR code version, determining
what size QR codes are to be used.