-
Notifications
You must be signed in to change notification settings - Fork 92
cxx-qt-lib: Add support for QUuid #1149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d79dd4c
cxx-qt-lib: add shared type for QUuid
jnbooth ab59ab3
cxx-qt-lib: remove superfluous type alias
jnbooth f135814
cxx-qt-lib: use &self for QUuid::to_bytes and QUuid::to_u128
jnbooth 59a6d08
pass data4 by reference in QUuid::as_fields
jnbooth c650c9d
remove superfluous SPDX-FileContributor comments
jnbooth 729256e
cxx-qt-lib: add licensing header to quuid.rs
jnbooth 716aaa9
add QUuid to changelog
jnbooth 178ab5f
cxx-qt-lib: use std::mem::transmute for QUuids
jnbooth 05dd713
Update crates/cxx-qt-lib/src/core/quuid.rs
jnbooth 1ecc61d
Update crates/cxx-qt-lib/src/core/quuid.rs
jnbooth a6ced3b
cxx-qt-lib: add relocatable check to QUuid
jnbooth 64f37d0
cxx-qt-lib: rename QUuid methods to match Qt names
jnbooth 4f8e28b
cxx-qt-lib: fix test type error
jnbooth d858034
cxx-qt-lib: add documentation for QUuid::to_be
jnbooth 05d5d0c
cxx-qt-lib: make QUuid::is_null a const fn
jnbooth 80e2794
cxx-qt-lib: remove example source from QUuid::to_be
jnbooth dd3a69f
cxx-qt-lib: replace QUuid::from(QAnyStringView) with separate types
jnbooth 9971b2d
cxx-qt-lib: remove [u8; 16] From conversions for QUuid
jnbooth ec120fe
Merge branch 'main' into quuid
jnbooth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// clang-format off | ||
// SPDX-FileCopyrightText: 2022 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]> | ||
// clang-format on | ||
// SPDX-FileContributor: Andrew Hayzen <[email protected]> | ||
// SPDX-FileContributor: Joshua Booth <[email protected]> | ||
// | ||
// SPDX-License-Identifier: MIT OR Apache-2.0 | ||
#pragma once | ||
|
||
#include <QtCore/QUuid> | ||
|
||
#include "rust/cxx.h" | ||
|
||
using QUuidVariant = QUuid::Variant; | ||
using QUuidVersion = QUuid::Version; | ||
|
||
namespace rust { | ||
namespace cxxqtlib1 { | ||
QUuid | ||
quuidNewV3(const QUuid& ns, ::rust::Slice<const ::std::uint8_t> slice); | ||
|
||
QUuid | ||
quuidNewV4(); | ||
|
||
QUuid | ||
quuidNewV5(const QUuid& ns, ::rust::Slice<const ::std::uint8_t> slice); | ||
|
||
QString | ||
quuidToString(const QUuid& uuid); | ||
|
||
QUuid | ||
quuidFromString(QAnyStringView string); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.