You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
38
38
- Add `QScopedMetaObjectConnectionGuard`, which is `QMetaObjectConnectionGuard` with a scoped lifetime. `QMetaObjectConnectionGuard` is now a type alias for `QScopedMetaObjectConnectionGuard<'static>`.
39
39
- Support for setting Qt log message patterns with `q_set_message_pattern` and formatting log messages ith `q_format_log_message`.
40
40
- Implement `IntoIterator` for `&QHash`, `&QList`, `&QMap`, `&QSet`, and `&QVector`.
41
+
- Add `QByteArray:from_base64_encoding` and `QByteArray::to_base64`.
Copy file name to clipboardExpand all lines: crates/cxx-qt-lib/src/core/qbytearray.rs
+132-8Lines changed: 132 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,29 +7,64 @@ use std::fmt;
7
7
use std::mem::MaybeUninit;
8
8
use std::str;
9
9
10
+
usecrate::{unsafe_impl_qflag,QFlags};
11
+
10
12
#[cxx::bridge]
11
13
mod ffi {
12
-
unsafeextern"C++"{
14
+
/// This enum contains the options available for encoding and decoding Base64. Base64 is defined by [RFC 4648](https://datatracker.ietf.org/doc/html/rfc4648).
15
+
///
16
+
/// An empty `QFlags<QByteArrayBase64Option>` will use the regular Base64 alphabet, called simply "base64".
17
+
#[namespace = "rust::cxxqtlib1"]
18
+
#[repr(u32)]
19
+
enumQByteArrayBase64Option{
20
+
/// An alternate alphabet, called "base64url", which replaces two characters in the alphabet to be more friendly to URLs.
21
+
Base64UrlEncoding = 1,
22
+
/// Omits adding the padding equal signs at the end of the encoded data.
0 commit comments