Expand description
Β§QR code module.
ModulesΒ§
- dclogin_
scheme π
StructsΒ§
EnumsΒ§
- Login
Options - 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 π - OPENPG
P4FPR_ π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
orhttps://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