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 π - 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:example.orgorDCACCOUNT:https://example.org/neworDCACCOUNT:https://example.org/new_email?t=1w_7wDjgjelxeX884x96v3 - decode_
backup2 π - Decodes a
DCBACKUPQR 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_
name π - decode_
openpgp π - scheme:
OPENPGP4FPR:FINGERPRINT#a=ADDR&n=NAME&i=INVITENUMBER&s=AUTHor:OPENPGP4FPR:FINGERPRINT#a=ADDR&g=GROUPNAME&x=GROUPID&i=INVITENUMBER&s=AUTHor:OPENPGP4FPR:FINGERPRINT#a=ADDR&b=BROADCAST_NAME&x=BROADCAST_ID&j=INVITENUMBER&s=AUTHor: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=123orhttps://t.me/socks?server=1.2.3.4&port=123 - decode_
vcard π - Extract address for the vcard scheme.
- fix_
add_ πsecond_ device_ qr - format_
backup - Formats the text of the
Qr::Backup2variant. - login_
param_ πfrom_ account_ qr - Takes a QR with
DCACCOUNT:scheme, parses its parameters, downloads additional information from the contained URL and returns the login parameters. - normalize_
address π - URL decodes a given address, does basic email validation on the result.
- set_
config_ from_ qr - Sets configuration values from a QR code.
βDCACCOUNT:β and βDCLOGIN:β QR codes configure
context, but I/O mustnβt be started for such QR codes, consider usingContext::add_transport_from_qrwhich also restarts I/O. - starts_
with_ πignore_ case