Module qr

Source
Expand description

Β§QR code module.

ModulesΒ§

dclogin_scheme πŸ”’

StructsΒ§

CreateAccountErrorResponse πŸ”’
CreateAccountSuccessResponse πŸ”’

EnumsΒ§

LoginOptions
Options for dclogin: scheme.
Qr
Scanned QR code.

ConstantsΒ§

DCACCOUNT_SCHEME πŸ”’
DCBACKUP_SCHEME_PREFIX πŸ”’
Backup transfer based on iroh-net.
DCBACKUP_VERSION πŸ”’
Version written to Backups and Backup-QR-Codes. Imports will fail when they have a larger version.
DCLOGIN_SCHEME πŸ”’
DCWEBRTC_SCHEME πŸ”’
HTTPS_SCHEME πŸ”’
IDELTACHAT_NOSLASH_SCHEME πŸ”’
IDELTACHAT_SCHEME πŸ”’
MAILTO_SCHEME πŸ”’
MATMSG_SCHEME πŸ”’
OPENPGP4FPR_SCHEME πŸ”’
SHADOWSOCKS_SCHEME πŸ”’
SMTP_SCHEME πŸ”’
TG_SOCKS_SCHEME πŸ”’
VCARD_SCHEME πŸ”’

StaticsΒ§

VCARD_EMAIL_RE πŸ”’
VCARD_NAME_RE πŸ”’

FunctionsΒ§

check_qr
Checks a scanned QR code.
decode_account πŸ”’
scheme: DCACCOUNT:https://example.org/new_email?t=1w_7wDjgjelxeX884x96v3
decode_backup2 πŸ”’
Decodes a DCBACKUP QR code.
decode_ideltachat πŸ”’
scheme: https://i.delta.chat[/]#FINGERPRINT&a=ADDR[&OPTIONAL_PARAMS]
decode_mailto πŸ”’
Extract address for the mailto scheme.
decode_matmsg πŸ”’
Extract address for the matmsg scheme.
decode_openpgp πŸ”’
scheme: OPENPGP4FPR:FINGERPRINT#a=ADDR&n=NAME&i=INVITENUMBER&s=AUTH or: OPENPGP4FPR:FINGERPRINT#a=ADDR&g=GROUPNAME&x=GROUPID&i=INVITENUMBER&s=AUTH or: OPENPGP4FPR:FINGERPRINT#a=ADDR
decode_shadowsocks_proxy πŸ”’
Decodes ss:// URLs for Shadowsocks proxies.
decode_smtp πŸ”’
Extract address for the smtp scheme.
decode_tg_socks_proxy πŸ”’
scheme: https://t.me/socks?server=foo&port=123 or https://t.me/socks?server=1.2.3.4&port=123
decode_vcard πŸ”’
Extract address for the vcard scheme.
decode_webrtc_instance πŸ”’
scheme: DCWEBRTC:https://meet.jit.si/$ROOM
fix_add_second_device_qr πŸ”’
format_backup
Formats the text of the Qr::Backup2 variant.
normalize_address πŸ”’
URL decodes a given address, does basic email validation on the result.
set_account_from_qr πŸ”’
take a qr of the type DC_QR_ACCOUNT, parse it’s parameters, download additional information from the contained url and set the parameters. on success, a configure::configure() should be able to log in to the account
set_config_from_qr
Sets configuration values from a QR code.
starts_with_ignore_case πŸ”’